mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
47 lines
2.6 KiB
XML
47 lines
2.6 KiB
XML
<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}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Width="500"
|
|
Height="Auto">
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="4" ShadowDepth="0" Color="Black" Opacity=".8"/>
|
|
</Border.Effect>
|
|
|
|
<Grid>
|
|
<!-- Custom panel -->
|
|
<Border x:Name="body">
|
|
<StackPanel Margin="8" Orientation="Vertical">
|
|
<TextBlock Margin="8,8,0,18" x:Name="txtTitle" FontSize="18" FontWeight="DemiBold" TextOptions.TextFormattingMode="Ideal" RenderOptions.ClearTypeHint="Enabled"/>
|
|
<ContentControl x:Name="container"/>
|
|
<StackPanel Margin="0,16,0,0" Height="32" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<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"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Progress mask -->
|
|
<Border x:Name="mask" Visibility="Collapsed" Background="{DynamicResource Brush.Popup}" Opacity=".9">
|
|
<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>
|