Skip to content

Commit 7c8fdba

Browse files
committed
update ThemeResource to include all resources in WindowsAppSdk 1.7 (mainly TitleBar resources)
1 parent 541366c commit 7c8fdba

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/CSharpMarkup.WinUI/ThemeResource.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,7 @@ public static class ThemeResource
14091409
public static Microsoft.UI.Xaml.Media.SolidColorBrush MenuBarItemBorderBrushSelected => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["MenuBarItemBorderBrushSelected"];
14101410
public static Microsoft.UI.Xaml.Thickness MenuBarItemBorderThickness => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["MenuBarItemBorderThickness"];
14111411
public static Microsoft.UI.Xaml.Thickness MenuBarItemButtonPadding => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["MenuBarItemButtonPadding"];
1412+
public static Microsoft.UI.Xaml.Media.SolidColorBrush MenuBarItemForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["MenuBarItemForeground"];
14121413
public static Microsoft.UI.Xaml.Thickness MenuBarItemMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["MenuBarItemMargin"];
14131414
public static Microsoft.UI.Xaml.Media.SolidColorBrush MenuFlyoutItemBackground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["MenuFlyoutItemBackground"];
14141415
public static Microsoft.UI.Xaml.Media.SolidColorBrush MenuFlyoutItemBackgroundBrush => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["MenuFlyoutItemBackgroundBrush"];
@@ -1571,6 +1572,7 @@ public static class ThemeResource
15711572
public static Microsoft.UI.Xaml.Media.SolidColorBrush NavigationViewItemForegroundSelectedPressed => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["NavigationViewItemForegroundSelectedPressed"];
15721573
public static Microsoft.UI.Xaml.Media.SolidColorBrush NavigationViewItemHeaderForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["NavigationViewItemHeaderForeground"];
15731574
public static Microsoft.UI.Xaml.Style NavigationViewItemHeaderTextStyle => (Microsoft.UI.Xaml.Style)App.Current.Resources["NavigationViewItemHeaderTextStyle"];
1575+
public static Microsoft.UI.Xaml.Media.SolidColorBrush NavigationViewItemIconBackground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["NavigationViewItemIconBackground"];
15741576
public static Microsoft.UI.Xaml.Thickness NavigationViewItemInnerHeaderMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["NavigationViewItemInnerHeaderMargin"];
15751577
public static Microsoft.UI.Xaml.Thickness NavigationViewItemMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["NavigationViewItemMargin"];
15761578
public static System.Double NavigationViewItemOnLeftIconBoxHeight => (System.Double)App.Current.Resources["NavigationViewItemOnLeftIconBoxHeight"];
@@ -1842,7 +1844,10 @@ public static class ThemeResource
18421844
public static Microsoft.UI.Xaml.Thickness RadioButtonsTopHeaderMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["RadioButtonsTopHeaderMargin"];
18431845
public static Microsoft.UI.Xaml.Style RadioMenuFlyoutSubItemStyle => (Microsoft.UI.Xaml.Style)App.Current.Resources["RadioMenuFlyoutSubItemStyle"];
18441846
public static Microsoft.UI.Xaml.Media.SolidColorBrush RatingControlCaptionForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["RatingControlCaptionForeground"];
1847+
public static System.Double RatingControlCaptionTopMargin => (System.Double)App.Current.Resources["RatingControlCaptionTopMargin"];
18451848
public static Microsoft.UI.Xaml.Media.SolidColorBrush RatingControlDisabledSelectedForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["RatingControlDisabledSelectedForeground"];
1849+
public static System.Double RatingControlFontSizeForRendering => (System.Double)App.Current.Resources["RatingControlFontSizeForRendering"];
1850+
public static System.Double RatingControlItemSpacing => (System.Double)App.Current.Resources["RatingControlItemSpacing"];
18461851
public static Microsoft.UI.Xaml.Media.SolidColorBrush RatingControlPlaceholderForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["RatingControlPlaceholderForeground"];
18471852
public static Microsoft.UI.Xaml.Media.SolidColorBrush RatingControlPointerOverPlaceholderForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["RatingControlPointerOverPlaceholderForeground"];
18481853
public static Microsoft.UI.Xaml.Media.SolidColorBrush RatingControlPointerOverSelectedForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["RatingControlPointerOverSelectedForeground"];
@@ -2584,6 +2589,45 @@ public static class ThemeResource
25842589
public static System.Double TimePickerThemeMinWidth => (System.Double)App.Current.Resources["TimePickerThemeMinWidth"];
25852590
public static Microsoft.UI.Xaml.Thickness TimePickerThirdHostThemeMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["TimePickerThirdHostThemeMargin"];
25862591
public static Microsoft.UI.Xaml.Thickness TimePickerTopHeaderMargin => (Microsoft.UI.Xaml.Thickness)App.Current.Resources["TimePickerTopHeaderMargin"];
2592+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonBackground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonBackground"];
2593+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonBackgroundDisabled => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonBackgroundDisabled"];
2594+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonBackgroundPointerOver => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonBackgroundPointerOver"];
2595+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonBackgroundPressed => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonBackgroundPressed"];
2596+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonForeground"];
2597+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonForegroundDisabled => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonForegroundDisabled"];
2598+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonForegroundPointerOver => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonForegroundPointerOver"];
2599+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarBackButtonForegroundPressed => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarBackButtonForegroundPressed"];
2600+
public static Microsoft.UI.Xaml.Style TitleBarBackButtonStyle => (Microsoft.UI.Xaml.Style)App.Current.Resources["TitleBarBackButtonStyle"];
2601+
public static System.Double TitleBarBackButtonWidth => (System.Double)App.Current.Resources["TitleBarBackButtonWidth"];
2602+
public static Windows.UI.Color TitleBarCaptionButtonBackgroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonBackgroundColor"];
2603+
public static Windows.UI.Color TitleBarCaptionButtonForegroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonForegroundColor"];
2604+
public static Windows.UI.Color TitleBarCaptionButtonHoverBackgroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonHoverBackgroundColor"];
2605+
public static Windows.UI.Color TitleBarCaptionButtonHoverForegroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonHoverForegroundColor"];
2606+
public static Windows.UI.Color TitleBarCaptionButtonInactiveForegroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonInactiveForegroundColor"];
2607+
public static Windows.UI.Color TitleBarCaptionButtonPressedBackgroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonPressedBackgroundColor"];
2608+
public static Windows.UI.Color TitleBarCaptionButtonPressedForegroundColor => (Windows.UI.Color)App.Current.Resources["TitleBarCaptionButtonPressedForegroundColor"];
2609+
public static System.Double TitleBarCompactHeight => (System.Double)App.Current.Resources["TitleBarCompactHeight"];
2610+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarDeactivatedForegroundBrush => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarDeactivatedForegroundBrush"];
2611+
public static System.Double TitleBarDeactivatedOpacity => (System.Double)App.Current.Resources["TitleBarDeactivatedOpacity"];
2612+
public static System.Double TitleBarExpandedHeight => (System.Double)App.Current.Resources["TitleBarExpandedHeight"];
2613+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarForegroundBrush => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarForegroundBrush"];
2614+
public static System.Double TitleBarHeaderNegativeInsetPaddingWidth => (System.Double)App.Current.Resources["TitleBarHeaderNegativeInsetPaddingWidth"];
2615+
public static System.Double TitleBarLeftHeaderPaddingWidth => (System.Double)App.Current.Resources["TitleBarLeftHeaderPaddingWidth"];
2616+
public static System.Double TitleBarLeftPaddingWidth => (System.Double)App.Current.Resources["TitleBarLeftPaddingWidth"];
2617+
public static System.Double TitleBarMinDragRegionWidth => (System.Double)App.Current.Resources["TitleBarMinDragRegionWidth"];
2618+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonBackground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonBackground"];
2619+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonBackgroundDisabled => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonBackgroundDisabled"];
2620+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonBackgroundPointerOver => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonBackgroundPointerOver"];
2621+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonBackgroundPressed => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonBackgroundPressed"];
2622+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonForeground => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonForeground"];
2623+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonForegroundPointerOver => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonForegroundPointerOver"];
2624+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleButtonForegroundPressed => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleButtonForegroundPressed"];
2625+
public static Microsoft.UI.Xaml.Style TitleBarPaneToggleButtonStyle => (Microsoft.UI.Xaml.Style)App.Current.Resources["TitleBarPaneToggleButtonStyle"];
2626+
public static System.Double TitleBarPaneToggleButtonWidth => (System.Double)App.Current.Resources["TitleBarPaneToggleButtonWidth"];
2627+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarPaneToggleForegroundDisabled => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarPaneToggleForegroundDisabled"];
2628+
public static System.Double TitleBarRightPaddingWidth => (System.Double)App.Current.Resources["TitleBarRightPaddingWidth"];
2629+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarSubtitleDeactivatedForegroundBrush => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarSubtitleDeactivatedForegroundBrush"];
2630+
public static Microsoft.UI.Xaml.Media.SolidColorBrush TitleBarSubtitleForegroundBrush => (Microsoft.UI.Xaml.Media.SolidColorBrush)App.Current.Resources["TitleBarSubtitleForegroundBrush"];
25872631
public static System.Double TitleLargeTextBlockFontSize => (System.Double)App.Current.Resources["TitleLargeTextBlockFontSize"];
25882632
public static Microsoft.UI.Xaml.Style TitleLargeTextBlockStyle => (Microsoft.UI.Xaml.Style)App.Current.Resources["TitleLargeTextBlockStyle"];
25892633
public static System.Double TitleTextBlockFontSize => (System.Double)App.Current.Resources["TitleTextBlockFontSize"];

0 commit comments

Comments
 (0)