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
|
2021-07-20 01:26:10 -07:00
|
|
|
Background="{DynamicResource Brush.Window}"
|
2021-04-29 05:05:55 -07:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Width="500"
|
|
|
|
Height="Auto">
|
2021-06-17 18:56:45 -07:00
|
|
|
<Border.Effect>
|
2021-07-19 05:49:47 -07:00
|
|
|
<DropShadowEffect BlurRadius="8" ShadowDepth="0" Opacity=".8" Color="Black"/>
|
2021-06-17 18:56:45 -07:00
|
|
|
</Border.Effect>
|
|
|
|
|
2021-04-29 05:05:55 -07:00
|
|
|
<Grid>
|
|
|
|
<!-- Custom panel -->
|
|
|
|
<Border x:Name="body">
|
|
|
|
<StackPanel Margin="8" Orientation="Vertical">
|
2021-06-18 02:42:37 -07:00
|
|
|
<TextBlock Margin="8,8,0,18" x:Name="txtTitle" FontSize="18" FontWeight="DemiBold" TextOptions.TextFormattingMode="Ideal"/>
|
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-07-20 01:26:10 -07:00
|
|
|
<Button Click="Sure" Width="80" Content="{DynamicResource Text.Sure}" BorderBrush="{DynamicResource Brush.FG1}" Background="{DynamicResource Brush.Accent1}"/>
|
|
|
|
<Button Click="Cancel" Width="80" Margin="8,0,0,0" Content="{DynamicResource Text.Cancel}"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Progress mask -->
|
2021-07-20 01:26:10 -07:00
|
|
|
<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>
|