Skip to content

Commit 9aa23ab

Browse files
committed
Added subheaders for Dialogs.xaml of demo
1 parent 41856e2 commit 9aa23ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

MainDemo.Wpf/Dialogs.xaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</UserControl.Resources>
1818

1919
<ScrollViewer HorizontalScrollBarVisibility="Auto" >
20-
<codeDisplayer:XamlDisplayerPanel >
21-
<TextBlock TextWrapping="Wrap" MaxWidth="300" Margin="32">Dialogs are supported via the DialogHost control which was designed to work with MVVM/binding, code-behind, routed commands, and a pure code-based API.</TextBlock>
22-
<TextBlock TextWrapping="Wrap" MaxWidth="300" HorizontalAlignment="Center" VerticalAlignment="Top"
23-
Margin="8 0 8 0"
20+
<codeDisplayer:XamlDisplayerPanel HorizontalAlignment="Center">
21+
<TextBlock TextWrapping="Wrap" MaxWidth="800" Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False">Dialogs are supported via the DialogHost control which was designed to work with MVVM/binding, code-behind, routed commands, and a pure code-based API.</TextBlock>
22+
<TextBlock TextWrapping="Wrap" MaxWidth="800" Style="{StaticResource MaterialDesignSubheadingTextBlock}" HorizontalAlignment="Center" VerticalAlignment="Top"
23+
Margin="8 0 8 0" codeDisplayer:XamlDisplayer.DisplayCode="False"
2424
>SAMPLE 1: Localised dialog encapsulating specific content, launched from a routed command, response handled in code-behind.</TextBlock>
2525
<materialDesign:DialogHost DialogClosing="Sample1_DialogHost_OnDialogClosing"
2626
HorizontalAlignment="Center" VerticalAlignment="Center">
@@ -78,7 +78,7 @@
7878
</Grid>
7979
</Border>
8080
</materialDesign:DialogHost>
81-
<TextBlock MaxWidth="300" TextWrapping="Wrap" VerticalAlignment="Top" Margin="8 0 8 0">SAMPLE 2: Top level dialog, using OpenDialog, passing content via the Parameter. You can pass a view model, provided a corresponding DataTemplate can be found in the scope of the root DialogHost.</TextBlock>
81+
<TextBlock MaxWidth="800" Style="{StaticResource MaterialDesignSubheadingTextBlock}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="8 0 8 0" codeDisplayer:XamlDisplayer.DisplayCode="False">SAMPLE 2: Top level dialog, using OpenDialog, passing content via the Parameter. You can pass a view model, provided a corresponding DataTemplate can be found in the scope of the root DialogHost.</TextBlock>
8282
<StackPanel VerticalAlignment="Center">
8383
<!--the request to open the dialog will bubble up to the top-most DialogHost, but we can used the attached property based event to handle the response -->
8484
<Button Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"
@@ -104,7 +104,7 @@
104104
PASS MODEL
105105
</Button>
106106
</StackPanel>
107-
<TextBlock MaxWidth="300" TextWrapping="Wrap" VerticalAlignment="Top" Margin="8 0 8 0">SAMPLE 3: Open and listen to the dialog entirely from code in a view model.</TextBlock>
107+
<TextBlock MaxWidth="800" Style="{StaticResource MaterialDesignSubheadingTextBlock}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="8 0 8 0" codeDisplayer:XamlDisplayer.DisplayCode="False">SAMPLE 3: Open and listen to the dialog entirely from code in a view model.</TextBlock>
108108
<StackPanel >
109109
<!-- Executes a command on DialogsViewModel.cs, which will launch the dialog from code -->
110110
<Button Command="{Binding RunDialogCommand}"
@@ -116,8 +116,8 @@
116116
EXTENDED
117117
</Button>
118118
</StackPanel>
119-
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Top"
120-
Margin="8 0 8 0" MaxWidth="300"
119+
<TextBlock MaxWidth="800" Style="{StaticResource MaterialDesignSubheadingTextBlock}" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Top"
120+
Margin="8 0 8 0" codeDisplayer:XamlDisplayer.DisplayCode="False"
121121
>SAMPLE 4: Dialog managed from view model using IsOpen and custom commands (ignoring the provided routed commands).</TextBlock>
122122
<materialDesign:DialogHost HorizontalAlignment="Center" VerticalAlignment="Center"
123123
IsOpen="{Binding IsSample4DialogOpen}"

0 commit comments

Comments
 (0)