using System.Windows; using System.Windows.Controls; namespace AIStudio.Wpf.DiagramApp.Views { /// /// ToolBoxControl.xaml 的交互逻辑 /// public partial class ToolBoxControl : UserControl { #region IsExpanded /// /// BindingWidthAndHeight Dependency Property /// public static readonly DependencyProperty IsExpandedProperty = DependencyProperty.Register("IsExpanded", typeof(bool), typeof(ToolBoxControl), new FrameworkPropertyMetadata(true)); /// /// Gets or sets the BindingWidthAndHeight property. This dependency property /// indicates if the ResizableItemsControl is in Composing mode. /// public bool IsExpanded { get { return (bool)GetValue(IsExpandedProperty); } set { SetValue(IsExpandedProperty, value); } } #endregion public ToolBoxControl() { InitializeComponent(); } } }