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