public SettingsViewInfo(SettingsViewManager.Name name, Canvas icon, SettingsViewManager.Group group) { Name = name; TranslatedName = SettingsViewManager.TranslateName(name, group); Icon = icon; Group = group; TranslatedGroup = SettingsViewManager.TranslateGroup(group); }
public SettingsViewInfo(SettingsViewManager.Name name, PackIconOcticons packIconOcticons, SettingsViewManager.Group group) { Name = name; TranslatedName = SettingsViewManager.TranslateName(name, group); Canvas canvas = new Canvas(); canvas.Children.Add(packIconOcticons); Icon = canvas; Group = group; TranslatedGroup = SettingsViewManager.TranslateGroup(group); }