功能完善
This commit is contained in:
40
NeuWPF/NeoUI/Controls/Toast/ToastControl.xaml
Normal file
40
NeuWPF/NeoUI/Controls/Toast/ToastControl.xaml
Normal file
@@ -0,0 +1,40 @@
|
||||
<UserControl
|
||||
HorizontalAlignment="Center"
|
||||
MinHeight="50"
|
||||
Width="320"
|
||||
mc:Ignorable="d"
|
||||
x:Class="NeumUI.Controls.ToastControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:NeumUI.Controls"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Border
|
||||
Background="#F1F1F1"
|
||||
BorderBrush="#E0E0E0"
|
||||
BorderThickness="1"
|
||||
CornerRadius="4"
|
||||
x:Name="RootBorder">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="8"
|
||||
Direction="270"
|
||||
Opacity="0.15"
|
||||
ShadowDepth="1" />
|
||||
</Border.Effect>
|
||||
<StackPanel Margin="15,12" Orientation="Horizontal">
|
||||
<TextBlock
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="16"
|
||||
Margin="0,0,14,0"
|
||||
Text=""
|
||||
VerticalAlignment="Center"
|
||||
x:Name="IconTextBlock" />
|
||||
<TextBlock
|
||||
Text="This is a toast message."
|
||||
TextWrapping="Wrap"
|
||||
VerticalAlignment="Center"
|
||||
x:Name="MessageTextBlock" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user