42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<UserControl
|
|
x:Class="Ursa.Demo.Pages.DialogDemo"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:u="https://irihi.tech/ursa"
|
|
xmlns:vm="using:Ursa.Demo.ViewModels"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
x:CompileBindings="True"
|
|
x:DataType="vm:DialogDemoViewModel"
|
|
mc:Ignorable="d">
|
|
<Grid ColumnDefinitions="Auto, *">
|
|
<StackPanel Grid.Column="0">
|
|
<TextBlock>
|
|
<Run Text="Result: "></Run>
|
|
<Run Text="{Binding Result}"></Run>
|
|
</TextBlock>
|
|
<TextBlock>
|
|
<Run Text="Date: "></Run>
|
|
<Run Text="{Binding DialogViewModel.Date}"></Run>
|
|
</TextBlock>
|
|
<Button Command="{Binding ShowGlobalModalDialogCommand}">Show Modal Dialog</Button>
|
|
<Button Command="{Binding ShowLocalOverlayModalDialogCommand}">Show Local Overlay Modal Dialog</Button>
|
|
<Button Command="{Binding ShowGlobalOverlayModalDialogCommand}"> Show Global Overlay Modal Dialog </Button>
|
|
<Button Command="{Binding ShowGlobalOverlayDialogCommand}">Show Global Overlay Dialog</Button>
|
|
</StackPanel>
|
|
<Grid Grid.Column="1">
|
|
<Button
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding ShowLocalOverlayModalDialogCommand}">
|
|
Show Local Overlay Dialog
|
|
</Button>
|
|
<Border CornerRadius="20" ClipToBounds="True">
|
|
<u:OverlayDialogHost HostId="LocalHost" />
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|