|
- <Window x:Class="BPASmart.UserManagement.MessageBox"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:BPASmart.UserManagement"
- mc:Ignorable="d"
- Title="MessageBox" Height="110" Width="240"
- WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" Topmost="True" ResizeMode="NoResize" ShowInTaskbar="False"
- KeyDown="Window_KeyDown">
- <Border MouseLeftButtonDown="Border_MouseLeftButtonDown" Background="#363636" Opacity="0.9" CornerRadius="10">
-
- <Border>
- <Border.Background>
- <ImageBrush ImageSource="../Image/信息边框.png"/>
- </Border.Background>
- <Grid>
- <Border Margin="10" Background="Transparent" Opacity="1">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" BlurRadius="10" Opacity="0.5"/>
- </Border.Effect>
- <Grid Margin="0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="30"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,30,0">
- <Image Source="../Image/成功提示.png" Height="26" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,0"/>
- <TextBlock x:Name="TB_Context" Text="Ensure?" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="#E900F859"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
- <Button VerticalAlignment="Bottom" Click="No_Button_Click" Cursor="Hand" >
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Name="Border" VerticalAlignment="Bottom" Width="100" Height="20" BorderBrush="#cccccc" CornerRadius="10" >
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" BlurRadius="10" Opacity="0.2"/>
- </Border.Effect>
- <Border.Background>
- <ImageBrush ImageSource="../Image/按钮背景.png"/>
- </Border.Background>
- <TextBlock x:Name="textSure" Text="确 定" FontSize="16" Margin="15,0" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock.Foreground>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="#FF056F75" Offset="0"/>
- <GradientStop Color="#888FFAFF" Offset="0.4"/>
- <GradientStop Color="#888FFAFF" Offset="0.6"/>
- <GradientStop Color="#FF056F75" Offset="1"/>
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="textSure" Property="Foreground" Value="#FF00FFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- </Grid>
- </Border>
-
- </Border>
-
- </Window>
|