| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.MessageDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- Title="提示" Width="560" SizeToContent="Height" MaxHeight="620"
- ResizeMode="NoResize" WindowStartupLocation="CenterOwner"
- ShowInTaskbar="False" Background="{DynamicResource RegionBrush}">
- <hc:Window.Resources>
- <Style x:Key="IconPath" TargetType="Path">
- <Setter Property="Width" Value="36"/>
- <Setter Property="Height" Value="36"/>
- <Setter Property="Stretch" Value="Uniform"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- </Style>
- </hc:Window.Resources>
- <Grid Margin="24,22,24,18">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Border Grid.Row="0" Padding="0,0,0,16" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
- <StackPanel Orientation="Horizontal">
- <Path x:Name="IconDisplay" Style="{StaticResource IconPath}"
- Fill="{DynamicResource PrimaryBrush}" Margin="0,0,18,0"
- Data="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,17A1,1 0 0,1 11,16V11A1,1 0 0,1 12,10A1,1 0 0,1 13,11V16A1,1 0 0,1 12,17M12,7.5A1,1 0 0,1 11,6.5A1,1 0 0,1 12,5.5A1,1 0 0,1 13,6.5A1,1 0 0,1 12,7.5Z"/>
- <TextBlock x:Name="MessageText" Text="消息内容" FontSize="15" LineHeight="24"
- TextWrapping="Wrap" MaxWidth="450" VerticalAlignment="Center"/>
- </StackPanel>
- </Border>
- <Expander x:Name="DetailsExpander" Grid.Row="1" Header="详细信息" Visibility="Collapsed" Margin="0,14,0,0">
- <Grid Margin="0,8,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <TextBox x:Name="DetailsText" Grid.Row="0" IsReadOnly="True" TextWrapping="Wrap"
- AcceptsReturn="True" MaxHeight="180" Padding="10"
- VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"/>
- <Button x:Name="BtnCopyDetails" Grid.Row="1" Content="复制诊断信息"
- HorizontalAlignment="Right" Margin="0,8,0,0" Padding="12,4"
- Click="BtnCopyDetails_Click"/>
- </Grid>
- </Expander>
- <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20,0,0">
- <Button x:Name="BtnOK" Content="确定" Width="96" Height="34" Margin="0,0,8,0"
- Style="{StaticResource ButtonPrimary}" Click="BtnOK_Click"/>
- <Button x:Name="BtnNo" Content="否" Width="96" Height="34" Margin="8,0,0,0"
- Visibility="Collapsed" Click="BtnNo_Click"/>
- <Button x:Name="BtnCancel" Content="取消" Width="96" Height="34" Margin="8,0,0,0"
- Visibility="Collapsed" Click="BtnCancel_Click"/>
- </StackPanel>
- </Grid>
- </hc:Window>
|