|
- <Window
- x:Class="BPASmartClient.CustomResource.Pages.View.PromptView"
- 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:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="PromptView"
- Width="400"
- Height="200"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.Resources>
- <Style x:Key="buttonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate>
- <Border
- BorderBrush="DeepSkyBlue"
- BorderThickness="2"
- CornerRadius="8" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
-
- <Grid Name="main">
- <Grid.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/弹窗.png" Stretch="Fill" />
- </Grid.Background>
-
- <Grid Margin="18,16">
- <Button
- Width="30"
- Height="20"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="Transparent"
- BorderThickness="0"
- Click="Button_Click" />
-
- <Grid Margin="0,40,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.2*" />
- <ColumnDefinition Width="0.15*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Name="infoType"
- Grid.Column="1"
- VerticalAlignment="Top"
- FontSize="15"
- Foreground="DeepSkyBlue" />
- <TextBlock
- Name="icon"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontFamily="../../Fonts/#iconfont"
- FontSize="30"
- Foreground="DeepSkyBlue"
- Text="" />
- <TextBlock
- Name="info"
- Grid.Column="2"
- Margin="10,0,0,0"
- VerticalAlignment="Top"
- FontSize="15"
- Foreground="DeepSkyBlue"
- Text="警告:"
- TextWrapping="Wrap" />
- </Grid>
-
- <StackPanel
- Grid.Row="1"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button
- Name="Cancel"
- Width="90"
- Height="30"
- Margin="5,0,5,0"
- Click="Cancel_Click"
- Content="取消"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
-
- <Button
- Name="ok"
- Width="90"
- Height="30"
- Margin="5,0,5,0"
- Click="ok_Click"
- Content="确定"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </StackPanel>
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- </Grid.RowDefinitions>
- </Grid>
- </Grid>
- </Window>
|