Skip to content

Commit

Permalink
fix: fluent textbox xaml display in lightweight extension page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Antoine-Soucy committed Aug 16, 2023
1 parent 46c2849 commit fc9888e
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,23 +271,23 @@

<TextBox PlaceholderText="Overriden TextBox Style"
local:ResourceExtensions.OverridePath="ms-appx:///Views/ControlResourcesOverride/Fluent/TextBox.xaml" />
</StackPanel>

<!-- Fluent/TextBox.xaml content: -->
<example:ResourceDictionary>
<!-- Default State -->
<SolidColorBrush x:Key="TextControlForeground" Color="Red" />
<SolidColorBrush x:Key="TextControlBackground" Color="Cyan" />

<!-- Pointer Over State -->
<SolidColorBrush x:Key="TextControlButtonBackgroundPointerOver" Color="Orange" />
<SolidColorBrush x:Key="TextControlBackgroundPointerOver" Color="Navy" />
<SolidColorBrush x:Key="TextControlForegroundPointerOver" Color="Gray" />

<!-- Focused State -->
<SolidColorBrush x:Key="TextControlForegroundFocused" Color="Yellow" />
<SolidColorBrush x:Key="TextControlBackgroundFocused" Color="RosyBrown" />
</example:ResourceDictionary>
<!-- Fluent/TextBox.xaml content: -->
<example:ResourceDictionary>
<!-- Default State -->
<SolidColorBrush x:Key="TextControlForeground" Color="Red" />
<SolidColorBrush x:Key="TextControlBackground" Color="Cyan" />

<!-- Pointer Over State -->
<SolidColorBrush x:Key="TextControlButtonBackgroundPointerOver" Color="Orange" />
<SolidColorBrush x:Key="TextControlBackgroundPointerOver" Color="Navy" />
<SolidColorBrush x:Key="TextControlForegroundPointerOver" Color="Gray" />

<!-- Focused State -->
<SolidColorBrush x:Key="TextControlForegroundFocused" Color="Yellow" />
<SolidColorBrush x:Key="TextControlBackgroundFocused" Color="RosyBrown" />
</example:ResourceDictionary>
</StackPanel>
</smtx:XamlDisplay>

<!-- CheckBox -->
Expand Down

0 comments on commit fc9888e

Please sign in to comment.