using System.ComponentModel; using System.Windows; namespace CustomControls { [DesignTimeVisible(false)] public partial class ToolStripDropDownButton : DropDownButtonBase { public bool ShowDropDownArrow { get { return (bool)GetValue(ShowDropDownArrowProperty); } set { SetValue(ShowDropDownArrowProperty, value); } } public static readonly DependencyProperty ShowDropDownArrowProperty = DependencyProperty.Register("ShowDropDownArrow", typeof(bool), typeof(ToolStripDropDownButton), new PropertyMetadata(true)); public ToolStripDropDownButton() { InitializeComponent(); } } }