Sweaty-Launcher/Control/SnackBar.xaml

37 lines
1.3 KiB
Text
Raw Permalink Normal View History

2023-02-11 02:19:10 +00:00
<UserControl
x:Class="Launcher.Control.SnackBar"
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:Launcher.Control"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
d:Width="200"
mc:Ignorable="d">
<Border Background="#FF312F36" CornerRadius="10">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<TextBlock
x:Name="msg_tb"
Margin="10"
Foreground="White"
Text="这是一个SnackBar" />
<Button
x:Name="action_btn"
Grid.Column="1"
Margin="4"
pu:ButtonHelper.ClickBackground="#301c54b2"
pu:ButtonHelper.CornerRadius="4"
Background="Transparent"
Click="action_btn_Click"
Content="确定"
Cursor="Hand"
Foreground="#1c54b2" />
</Grid>
</Border>
</UserControl>