using System; using Gwen.Control; namespace Gwen.ControlInternal { /// /// Splitter bar. /// public class SplitterBar : Dragger { /// /// Initializes a new instance of the class. /// /// Parent control. public SplitterBar(Base parent) : base(parent) { Target = this; RestrictToParent = true; } /// /// Renders the control using specified skin. /// /// Skin to use. protected override void Render(Skin.Base skin) { if (ShouldDrawBackground) skin.DrawButton(this, true, false, IsDisabled); } /// /// Lays out the control's interior according to alignment, padding, dock etc. /// /// Skin to use. protected override void Layout(Skin.Base skin) { MoveTo(X, Y); } } }