Stylet/StyletIntegrationTests/ShowDialogAndDialogResult/DialogView.xaml

15 lines
891 B
XML

<Window x:Class="StyletIntegrationTests.ShowDialogAndDialogResult.DialogView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="https://github.com/canton7/Stylet"
Title="DialogView" Height="200" Width="300">
<DockPanel Margin="20" LastChildFill="False">
<TextBlock DockPanel.Dock="Top" TextWrapping="Wrap">Choose the desired DialogResult, then close the dialog.</TextBlock>
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<Label>DialogResult: </Label>
<ComboBox ItemsSource="{Binding DesiredResult}" SelectedItem="{Binding SelectedDesiredResult}"/>
</StackPanel>
<Button DockPanel.Dock="Bottom" HorizontalAlignment="Center" Command="{s:Action Close}" Width="100">Close</Button>
</DockPanel>
</Window>