■ WinUI 3의 generic.xaml 파일에서 색상을 구하는 방법을 보여준다.
※ 비주얼 스튜디오에서 TestProject(Unpackaged) 모드로 빌드한다.
※ TestProject.csproj 프로젝트 파일에서 WindowsPackageType 태그를 None으로 추가했다.
▶ ColorItem.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
using System; using Windows.UI; namespace TestProject; /// <summary> /// 색상 항목 /// </summary> public class ColorItem { //////////////////////////////////////////////////////////////////////////////////////////////////// Property ////////////////////////////////////////////////////////////////////////////////////////// Public #region 명칭 - Name /// <summary> /// 명칭 /// </summary> public string Name { get; set; } #endregion #region 색상 - Color /// <summary> /// 색상 /// </summary> public Color Color { get; set; } #endregion #region 색상 타입 - ColorType /// <summary> /// 색상 타입 /// </summary> public string ColorType { get { Type type = Color.GetType(); string typeString = type.ToString(); return typeString.Substring(typeString.LastIndexOf(".") + 1); } } #endregion } |
▶ MainPage.xaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<?xml version="1.0" encoding="utf-8"?> <Page x:Class="TestProject.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:TestProject" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" FontFamily="나눔고딕코딩" FontSize="16"> <Page.Resources> <DataTemplate x:Key="DataTemplateKey" x:DataType="local:ColorItem"> <StackPanel VerticalAlignment="Center" Orientation="Horizontal"> <Border VerticalAlignment="Center" Width="30" Height="30" BorderThickness="1" BorderBrush="Black"> <Border.Background> <SolidColorBrush Color="{x:Bind Color}" /> </Border.Background> </Border> <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Text="{x:Bind ColorType}" /> <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Text="{x:Bind Name}" /> </StackPanel> </DataTemplate> </Page.Resources> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="10" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <ListBox Name="listBox" Grid.Row="0" ItemTemplate="{StaticResource DataTemplateKey}"> </ListBox> <ToggleSwitch Name="toggleSwitch" Grid.Row="2" HorizontalAlignment="Right" OffContent="Light" OnContent="Dark" IsOn="False"> </ToggleSwitch> </Grid> </Page> |
▶ MainPage.xaml.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
using System.Collections.ObjectModel; using Windows.ApplicationModel.DataTransfer; using Windows.UI; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; namespace TestProject; /// <summary> /// 메인 페이지 /// </summary> public sealed partial class MainPage : Page { //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor ////////////////////////////////////////////////////////////////////////////////////////// Public #region 생성자 - MainPage() /// <summary> /// 생성자 /// </summary> public MainPage() { InitializeComponent(); this.listBox.ItemsSource = GetColorItemCollection(); this.listBox.SelectionChanged += listBox_SelectionChanged; this.toggleSwitch.Toggled += toggleSwitch_Toggled; } #endregion //////////////////////////////////////////////////////////////////////////////////////////////////// Method ////////////////////////////////////////////////////////////////////////////////////////// Private //////////////////////////////////////////////////////////////////////////////// Event #region 리스트 박스 선택 변경시 처리하기 - listBox_SelectionChanged(sender, e) /// <summary> /// 리스트 박스 선택 변경시 처리하기 /// </summary> /// <param name="sender">이벤트 발생자</param> /// <param name="e">이벤트 인자</param> private void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if(e.AddedItems.Count > 0) { ColorItem item = e.AddedItems[0] as ColorItem; DataPackage dataPackage = new DataPackage(); dataPackage.SetText(item.Name); Clipboard.SetContent(dataPackage); } } #endregion #region 토글 스위치 토글시 처리하기 - toggleSwitch_Toggled(sender, e) /// <summary> /// 토글 스위치 토글시 처리하기 /// </summary> /// <param name="sender">이벤트 발생자</param> /// <param name="e">이벤트 인자</param> private void toggleSwitch_Toggled(object sender, RoutedEventArgs e) { if(this.toggleSwitch.IsOn) { RequestedTheme = ElementTheme.Dark; } else { RequestedTheme = ElementTheme.Light; } } #endregion //////////////////////////////////////////////////////////////////////////////// Function #region 색상 항목 컬렉션 구하기 - GetColorItemCollection() /// <summary> /// 색상 항목 컬렉션 구하기 /// </summary> /// <returns>색상 항목 컬렉션</returns> private ObservableCollection<ColorItem> GetColorItemCollection() { ResourceDictionary resourceDictionary = Application.Current.Resources; ObservableCollection<ColorItem> collection = new ObservableCollection<ColorItem>(); collection.Add(new ColorItem { Name = "AccentAAFillColorDisabled" , Color = (Color)resourceDictionary["AccentAAFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "AccentFillColorDisabled" , Color = (Color)resourceDictionary["AccentFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "AccentTextFillColorDisabled" , Color = (Color)resourceDictionary["AccentTextFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "CardBackgroundFillColorDefault" , Color = (Color)resourceDictionary["CardBackgroundFillColorDefault" ] }); collection.Add(new ColorItem { Name = "CardBackgroundFillColorSecondary" , Color = (Color)resourceDictionary["CardBackgroundFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "CardStrokeColorDefault" , Color = (Color)resourceDictionary["CardStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "CardStrokeColorDefaultSolid" , Color = (Color)resourceDictionary["CardStrokeColorDefaultSolid" ] }); collection.Add(new ColorItem { Name = "ControlAAFillColorDefault" , Color = (Color)resourceDictionary["ControlAAFillColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlAAFillColorDisabled" , Color = (Color)resourceDictionary["ControlAAFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlAAStrokeColorDefault" , Color = (Color)resourceDictionary["ControlAAStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlAAStrokeColorDisabled" , Color = (Color)resourceDictionary["ControlAAStrokeColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlAltFillColorDisabled" , Color = (Color)resourceDictionary["ControlAltFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlAltFillColorQuarternary" , Color = (Color)resourceDictionary["ControlAltFillColorQuarternary" ] }); collection.Add(new ColorItem { Name = "ControlAltFillColorSecondary" , Color = (Color)resourceDictionary["ControlAltFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "ControlAltFillColorTertiary" , Color = (Color)resourceDictionary["ControlAltFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "ControlAltFillColorTransparent" , Color = (Color)resourceDictionary["ControlAltFillColorTransparent" ] }); collection.Add(new ColorItem { Name = "ControlFillColorDefault" , Color = (Color)resourceDictionary["ControlFillColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlFillColorDisabled" , Color = (Color)resourceDictionary["ControlFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlFillColorInputActive" , Color = (Color)resourceDictionary["ControlFillColorInputActive" ] }); collection.Add(new ColorItem { Name = "ControlFillColorSecondary" , Color = (Color)resourceDictionary["ControlFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "ControlFillColorTertiary" , Color = (Color)resourceDictionary["ControlFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "ControlFillColorTransparent" , Color = (Color)resourceDictionary["ControlFillColorTransparent" ] }); collection.Add(new ColorItem { Name = "ControlOnImageFillColorDefault" , Color = (Color)resourceDictionary["ControlOnImageFillColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlOnImageFillColorDisabled" , Color = (Color)resourceDictionary["ControlOnImageFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlOnImageFillColorSecondary" , Color = (Color)resourceDictionary["ControlOnImageFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "ControlOnImageFillColorTertiary" , Color = (Color)resourceDictionary["ControlOnImageFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "ControlSolidFillColorDefault" , Color = (Color)resourceDictionary["ControlSolidFillColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorDefault" , Color = (Color)resourceDictionary["ControlStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorForAAFillOnImage" , Color = (Color)resourceDictionary["ControlStrokeColorForAAFillOnImage" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorForStrongFillWhenOnImage", Color = (Color)resourceDictionary["ControlStrokeColorForStrongFillWhenOnImage"] }); collection.Add(new ColorItem { Name = "ControlStrokeColorOnAccentDefault" , Color = (Color)resourceDictionary["ControlStrokeColorOnAccentDefault" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorOnAccentDisabled" , Color = (Color)resourceDictionary["ControlStrokeColorOnAccentDisabled" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorOnAccentSecondary" , Color = (Color)resourceDictionary["ControlStrokeColorOnAccentSecondary" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorOnAccentTertiary" , Color = (Color)resourceDictionary["ControlStrokeColorOnAccentTertiary" ] }); collection.Add(new ColorItem { Name = "ControlStrokeColorSecondary" , Color = (Color)resourceDictionary["ControlStrokeColorSecondary" ] }); collection.Add(new ColorItem { Name = "ControlStrongFillColorDefault" , Color = (Color)resourceDictionary["ControlStrongFillColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlStrongFillColorDisabled" , Color = (Color)resourceDictionary["ControlStrongFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "ControlStrongStrokeColorDefault" , Color = (Color)resourceDictionary["ControlStrongStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "ControlStrongStrokeColorDisabled" , Color = (Color)resourceDictionary["ControlStrongStrokeColorDisabled" ] }); collection.Add(new ColorItem { Name = "DividerStrokeColorDefault" , Color = (Color)resourceDictionary["DividerStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "FocusStrokeColorInner" , Color = (Color)resourceDictionary["FocusStrokeColorInner" ] }); collection.Add(new ColorItem { Name = "FocusStrokeColorOuter" , Color = (Color)resourceDictionary["FocusStrokeColorOuter" ] }); collection.Add(new ColorItem { Name = "LayerFillColorAlt" , Color = (Color)resourceDictionary["LayerFillColorAlt" ] }); collection.Add(new ColorItem { Name = "LayerFillColorDefault" , Color = (Color)resourceDictionary["LayerFillColorDefault" ] }); collection.Add(new ColorItem { Name = "LayerOnAccentAcrylicFillColorDefault" , Color = (Color)resourceDictionary["LayerOnAccentAcrylicFillColorDefault" ] }); collection.Add(new ColorItem { Name = "LayerOnAcrylicFillColorDefault" , Color = (Color)resourceDictionary["LayerOnAcrylicFillColorDefault" ] }); collection.Add(new ColorItem { Name = "LayerOnMicaBaseAltFillColorDefault" , Color = (Color)resourceDictionary["LayerOnMicaBaseAltFillColorDefault" ] }); collection.Add(new ColorItem { Name = "LayerOnMicaBaseAltFillColorSecondary" , Color = (Color)resourceDictionary["LayerOnMicaBaseAltFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "LayerOnMicaBaseAltFillColorTertiary" , Color = (Color)resourceDictionary["LayerOnMicaBaseAltFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "LayerOnMicaBaseAltFillColorTransparent" , Color = (Color)resourceDictionary["LayerOnMicaBaseAltFillColorTransparent" ] }); collection.Add(new ColorItem { Name = "SmokeFillColorDefault" , Color = (Color)resourceDictionary["SmokeFillColorDefault" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorBase" , Color = (Color)resourceDictionary["SolidBackgroundFillColorBase" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorBaseAlt" , Color = (Color)resourceDictionary["SolidBackgroundFillColorBaseAlt" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorQuarternary" , Color = (Color)resourceDictionary["SolidBackgroundFillColorQuarternary" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorSecondary" , Color = (Color)resourceDictionary["SolidBackgroundFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorTertiary" , Color = (Color)resourceDictionary["SolidBackgroundFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "SolidBackgroundFillColorTransparent" , Color = (Color)resourceDictionary["SolidBackgroundFillColorTransparent" ] }); collection.Add(new ColorItem { Name = "SubtleFillColorDisabled" , Color = (Color)resourceDictionary["SubtleFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "SubtleFillColorSecondary" , Color = (Color)resourceDictionary["SubtleFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "SubtleFillColorTertiary" , Color = (Color)resourceDictionary["SubtleFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "SubtleFillColorTransparent" , Color = (Color)resourceDictionary["SubtleFillColorTransparent" ] }); collection.Add(new ColorItem { Name = "SurfaceStrokeColorDefault" , Color = (Color)resourceDictionary["SurfaceStrokeColorDefault" ] }); collection.Add(new ColorItem { Name = "SurfaceStrokeColorFlyout" , Color = (Color)resourceDictionary["SurfaceStrokeColorFlyout" ] }); collection.Add(new ColorItem { Name = "SurfaceStrokeColorInverse" , Color = (Color)resourceDictionary["SurfaceStrokeColorInverse" ] }); collection.Add(new ColorItem { Name = "SystemAltHighColor" , Color = (Color)resourceDictionary["SystemAltHighColor" ] }); collection.Add(new ColorItem { Name = "SystemAltLowColor" , Color = (Color)resourceDictionary["SystemAltLowColor" ] }); collection.Add(new ColorItem { Name = "SystemAltMediumColor" , Color = (Color)resourceDictionary["SystemAltMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemAltMediumHighColor" , Color = (Color)resourceDictionary["SystemAltMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemAltMediumLowColor" , Color = (Color)resourceDictionary["SystemAltMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemBaseHighColor" , Color = (Color)resourceDictionary["SystemBaseHighColor" ] }); collection.Add(new ColorItem { Name = "SystemBaseLowColor" , Color = (Color)resourceDictionary["SystemBaseLowColor" ] }); collection.Add(new ColorItem { Name = "SystemBaseMediumColor" , Color = (Color)resourceDictionary["SystemBaseMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemBaseMediumHighColor" , Color = (Color)resourceDictionary["SystemBaseMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemBaseMediumLowColor" , Color = (Color)resourceDictionary["SystemBaseMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeAltHighColor" , Color = (Color)resourceDictionary["SystemChromeAltHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeAltLowColor" , Color = (Color)resourceDictionary["SystemChromeAltLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeAltMediumHighColor" , Color = (Color)resourceDictionary["SystemChromeAltMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeBlackHighColor" , Color = (Color)resourceDictionary["SystemChromeBlackHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeBlackLowColor" , Color = (Color)resourceDictionary["SystemChromeBlackLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeBlackMediumColor" , Color = (Color)resourceDictionary["SystemChromeBlackMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeBlackMediumLowColor" , Color = (Color)resourceDictionary["SystemChromeBlackMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeDisabledHighColor" , Color = (Color)resourceDictionary["SystemChromeDisabledHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeDisabledLowColor" , Color = (Color)resourceDictionary["SystemChromeDisabledLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeGrayColor" , Color = (Color)resourceDictionary["SystemChromeGrayColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeHighColor" , Color = (Color)resourceDictionary["SystemChromeHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeLowColor" , Color = (Color)resourceDictionary["SystemChromeLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeMediumColor" , Color = (Color)resourceDictionary["SystemChromeMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeMediumHighColor" , Color = (Color)resourceDictionary["SystemChromeMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeMediumLowColor" , Color = (Color)resourceDictionary["SystemChromeMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemChromeWhiteColor" , Color = (Color)resourceDictionary["SystemChromeWhiteColor" ] }); collection.Add(new ColorItem { Name = "SystemControlErrorBackgroundColor" , Color = (Color)resourceDictionary["SystemControlErrorBackgroundColor" ] }); collection.Add(new ColorItem { Name = "SystemControlTransparentColor" , Color = (Color)resourceDictionary["SystemControlTransparentColor" ] }); collection.Add(new ColorItem { Name = "SystemErrorTextColor" , Color = (Color)resourceDictionary["SystemErrorTextColor" ] }); collection.Add(new ColorItem { Name = "SystemFillColorAttentionBackground" , Color = (Color)resourceDictionary["SystemFillColorAttentionBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorCaution" , Color = (Color)resourceDictionary["SystemFillColorCaution" ] }); collection.Add(new ColorItem { Name = "SystemFillColorCautionBackground" , Color = (Color)resourceDictionary["SystemFillColorCautionBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorCritical" , Color = (Color)resourceDictionary["SystemFillColorCritical" ] }); collection.Add(new ColorItem { Name = "SystemFillColorCriticalBackground" , Color = (Color)resourceDictionary["SystemFillColorCriticalBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorNeutral" , Color = (Color)resourceDictionary["SystemFillColorNeutral" ] }); collection.Add(new ColorItem { Name = "SystemFillColorNeutralBackground" , Color = (Color)resourceDictionary["SystemFillColorNeutralBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorSolidAttentionBackground" , Color = (Color)resourceDictionary["SystemFillColorSolidAttentionBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorSolidNeutral" , Color = (Color)resourceDictionary["SystemFillColorSolidNeutral" ] }); collection.Add(new ColorItem { Name = "SystemFillColorSolidNeutralBackground" , Color = (Color)resourceDictionary["SystemFillColorSolidNeutralBackground" ] }); collection.Add(new ColorItem { Name = "SystemFillColorSuccess" , Color = (Color)resourceDictionary["SystemFillColorSuccess" ] }); collection.Add(new ColorItem { Name = "SystemFillColorSuccessBackground" , Color = (Color)resourceDictionary["SystemFillColorSuccessBackground" ] }); collection.Add(new ColorItem { Name = "SystemListLowColor" , Color = (Color)resourceDictionary["SystemListLowColor" ] }); collection.Add(new ColorItem { Name = "SystemListMediumColor" , Color = (Color)resourceDictionary["SystemListMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealAltHighColor" , Color = (Color)resourceDictionary["SystemRevealAltHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealAltLowColor" , Color = (Color)resourceDictionary["SystemRevealAltLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealAltMediumColor" , Color = (Color)resourceDictionary["SystemRevealAltMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealAltMediumHighColor" , Color = (Color)resourceDictionary["SystemRevealAltMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealAltMediumLowColor" , Color = (Color)resourceDictionary["SystemRevealAltMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealBaseHighColor" , Color = (Color)resourceDictionary["SystemRevealBaseHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealBaseLowColor" , Color = (Color)resourceDictionary["SystemRevealBaseLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealBaseMediumColor" , Color = (Color)resourceDictionary["SystemRevealBaseMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealBaseMediumHighColor" , Color = (Color)resourceDictionary["SystemRevealBaseMediumHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealBaseMediumLowColor" , Color = (Color)resourceDictionary["SystemRevealBaseMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeAltLowColor" , Color = (Color)resourceDictionary["SystemRevealChromeAltLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeBlackHighColor" , Color = (Color)resourceDictionary["SystemRevealChromeBlackHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeBlackLowColor" , Color = (Color)resourceDictionary["SystemRevealChromeBlackLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeBlackMediumColor" , Color = (Color)resourceDictionary["SystemRevealChromeBlackMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeBlackMediumLowColor" , Color = (Color)resourceDictionary["SystemRevealChromeBlackMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeGrayColor" , Color = (Color)resourceDictionary["SystemRevealChromeGrayColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeHighColor" , Color = (Color)resourceDictionary["SystemRevealChromeHighColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeLowColor" , Color = (Color)resourceDictionary["SystemRevealChromeLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeMediumColor" , Color = (Color)resourceDictionary["SystemRevealChromeMediumColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeMediumLowColor" , Color = (Color)resourceDictionary["SystemRevealChromeMediumLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealChromeWhiteColor" , Color = (Color)resourceDictionary["SystemRevealChromeWhiteColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealListLowColor" , Color = (Color)resourceDictionary["SystemRevealListLowColor" ] }); collection.Add(new ColorItem { Name = "SystemRevealListMediumColor" , Color = (Color)resourceDictionary["SystemRevealListMediumColor" ] }); collection.Add(new ColorItem { Name = "TemporaryTextFillColorDisabled" , Color = (Color)resourceDictionary["TemporaryTextFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "TextFillColorDisabled" , Color = (Color)resourceDictionary["TextFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "TextFillColorInverse" , Color = (Color)resourceDictionary["TextFillColorInverse" ] }); collection.Add(new ColorItem { Name = "TextFillColorPrimary" , Color = (Color)resourceDictionary["TextFillColorPrimary" ] }); collection.Add(new ColorItem { Name = "TextFillColorSecondary" , Color = (Color)resourceDictionary["TextFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "TextFillColorTertiary" , Color = (Color)resourceDictionary["TextFillColorTertiary" ] }); collection.Add(new ColorItem { Name = "TextOnAccentAAFillColorDisabled" , Color = (Color)resourceDictionary["TextOnAccentAAFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "TextOnAccentAAFillColorPrimary" , Color = (Color)resourceDictionary["TextOnAccentAAFillColorPrimary" ] }); collection.Add(new ColorItem { Name = "TextOnAccentAAFillColorSecondary" , Color = (Color)resourceDictionary["TextOnAccentAAFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "TextOnAccentFillColorDefault" , Color = (Color)resourceDictionary["TextOnAccentFillColorDefault" ] }); collection.Add(new ColorItem { Name = "TextOnAccentFillColorDisabled" , Color = (Color)resourceDictionary["TextOnAccentFillColorDisabled" ] }); collection.Add(new ColorItem { Name = "TextOnAccentFillColorPrimary" , Color = (Color)resourceDictionary["TextOnAccentFillColorPrimary" ] }); collection.Add(new ColorItem { Name = "TextOnAccentFillColorSecondary" , Color = (Color)resourceDictionary["TextOnAccentFillColorSecondary" ] }); collection.Add(new ColorItem { Name = "TextOnAccentFillColorSelectedText" , Color = (Color)resourceDictionary["TextOnAccentFillColorSelectedText" ] }); return collection; } #endregion } |