using System.ComponentModel; using System.Windows; using System.Windows.Controls; namespace CustomControls { [DesignTimeVisible(false)] public partial class ToolStrip : ToolBar { public bool GripVisible { get { return (bool)GetValue(GripVisibleProperty); } set { SetValue(GripVisibleProperty, value); } } public static readonly DependencyProperty GripVisibleProperty = DependencyProperty.Register("GripVisible", typeof(bool), typeof(ToolStrip), new PropertyMetadata(true)); public bool Vertical { get { return (bool)GetValue(VerticalProperty); } set { SetValue(VerticalProperty, value); } } public static readonly DependencyProperty VerticalProperty = DependencyProperty.Register("Vertical", typeof(bool), typeof(ToolStrip), new PropertyMetadata(false)); public ToolStrip() { InitializeComponent(); } } }