示例#1
0
        public SettingsViewInfo(SettingsViewName name, UIElement uiElement, SettingsViewGroup group)
        {
            Name = name;
            var canvas = new Canvas();

            canvas.Children.Add(uiElement);
            Icon  = canvas;
            Group = group;
        }
示例#2
0
 public SettingsViewInfo(SettingsViewName name, Canvas icon, SettingsViewGroup group)
 {
     Name  = name;
     Icon  = icon;
     Group = group;
 }
 /// <summary>
 /// Method to translate <see cref="SettingsViewGroup"/>.
 /// </summary>
 /// <param name="name"><see cref="SettingsViewGroup"/>.</param>
 /// <returns>Translated <see cref="SettingsViewGroup"/>.</returns>
 public string Translate(SettingsViewGroup group)
 {
     return(Translate(group.ToString()));
 }