Exemple #1
0
 /// <summary>
 /// Loads menu theme settings from xml.
 /// </summary>
 /// <param name="element">xml element to load from.</param>
 internal void LoadMenu(IXmlElement element, ThemeColors colors)
 {
     this.menuHasShadow          = UIUtils.FromString(element.GetAttributeValue("hasShadow", ""), this.menuHasShadow);
     this.colorMenuPopUpBack     = colors.GetColor(element.GetAttributeValue("popUpBackColor", ""), this.colorMenuPopUpBack);
     this.menuHasPopUpBackImage  = UIUtils.FromString(element.GetAttributeValue("hasPopUpBackImage", ""), this.menuHasPopUpBackImage);
     this.menuHasIconPlaceHolder = UIUtils.FromString(element.GetAttributeValue("hasIconPlaceholderImage", ""), this.menuHasIconPlaceHolder);
     this.menuSimple             = UIUtils.FromString(element.GetAttributeValue("hasSimpleMenu", ""), this.menuSimple);
 }
Exemple #2
0
 /// <summary>
 /// Loads menu theme settings from xml.
 /// </summary>
 /// <param name="element">xml element to load from.</param>
 internal void LoadMenu(IXmlElement element, ThemeColors colors)
 {
     this.menuHasShadow = UIUtils.FromString(element.GetAttributeValue("hasShadow", ""), this.menuHasShadow);
     this.colorMenuPopUpBack = colors.GetColor(element.GetAttributeValue("popUpBackColor", ""), this.colorMenuPopUpBack);
     this.menuHasPopUpBackImage = UIUtils.FromString(element.GetAttributeValue("hasPopUpBackImage", ""), this.menuHasPopUpBackImage);
     this.menuHasIconPlaceHolder = UIUtils.FromString(element.GetAttributeValue("hasIconPlaceholderImage", ""), this.menuHasIconPlaceHolder);
     this.menuSimple = UIUtils.FromString(element.GetAttributeValue("hasSimpleMenu", ""), this.menuSimple);
 }