Try to create a prism dialog service with custom modern ui window

This commit is contained in:
2020-07-19 22:19:28 +02:00
parent 1cf692547f
commit 7ad587228a
13 changed files with 208 additions and 7 deletions

View File

@@ -242,6 +242,7 @@
HorizontalAlignment="Stretch"
Command="{Binding SaveViewModelCommand}"
Content="Save" />
<Button Command="{Binding ShowDialogServiceCommand}" Content="Show dialog" />
</ui:SimpleStackPanel>
</Grid>
</ScrollViewer>
@@ -275,7 +276,8 @@
x:Name="TextBoxSwitch"
Grid.Column="0"
Width="145"
Margin="0,0,5,0">
Margin="0,0,5,0"
VerticalAlignment="Top">
<ToggleButton.Style>
<Style BasedOn="{StaticResource {x:Type ToggleButton}}" TargetType="ToggleButton">
<Setter Property="Content" Value="Read/Write" />
@@ -289,8 +291,12 @@
</ToggleButton>
<TextBox
Grid.Column="1"
AcceptsReturn="True"
AcceptsTab="True"
IsReadOnly="{Binding IsChecked, ElementName=TextBoxSwitch}"
Text="Eine einfache Textbox" />
MinLines="4"
Text="{Binding MultiLineText}"
TextWrapping="Wrap" />
</Grid>
<controls:PropertyPresenter Label="Hello" Value="{Binding BooleanValue}" />
<controls:PropertyPresenter Label="Hello">