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+ // Icon Type Visual States
15+ [ TemplateVisualState ( Name = OutlineTypeStateName , GroupName = IconTypeStateGroupName ) ]
16+ [ TemplateVisualState ( Name = LayeredTypeStateName , GroupName = IconTypeStateGroupName ) ]
17+ [ TemplateVisualState ( Name = FilledTypeStateName , GroupName = IconTypeStateGroupName ) ]
18+ // Icon Color Visual States
19+ [ TemplateVisualState ( Name = NormalStateName , GroupName = IconColorStateGroupName ) ]
20+ [ TemplateVisualState ( Name = CriticalStateName , GroupName = IconColorStateGroupName ) ]
21+ [ TemplateVisualState ( Name = CautionStateName , GroupName = IconColorStateGroupName ) ]
22+ [ TemplateVisualState ( Name = SuccessStateName , GroupName = IconColorStateGroupName ) ]
23+ [ TemplateVisualState ( Name = NeutralStateName , GroupName = IconColorStateGroupName ) ]
24+ [ TemplateVisualState ( Name = AccentStateName , GroupName = IconColorStateGroupName ) ]
25+ [ TemplateVisualState ( Name = CustomColorStateName , GroupName = IconColorStateGroupName ) ]
26+ [ TemplateVisualState ( Name = ToggleStateName , GroupName = IconColorStateGroupName ) ]
27+ [ TemplateVisualState ( Name = DisabledColorStateName , GroupName = IconColorStateGroupName ) ]
28+ [ TemplateVisualState ( Name = DisabledToggleColorStateName , GroupName = IconColorStateGroupName ) ]
29+ // Icon IsEnabled Visual States
30+ [ TemplateVisualState ( Name = EnabledStateName , GroupName = EnabledStateGroupName ) ]
31+ [ TemplateVisualState ( Name = DisabledStateName , GroupName = EnabledStateGroupName ) ]
32+ public partial class ThemedIcon
33+ {
34+ // Visual State Group Names
35+ internal const string IconTypeStateGroupName = "IconTypeStates" ;
36+ internal const string IconColorStateGroupName = "IconColorStates" ;
37+ internal const string EnabledStateGroupName = "EnabledStates" ;
1938
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 ) ]
39+ // "Icon Type" Visual State Names
40+ internal const string OutlineTypeStateName = "Outline" ;
41+ internal const string FilledTypeStateName = "Filled" ;
42+ internal const string LayeredTypeStateName = "Layered" ;
3143
32- // Icon IsEnabled Visual States
33- [ TemplateVisualState ( Name = EnabledStateName , GroupName = EnabledStateGroupName ) ]
34- [ TemplateVisualState ( Name = DisabledStateName , GroupName = EnabledStateGroupName ) ]
44+ // "Icon State" Visual State Names
45+ internal const string NormalStateName = "Normal" ;
46+ internal const string CriticalStateName = "Critical" ;
47+ internal const string CautionStateName = "Caution" ;
48+ internal const string SuccessStateName = "Success" ;
49+ internal const string NeutralStateName = "Neutral" ;
50+ internal const string AccentStateName = "Accent" ;
51+ internal const string CustomColorStateName = "Custom" ;
52+ internal const string ToggleStateName = "Toggle" ;
53+ internal const string DisabledColorStateName = "DisabledColor" ;
54+ internal const string DisabledToggleColorStateName = "DisabledToggleColor" ;
3555
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" ;
56+ // "Enabled" Visual State Names
57+ internal const string EnabledStateName = "Enabled" ;
58+ internal const string DisabledStateName = "Disabled" ;
4259
43- // "Icon Type" Visual State Names
44- internal const string OutlineTypeStateName = "Outline" ;
45- internal const string FilledTypeStateName = "Filled" ;
46- internal const string LayeredTypeStateName = "Layered" ;
60+ // ViewBox Controls
61+ internal const string FilledPathIconViewBox = "PART_FilledIconViewBox" ;
62+ internal const string OutlinePathIconViewBox = "PART_OutlineIconViewBox" ;
63+ internal const string LayeredPathIconViewBox = "PART_LayeredIconViewBox" ;
64+ internal const string LayeredPathCanvas = "PART_LayerCanvas" ;
4765
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" ;
59-
60- // "Enabled" Visual State Names
61- internal const string EnabledStateName = "Enabled" ;
62- internal const string DisabledStateName = "Disabled" ;
63-
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" ;
69-
70- // Path Controls
71- internal const string FilledIconPath = "PART_FilledPath" ;
72- internal const string OutlineIconPath = "PART_OutlinePath" ;
73- }
74- }
66+ // Path Controls
67+ internal const string FilledIconPath = "PART_FilledPath" ;
68+ internal const string OutlineIconPath = "PART_OutlinePath" ;
69+ }
70+ }
0 commit comments