sourcegit/src/Views/Widgets/PopupPanel.xaml

48 lines
2.6 KiB
Text
Raw Normal View History

2021-04-29 05:05:55 -07:00
<UserControl x:Class="SourceGit.Views.Widgets.PopupPanel"
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:controls="clr-namespace:SourceGit.Views.Controls"
mc:Ignorable="d" Visibility="Collapsed">
<Grid ClipToBounds="True">
<!-- Background to close -->
<Border Background="Transparent" MouseLeftButtonDown="Cancel"/>
<!-- Popup panel -->
<Border
Background="{DynamicResource Brush.Window}"
2021-04-29 05:05:55 -07:00
HorizontalAlignment="Center"
VerticalAlignment="Top"
Width="500"
Height="Auto">
<Border.Effect>
<DropShadowEffect BlurRadius="4" ShadowDepth="0" Color="Black" Opacity=".8"/>
</Border.Effect>
2021-04-29 05:05:55 -07:00
<Grid>
<!-- Custom panel -->
<Border x:Name="body">
<StackPanel Margin="8" Orientation="Vertical">
2021-08-04 22:44:25 -07:00
<TextBlock Margin="8,8,0,18" x:Name="txtTitle" FontSize="18" FontWeight="DemiBold" TextOptions.TextFormattingMode="Ideal" RenderOptions.ClearTypeHint="Enabled"/>
2021-04-29 05:05:55 -07:00
<ContentControl x:Name="container"/>
<StackPanel Margin="0,16,0,0" Height="32" Orientation="Horizontal" HorizontalAlignment="Right">
2021-08-05 05:53:29 -07:00
<Button Click="Sure" Width="80" Content="{DynamicResource Text.Sure}" BorderBrush="{DynamicResource Brush.FG1}" Background="{DynamicResource Brush.Accent1}" FontFamily="Microsoft YaHei UI" FontWeight="Bold"/>
<Button Click="Cancel" Width="80" Margin="8,0,0,0" Content="{DynamicResource Text.Cancel}" FontFamily="Microsoft YaHei UI" FontWeight="Bold"/>
2021-04-29 05:05:55 -07:00
</StackPanel>
</StackPanel>
</Border>
<!-- Progress mask -->
<Border x:Name="mask" Visibility="Collapsed" Background="{DynamicResource Brush.Popup}" Opacity=".9">
2021-04-29 05:05:55 -07:00
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<controls:Loading x:Name="processing" Width="48" Height="48"/>
<TextBlock x:Name="txtMsg" Margin="0,16,0,0"/>
</StackPanel>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>