void InternalUpdate() { //var g = this.InternalSprite.graphics; //g.clear(); var stroke = this.Stroke as SolidColorBrush; var fill = InternalFill as SolidColorBrush; if (stroke != null) { __Color color = stroke.Color; InternalSprite.style.borderColor = color; } if (fill != null) { __Color color_ = fill.Color; uint color = color_; if (color != 0x00ffffffu) { InternalSprite.style.backgroundColor = color_; } else { InternalSprite.style.backgroundColor = "transparent"; } } InternalSprite.style.width = _Width + "px"; InternalSprite.style.height = _Height + "px"; //g.drawRect(0, 0, _Width, _Height); }
void InternalUpdate() { var g = this.InternalSprite.graphics; if (_Width < 1) { if (_Height < 1) { return; } } g.clear(); var stroke = this.Stroke as SolidColorBrush; var fill = this.InternalFill as SolidColorBrush; var draw = false; if (stroke != null) { __Color color = stroke.Color; g.lineStyle(1, color, 1); draw = true; } if (fill != null) { uint color = (__Color)fill.Color; if (color != 0x00ffffffu) { color &= 0xffffff; g.beginFill(color); draw = true; } } if (draw) { try { g.drawRect(0, 0, _Width, _Height); g.endFill(); } catch (Exception ex) { throw new Exception( new { _Width, _Height }.ToString() ); } } }
void InternalUpdate() { var g = this.InternalSprite.graphics; g.clear(); var stroke = this.Stroke as SolidColorBrush; if (stroke != null) { __Color color = stroke.Color; g.lineStyle(1, color, 1); g.moveTo(X1, Y1); g.lineTo(X2, Y2); } }
private void InternalUpdateForeground() { var AsSolidColorBrush = this.InternalForeground as SolidColorBrush; if (AsSolidColorBrush != null) { var _SolidColorBrush = (__SolidColorBrush)AsSolidColorBrush; __Color _Color = _SolidColorBrush.Color; if (this.InternalTextField != null) { this.InternalTextField.style.color = _Color; } if (this.InternalTextField_MultiLine != null) { this.InternalTextField_MultiLine.style.color = _Color; } } }
public __OrderedEnumerable(object comparer, bool descending, __Color Color) { }