/// <summary> /// The draw. /// </summary> /// <param name="context"> /// The context. /// </param> /// <param name="skin"> /// The skin. /// </param> /// <param name="layout"> /// The layout. /// </param> public void Draw(IRenderContext context, ISkin skin, Rectangle layout) { skin.DrawTreeView(context, layout, this); foreach (var kv in this.GetChildrenWithLayouts(skin, layout)) { var old = kv.Item.Text; kv.Item.Text = kv.Name; kv.Item.Draw(context, skin, kv.Layout.Value); kv.Item.Text = old; } }
/// <summary> /// The draw. /// </summary> /// <param name="context"> /// The context. /// </param> /// <param name="skin"> /// The skin. /// </param> /// <param name="layout"> /// The layout. /// </param> public void Draw(IRenderContext context, ISkin skin, Rectangle layout) { skin.DrawTreeView(context, layout, this); foreach (var kv in this.GetChildrenWithLayouts(skin, layout)) { var old = kv.Item.Text; kv.Item.Text = kv.Name; kv.Item.Draw(context, skin, kv.Layout.Value); kv.Item.Text = old; } }