feat: add default dialog host.
This commit is contained in:
@@ -21,13 +21,7 @@
|
|||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Panel>
|
<Panel>
|
||||||
<Grid
|
<Grid
|
||||||
Classes.Blur="{Binding #host.HasModal}"
|
|
||||||
ColumnDefinitions="Auto, *" >
|
ColumnDefinitions="Auto, *" >
|
||||||
<Grid.Styles>
|
|
||||||
<Style Selector="Grid.Blur">
|
|
||||||
<Setter Property="Effect" Value="blur(20)" />
|
|
||||||
</Style>
|
|
||||||
</Grid.Styles>
|
|
||||||
<Border
|
<Border
|
||||||
Padding="8 4"
|
Padding="8 4"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@@ -96,6 +90,5 @@
|
|||||||
</ContentControl.ContentTemplate>
|
</ContentControl.ContentTemplate>
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
<u:OverlayDialogHost Name="host" SnapThickness="20" />
|
|
||||||
</Panel>
|
</Panel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
Margin="{Binding $parent[u:UrsaWindow].TitleBarMargin}"
|
Margin="{Binding $parent[u:UrsaWindow].TitleBarMargin}"
|
||||||
LeftContent="{Binding $parent[u:UrsaWindow].LeftContent}"
|
LeftContent="{Binding $parent[u:UrsaWindow].LeftContent}"
|
||||||
RightContent="{Binding $parent[u:UrsaWindow].RightContent}" />
|
RightContent="{Binding $parent[u:UrsaWindow].RightContent}" />
|
||||||
|
<u:OverlayDialogHost/>
|
||||||
</VisualLayerManager.ChromeOverlayLayer>
|
</VisualLayerManager.ChromeOverlayLayer>
|
||||||
<Panel>
|
<Panel>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
|||||||
Reference in New Issue
Block a user