63 lines
3.8 KiB
XML
63 lines
3.8 KiB
XML
<Window x:Class="View.MessageBoxView"
|
|
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:View"
|
|
mc:Ignorable="d"
|
|
Title="提示" Height="270" Width="400" WindowStyle="None" Background="{x:Null}"
|
|
ResizeMode="NoResize" x:Name="main"
|
|
AllowsTransparency="True" WindowStartupLocation="CenterScreen">
|
|
<Window.Triggers>
|
|
<EventTrigger RoutedEvent="Window.Loaded" >
|
|
<BeginStoryboard>
|
|
<Storyboard Name="sbOpShow">
|
|
<DoubleAnimation
|
|
Storyboard.TargetName="main"
|
|
Storyboard.TargetProperty="Opacity"
|
|
From="0" To="0.95" Duration="0:0:0.15"/>
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</Window.Triggers>
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Blue.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Indigo.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
|
|
<Border Background="AliceBlue" Opacity="1" CornerRadius="3">
|
|
<Canvas>
|
|
|
|
<Border Canvas.Top="0" Height="25" Width="{Binding ElementName=main, Path=Width,UpdateSourceTrigger=PropertyChanged}"
|
|
BorderThickness="0,0,0,1" Background="{StaticResource PrimaryHueMidBrush}">
|
|
<TextBlock x:Name="lblTitle" Text="test" HorizontalAlignment="Left"
|
|
Foreground="AliceBlue" FontSize="14"
|
|
VerticalAlignment="Center" Margin="5"/>
|
|
</Border>
|
|
<TextBox x:Name="lblMsg"
|
|
Foreground="Brown" FontSize="18"
|
|
TextWrapping="Wrap" Text="test"
|
|
ScrollViewer.CanContentScroll="True" VerticalScrollBarVisibility="Auto"
|
|
VerticalContentAlignment="Center"
|
|
Canvas.Top="43" Height="173" Width="358" Canvas.Left="22"
|
|
/>
|
|
<Border BorderBrush="{StaticResource PrimaryHueMidBrush}" BorderThickness="0.5" Height="28"
|
|
Canvas.Bottom="10" Canvas.Right="85" MouseLeftButtonDown="Yes_MouseLeftButtonDown"
|
|
Name="border1" Width="52" Background="{StaticResource PrimaryHueMidBrush}" CornerRadius="2" Canvas.Left="258" Canvas.Top="224">
|
|
<TextBlock Text="确认" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<Border BorderBrush="{StaticResource PrimaryHueMidBrush}" BorderThickness="0.5" Height="28"
|
|
Canvas.Bottom="10" Canvas.Right="30" MouseLeftButtonDown="No_MouseLeftButtonDown"
|
|
Name="border2" Width="52" CornerRadius="2" Background="{StaticResource PrimaryHueMidBrush}" Canvas.Left="328" Canvas.Top="224">
|
|
<TextBlock Text="取消" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</Canvas>
|
|
</Border>
|
|
</Window>
|