File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,39 +22,4 @@ public static class IconHelper
2222 }
2323 return iconElement ;
2424 }
25-
26- public static string GetSubcategoryIcon ( ToolkitSampleSubcategory subcategory )
27- {
28- string imagePath = string . Empty ;
29- switch ( subcategory )
30- {
31- case ToolkitSampleSubcategory . None : imagePath = "ms-appx:///Assets/ControlIcons/Control.png" ; break ;
32- case ToolkitSampleSubcategory . Behaviors : imagePath = "ms-appx:///Assets/ControlIcons/Input.png" ; break ;
33- case ToolkitSampleSubcategory . Controls : imagePath = "ms-appx:///Assets/ControlIcons/Control.png" ; break ;
34- case ToolkitSampleSubcategory . Converters : imagePath = "ms-appx:///Assets/ControlIcons/Input.png" ; break ;
35- case ToolkitSampleSubcategory . Input : imagePath = "ms-appx:///Assets/ControlIcons/Input.png" ; break ;
36- case ToolkitSampleSubcategory . Layout : imagePath = "ms-appx:///Assets/ControlIcons/Layout.png" ; break ;
37- case ToolkitSampleSubcategory . Markup : imagePath = "ms-appx:///Assets/ControlIcons/Input.png" ; break ;
38- case ToolkitSampleSubcategory . Math : imagePath = "ms-appx:///Assets/ControlIcons/Control.png" ; break ;
39- case ToolkitSampleSubcategory . Media : imagePath = "ms-appx:///Assets/ControlIcons/Control.png" ; break ;
40- case ToolkitSampleSubcategory . StatusAndInfo : imagePath = "ms-appx:///Assets/ControlIcons/Status.png" ; break ;
41- case ToolkitSampleSubcategory . Triggers : imagePath = "ms-appx:///Assets/ControlIcons/Input.png" ; break ;
42- }
43- return imagePath ;
44- }
45-
46- public static string GetControlIcon ( string ? icon )
47- {
48- return "ms-appx:///SourceAssets/" + icon ! ;
49- // return "ms-appx:///Assets/ControlIcons/default.png";
50- return "ms-appx:///SourceAssets/Animations/samples/Assets/icon.png" ;
51- if ( string . IsNullOrEmpty ( icon ) )
52- {
53- return "ms-appx:///Assets/ControlIcons/default.png" ;
54- }
55- else
56- {
57- return icon ! ;
58- }
59- }
6025}
You can’t perform that action at this time.
0 commit comments