Example #1
0
 //============================================================
 // <T>加载样式内容。</T>
 //============================================================
 public override void LoadStyleValue()
 {
     // 加载父样式内容
     base.LoadStyleValue();
     // 加载字体属性
     if (_propertyFont != null)
     {
         _font.LoadStyleProperty(_propertyFont);
     }
 }
Example #2
0
 //============================================================
 // <T>加载样式内容。</T>
 //============================================================
 public override void LoadStyleValue()
 {
     // 加载父样式内容
     base.LoadStyleValue();
     // 加载字体
     if (_propertyFont != null)
     {
         _font.LoadStyleProperty(_propertyFont);
     }
     // 加载热点内边框属性
     if (_propertyBorderHoverInner != null)
     {
         _borderHoverInner.LoadStyleProperty(_propertyBorderHoverInner);
     }
     // 加载热点外边框属性
     if (_propertyBorderHoverOuter != null)
     {
         _borderHoverOuter.LoadStyleProperty(_propertyBorderHoverOuter);
     }
     // 加载热点背景颜色属性
     if (_propertyBackHoverColor != null)
     {
         _backHoverColor = _propertyBackHoverColor.GetHex();
     }
     // 加载选中内边框属性
     if (_propertyBorderSelectInner != null)
     {
         _borderSelectInner.LoadStyleProperty(_propertyBorderSelectInner);
     }
     // 加载选中外边框属性
     if (_propertyBorderSelectOuter != null)
     {
         _borderSelectOuter.LoadStyleProperty(_propertyBorderSelectOuter);
     }
     // 加载选中背景颜色属性
     if (_propertyBackSelectColor != null)
     {
         _backSelectColor = _propertyBackSelectColor.GetHex();
     }
 }