ToolStrip.xaml.cs 1001 B

123456789101112131415161718192021222324252627282930313233
  1. using System.ComponentModel;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. namespace CustomControls
  5. {
  6. [DesignTimeVisible(false)]
  7. public partial class ToolStrip : ToolBar
  8. {
  9. public bool GripVisible
  10. {
  11. get { return (bool)GetValue(GripVisibleProperty); }
  12. set { SetValue(GripVisibleProperty, value); }
  13. }
  14. public static readonly DependencyProperty GripVisibleProperty =
  15. DependencyProperty.Register("GripVisible", typeof(bool), typeof(ToolStrip), new PropertyMetadata(true));
  16. public bool Vertical
  17. {
  18. get { return (bool)GetValue(VerticalProperty); }
  19. set { SetValue(VerticalProperty, value); }
  20. }
  21. public static readonly DependencyProperty VerticalProperty =
  22. DependencyProperty.Register("Vertical", typeof(bool), typeof(ToolStrip), new PropertyMetadata(false));
  23. public ToolStrip()
  24. {
  25. InitializeComponent();
  26. }
  27. }
  28. }