66
77namespace Files . App . Controls
88{
9- // Template Parts
10- [ TemplatePart ( Name = FilledPathIconViewBox , Type = typeof ( Viewbox ) ) ]
11- [ TemplatePart ( Name = OutlinePathIconViewBox , Type = typeof ( Viewbox ) ) ]
12- [ TemplatePart ( Name = LayeredPathIconViewBox , Type = typeof ( Viewbox ) ) ]
13- [ TemplatePart ( Name = LayeredPathCanvas , Type = typeof ( Canvas ) ) ]
14-
15- // Icon Type Visual States
16- [ TemplateVisualState ( Name = OutlineTypeStateName , GroupName = IconTypeStateGroupName ) ]
17- [ TemplateVisualState ( Name = LayeredTypeStateName , GroupName = IconTypeStateGroupName ) ]
18- [ TemplateVisualState ( Name = FilledTypeStateName , GroupName = IconTypeStateGroupName ) ]
9+ // Template Parts
10+ [ TemplatePart ( Name = FilledPathIconViewBox , Type = typeof ( Viewbox ) ) ]
11+ [ TemplatePart ( Name = OutlinePathIconViewBox , Type = typeof ( Viewbox ) ) ]
12+ [ TemplatePart ( Name = LayeredPathIconViewBox , Type = typeof ( Viewbox ) ) ]
13+ [ TemplatePart ( Name = LayeredPathCanvas , Type = typeof ( Canvas ) ) ]
14+
15+ // Icon Type Visual States
16+ [ TemplateVisualState ( Name = OutlineTypeStateName , GroupName = IconTypeStateGroupName ) ]
17+ [ TemplateVisualState ( Name = LayeredTypeStateName , GroupName = IconTypeStateGroupName ) ]
18+ [ TemplateVisualState ( Name = FilledTypeStateName , GroupName = IconTypeStateGroupName ) ]
1919
20- // Icon Color Visual States
21- [ TemplateVisualState ( Name = NormalStateName , GroupName = IconColorStateGroupName ) ]
22- [ TemplateVisualState ( Name = CriticalStateName , GroupName = IconColorStateGroupName ) ]
23- [ TemplateVisualState ( Name = CautionStateName , GroupName = IconColorStateGroupName ) ]
24- [ TemplateVisualState ( Name = SuccessStateName , GroupName = IconColorStateGroupName ) ]
25- [ TemplateVisualState ( Name = NeutralStateName , GroupName = IconColorStateGroupName ) ]
26- [ TemplateVisualState ( Name = AccentStateName , GroupName = IconColorStateGroupName ) ]
27- [ TemplateVisualState ( Name = CustomColorStateName , GroupName = IconColorStateGroupName ) ]
28- [ TemplateVisualState ( Name = ToggleStateName , GroupName = IconColorStateGroupName ) ]
29- [ TemplateVisualState ( Name = DisabledColorStateName , GroupName = IconColorStateGroupName ) ]
30- [ TemplateVisualState ( Name = DisabledToggleColorStateName , GroupName = IconColorStateGroupName ) ]
20+ // Icon Color Visual States
21+ [ TemplateVisualState ( Name = NormalStateName , GroupName = IconColorStateGroupName ) ]
22+ [ TemplateVisualState ( Name = CriticalStateName , GroupName = IconColorStateGroupName ) ]
23+ [ TemplateVisualState ( Name = CautionStateName , GroupName = IconColorStateGroupName ) ]
24+ [ TemplateVisualState ( Name = SuccessStateName , GroupName = IconColorStateGroupName ) ]
25+ [ TemplateVisualState ( Name = NeutralStateName , GroupName = IconColorStateGroupName ) ]
26+ [ TemplateVisualState ( Name = AccentStateName , GroupName = IconColorStateGroupName ) ]
27+ [ TemplateVisualState ( Name = CustomColorStateName , GroupName = IconColorStateGroupName ) ]
28+ [ TemplateVisualState ( Name = ToggleStateName , GroupName = IconColorStateGroupName ) ]
29+ [ TemplateVisualState ( Name = DisabledColorStateName , GroupName = IconColorStateGroupName ) ]
30+ [ TemplateVisualState ( Name = DisabledToggleColorStateName , GroupName = IconColorStateGroupName ) ]
3131
32- // Icon IsEnabled Visual States
33- [ TemplateVisualState ( Name = EnabledStateName , GroupName = EnabledStateGroupName ) ]
34- [ TemplateVisualState ( Name = DisabledStateName , GroupName = EnabledStateGroupName ) ]
32+ // Icon IsEnabled Visual States
33+ [ TemplateVisualState ( Name = EnabledStateName , GroupName = EnabledStateGroupName ) ]
34+ [ TemplateVisualState ( Name = DisabledStateName , GroupName = EnabledStateGroupName ) ]
3535
36- public partial class ThemedIcon
37- {
38- // Visual State Group Names
39- internal const string IconTypeStateGroupName = "IconTypeStates" ;
40- internal const string IconColorStateGroupName = "IconColorStates" ;
41- internal const string EnabledStateGroupName = "EnabledStates" ;
36+ public partial class ThemedIcon
37+ {
38+ // Visual State Group Names
39+ internal const string IconTypeStateGroupName = "IconTypeStates" ;
40+ internal const string IconColorStateGroupName = "IconColorStates" ;
41+ internal const string EnabledStateGroupName = "EnabledStates" ;
4242
43- // "Icon Type" Visual State Names
44- internal const string OutlineTypeStateName = "Outline" ;
45- internal const string FilledTypeStateName = "Filled" ;
46- internal const string LayeredTypeStateName = "Layered" ;
43+ // "Icon Type" Visual State Names
44+ internal const string OutlineTypeStateName = "Outline" ;
45+ internal const string FilledTypeStateName = "Filled" ;
46+ internal const string LayeredTypeStateName = "Layered" ;
4747
48- // "Icon State" Visual State Names
49- internal const string NormalStateName = "Normal" ;
50- internal const string CriticalStateName = "Critical" ;
51- internal const string CautionStateName = "Caution" ;
52- internal const string SuccessStateName = "Success" ;
53- internal const string NeutralStateName = "Neutral" ;
54- internal const string AccentStateName = "Accent" ;
55- internal const string CustomColorStateName = "Custom" ;
56- internal const string ToggleStateName = "Toggle" ;
57- internal const string DisabledColorStateName = "DisabledColor" ;
58- internal const string DisabledToggleColorStateName = "DisabledToggleColor" ;
48+ // "Icon State" Visual State Names
49+ internal const string NormalStateName = "Normal" ;
50+ internal const string CriticalStateName = "Critical" ;
51+ internal const string CautionStateName = "Caution" ;
52+ internal const string SuccessStateName = "Success" ;
53+ internal const string NeutralStateName = "Neutral" ;
54+ internal const string AccentStateName = "Accent" ;
55+ internal const string CustomColorStateName = "Custom" ;
56+ internal const string ToggleStateName = "Toggle" ;
57+ internal const string DisabledColorStateName = "DisabledColor" ;
58+ internal const string DisabledToggleColorStateName = "DisabledToggleColor" ;
5959
60- // "Enabled" Visual State Names
61- internal const string EnabledStateName = "Enabled" ;
62- internal const string DisabledStateName = "Disabled" ;
60+ // "Enabled" Visual State Names
61+ internal const string EnabledStateName = "Enabled" ;
62+ internal const string DisabledStateName = "Disabled" ;
6363
64- // ViewBox Controls
65- internal const string FilledPathIconViewBox = "PART_FilledIconViewBox" ;
66- internal const string OutlinePathIconViewBox = "PART_OutlineIconViewBox" ;
67- internal const string LayeredPathIconViewBox = "PART_LayeredIconViewBox" ;
68- internal const string LayeredPathCanvas = "PART_LayerCanvas" ;
64+ // ViewBox Controls
65+ internal const string FilledPathIconViewBox = "PART_FilledIconViewBox" ;
66+ internal const string OutlinePathIconViewBox = "PART_OutlineIconViewBox" ;
67+ internal const string LayeredPathIconViewBox = "PART_LayeredIconViewBox" ;
68+ internal const string LayeredPathCanvas = "PART_LayerCanvas" ;
6969
70- // Path Controls
71- internal const string FilledIconPath = "PART_FilledPath" ;
72- internal const string OutlineIconPath = "PART_OutlinePath" ;
73- }
74- }
70+ // Path Controls
71+ internal const string FilledIconPath = "PART_FilledPath" ;
72+ internal const string OutlineIconPath = "PART_OutlinePath" ;
73+ }
74+ }
0 commit comments