SettingEntry.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace Settings.UI.Library 6 { 7 public enum EntryType 8 { 9 SettingsPage, 10 SettingsCard, 11 SettingsExpander, 12 } 13 14 public struct SettingEntry 15 { 16 public EntryType Type { get; set; } 17 18 public string Header { get; set; } 19 20 public string PageTypeName { get; set; } 21 22 public string ElementName { get; set; } 23 24 public string ElementUid { get; set; } 25 26 public string ParentElementName { get; set; } 27 28 public string Description { get; set; } 29 30 public string Icon { get; set; } 31 32 public SettingEntry(EntryType type, string header, string pageTypeName, string elementName, string elementUid, string parentElementName = null, string description = null, string icon = null) 33 { 34 Type = type; 35 Header = header; 36 PageTypeName = pageTypeName; 37 ElementName = elementName; 38 ElementUid = elementUid; 39 ParentElementName = parentElementName; 40 Description = description; 41 Icon = icon; 42 } 43 } 44 }