| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <UserControl x:Class="TeamAAS_VP.Controls.ShowMessage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:system="clr-namespace:System;assembly=mscorlib"
- xmlns:local="clr-namespace:TeamAAS_VP.Controls"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- mc:Ignorable="d"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <Grid Margin="0"
- MinWidth="300"
- MinHeight="200" >
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <TextBlock Text="{Binding Title}"
- FontSize="16"
- VerticalAlignment="Center"
- Margin="10,5"
- TextWrapping="Wrap"/>
- <Border VerticalAlignment="Bottom"
- Height="1"
- BorderThickness="1"
- BorderBrush="Gray" />
- <TextBlock Grid.Row="1"
- Margin="10,5"
- Text="{Binding Message}"
- Foreground="Black"
- TextAlignment="Center"
- FontSize="16"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- TextWrapping="Wrap">
- </TextBlock>
- <StackPanel Grid.Row="2"
- Margin="10,10"
- Orientation="Horizontal"
- HorizontalAlignment="Right">
- <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- IsDefault="True"
- FontSize="16"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 确定}">
- <Button.CommandParameter>
- <system:Boolean>True</system:Boolean>
- </Button.CommandParameter>
- </Button>
- <Button Margin="8,0,0,0"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- IsCancel="True"
- FontSize="16"
- Visibility="{Binding IsCancel,Converter={StaticResource BooleanToVisibilityConverter}}"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 取消}">
- <Button.CommandParameter>
- <system:Boolean>False</system:Boolean>
- </Button.CommandParameter>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|