ToolStripDropDownButton.xaml.cs 702 B

1234567891011121314151617181920212223
  1. using System.ComponentModel;
  2. using System.Windows;
  3. namespace CustomControls
  4. {
  5. [DesignTimeVisible(false)]
  6. public partial class ToolStripDropDownButton : DropDownButtonBase
  7. {
  8. public bool ShowDropDownArrow
  9. {
  10. get { return (bool)GetValue(ShowDropDownArrowProperty); }
  11. set { SetValue(ShowDropDownArrowProperty, value); }
  12. }
  13. public static readonly DependencyProperty ShowDropDownArrowProperty =
  14. DependencyProperty.Register("ShowDropDownArrow", typeof(bool), typeof(ToolStripDropDownButton), new PropertyMetadata(true));
  15. public ToolStripDropDownButton()
  16. {
  17. InitializeComponent();
  18. }
  19. }
  20. }