Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions WinUIGallery/ControlPages/DesignGuidance/ColorPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
x:Class="WinUIGallery.ControlPages.ColorPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:WinUIGallery.Controls"
xmlns:controls1="using:WinUIGallery.DesktopWap.Controls"
xmlns:core="using:WinUIGallery"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
Expand All @@ -14,22 +16,33 @@
<x:Double x:Key="TopNavigationViewPaneCustomContentMinWidth">0</x:Double>
</Page.Resources>

<Grid VerticalAlignment="Stretch">
<Grid
VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<RichTextBlock>
<Paragraph>
<Run>The brushes below are part of WinUI 3. You can reference them in your app using:</Run>
<Run FontStyle="Italic">Foreground="{ThemeResource TextFillColorPrimaryBrush}"</Run>.
</Paragraph>
</RichTextBlock>
<TextBlock
Grid.Row="0"
Text="The brushes below are part of WinUI 3 and you can reference them in your app. For example:" />
<controls:SampleCodePresenter
x:Name="XamlPresenter"
Grid.Row="1"
Margin="0,16,0,16"
VerticalContentAlignment="Center"
SampleType="XAML">
<controls:SampleCodePresenter.Code>
<x:String xml:space="preserve">
&lt;TextBlock Text="..." Foreground="{ThemeResource TextFillColorPrimaryBrush}" /&gt;
</x:String>
</controls:SampleCodePresenter.Code>
</controls:SampleCodePresenter>
<SelectorBar
x:Name="PageSelector"
Grid.Row="1"
Margin="-12,32,0,0"
Grid.Row="2"
Margin="-12,0,0,0"
AutomationProperties.Name="PageSelector"
Loaded="PageSelector_Loaded"
SelectionChanged="PageSelector_SelectionChanged">
Expand All @@ -40,7 +53,7 @@
<SelectorBarItem Text="Signal" />
<SelectorBarItem Text="High Contrast" />
</SelectorBar>
<controls1:SampleThemeListener Grid.Row="2">
<controls1:SampleThemeListener Grid.Row="3">
<Frame x:Name="NavigationFrame" />
</controls1:SampleThemeListener>
</Grid>
Expand Down