bool clipToClientRect = true;
protected object dataSource;
string style;
+ object tag;
#endregion
#region public fields
public Rectangle LastPaintedSlot;
/// <summary>Prevent requeuing multiple times the same widget</summary>
public bool IsQueueForRedraw = false;
- /// <summary>Random value placeholder</summary>
- public object Tag;
/// <summary>drawing Cache, if null, a redraw is done, cached or not</summary>
public byte[] bmp;
public bool IsDirty = true;
#endregion
#region public properties
- [XmlAttributeAttribute()][DefaultValue(true)]
+ /// <summary>Random value placeholder</summary>
+ [XmlAttributeAttribute]
+ public object Tag {
+ get { return tag; }
+ set {
+ if (tag == value)
+ return;
+ tag = value;
+ NotifyValueChanged ("Tag", tag);
+ }
+ }
+ /// <summary>
+ /// If enabled, resulting bitmap of graphic object is cached in an byte array
+ /// speeding up rendering of complex object. Default is enabled.
+ /// </summary>
+ [XmlAttributeAttribute][DefaultValue(true)]
public virtual bool CacheEnabled {
get { return cacheEnabled; }
set {
NotifyValueChanged ("CacheEnabled", cacheEnabled);
}
}
- [XmlAttributeAttribute()][DefaultValue(true)]
+ /// <summary>
+ /// If true, rendering of GraphicObject is clipped inside client rectangle
+ /// </summary>
+ [XmlAttributeAttribute][DefaultValue(true)]
public virtual bool ClipToClientRect {
get { return clipToClientRect; }
set {
this.RegisterForRedraw ();
}
}
- [XmlAttributeAttribute()][DefaultValue(null)]
+ /// <summary>
+ /// Name is used in binding to reference other GraphicObjects inside the graphic tree
+ /// </summary>
+ [XmlAttributeAttribute][DefaultValue(null)]
public virtual string Name {
get {
#if DEBUG