mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style: popup container widgets
This commit is contained in:
parent
b48c2b5ab5
commit
f65dc36e62
1 changed files with 17 additions and 18 deletions
|
@ -236,20 +236,19 @@
|
||||||
<v:LauncherBody Grid.Row="1" Background="{DynamicResource Brush.ToolBar}" Data="{Binding ActivePage.Data}"/>
|
<v:LauncherBody Grid.Row="1" Background="{DynamicResource Brush.ToolBar}" Data="{Binding ActivePage.Data}"/>
|
||||||
|
|
||||||
<!-- Popup container -->
|
<!-- Popup container -->
|
||||||
<Grid Grid.Row="1" x:Name="popupContainer" Margin="0,36,0,0" ClipToBounds="True" IsVisible="{Binding ActivePage.Popup, Converter={x:Static ObjectConverters.IsNotNull}}">
|
<ContentControl Grid.Row="1" Margin="0,36,0,0" Content="{Binding ActivePage.Popup}" IsVisible="{Binding ActivePage.Popup, Converter={x:Static ObjectConverters.IsNotNull}}">
|
||||||
|
<ContentControl.DataTemplates>
|
||||||
|
<DataTemplate DataType="vm:Popup">
|
||||||
|
<Grid>
|
||||||
<Border Background="Transparent" PointerPressed="OnPopupCancelByClickMask"/>
|
<Border Background="Transparent" PointerPressed="OnPopupCancelByClickMask"/>
|
||||||
|
|
||||||
<Border Background="{DynamicResource Brush.Popup}"
|
<Grid Width="500" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Top"
|
<Border Background="{DynamicResource Brush.Popup}" CornerRadius="0,0,4,4">
|
||||||
Width="500"
|
|
||||||
CornerRadius="0,0,4,4">
|
|
||||||
<Border.Effect>
|
<Border.Effect>
|
||||||
<DropShadowEffect BlurRadius="8" Color="Black" Opacity=".6" OffsetX="0" OffsetY="0"/>
|
<DropShadowEffect BlurRadius="8" Color="Black" Opacity=".6" OffsetX="0" OffsetY="0"/>
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
|
</Border>
|
||||||
|
|
||||||
<ContentControl Content="{Binding ActivePage.Popup}">
|
|
||||||
<ContentControl.DataTemplates>
|
|
||||||
<DataTemplate DataType="vm:Popup">
|
|
||||||
<StackPanel Margin="8" Orientation="Vertical">
|
<StackPanel Margin="8" Orientation="Vertical">
|
||||||
<!-- Popup Widget -->
|
<!-- Popup Widget -->
|
||||||
<ContentControl Margin="0,8"
|
<ContentControl Margin="0,8"
|
||||||
|
@ -292,11 +291,11 @@
|
||||||
Minimum="0" Maximum="100"/>
|
Minimum="0" Maximum="100"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ContentControl.DataTemplates>
|
</ContentControl.DataTemplates>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<!-- Notification container -->
|
<!-- Notification container -->
|
||||||
<Grid Grid.Row="1" Width="360" Margin="0,36,0,0" HorizontalAlignment="Right" VerticalAlignment="Top">
|
<Grid Grid.Row="1" Width="360" Margin="0,36,0,0" HorizontalAlignment="Right" VerticalAlignment="Top">
|
||||||
|
|
Loading…
Reference in a new issue