diff --git a/source/Components/AvalonDock/Controls/AnchorablePaneTitle.cs b/source/Components/AvalonDock/Controls/AnchorablePaneTitle.cs index fb294124..1b4c542a 100644 --- a/source/Components/AvalonDock/Controls/AnchorablePaneTitle.cs +++ b/source/Components/AvalonDock/Controls/AnchorablePaneTitle.cs @@ -8,6 +8,7 @@ This program is provided to you under the terms of the Microsoft Public ************************************************************************/ using AvalonDock.Layout; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -48,7 +49,8 @@ static AnchorablePaneTitle() public static readonly DependencyProperty ModelProperty = DependencyProperty.Register(nameof(Model), typeof(LayoutAnchorable), typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(null, _OnModelChanged)); - /// Gets or sets the property. This dependency property indicates model attached to this view. + /// Gets/sets the model attached of this view. + [Bindable(true), Description("Gets/sets the LayoutAnchorable model attached of this view."), Category("Anchorable")] public LayoutAnchorable Model { get => (LayoutAnchorable)GetValue(ModelProperty); @@ -76,7 +78,8 @@ protected virtual void OnModelChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty LayoutItemProperty = LayoutItemPropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates the LayoutItem attached to this tag item. + /// Gets the ( or ) attached to this view. + [Bindable(true), Description("Gets the LayoutItem (LayoutAnchorableItem or LayoutDocumentItem) attached to this object."), Category("Layout")] public LayoutItem LayoutItem => (LayoutItem)GetValue(LayoutItemProperty); /// diff --git a/source/Components/AvalonDock/Controls/DropArea.cs b/source/Components/AvalonDock/Controls/DropArea.cs index 33748ccd..12e8ab80 100644 --- a/source/Components/AvalonDock/Controls/DropArea.cs +++ b/source/Components/AvalonDock/Controls/DropArea.cs @@ -7,6 +7,7 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; namespace AvalonDock.Controls @@ -73,10 +74,8 @@ internal DropArea(T areaElement, DropAreaType type) #region Properties - /// - /// Gets the that implements a drop target - /// for a drag & drop (dock) operation. - /// + /// Gets the that implements a drop target for a drag & drop (dock) operation. + [Bindable(false), Description("Gets the FrameworkElement that implements a drop target for a drag & drop (dock) operation."), Category("Other")] public T AreaElement { get; } #endregion Properties diff --git a/source/Components/AvalonDock/Controls/DropDownButton.cs b/source/Components/AvalonDock/Controls/DropDownButton.cs index d636fbd9..d0666db5 100644 --- a/source/Components/AvalonDock/Controls/DropDownButton.cs +++ b/source/Components/AvalonDock/Controls/DropDownButton.cs @@ -7,6 +7,7 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -40,10 +41,8 @@ public DropDownButton() public static readonly DependencyProperty DropDownContextMenuProperty = DependencyProperty.Register(nameof(DropDownContextMenu), typeof(ContextMenu), typeof(DropDownButton), new FrameworkPropertyMetadata(null, OnDropDownContextMenuChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates drop down menu to show up when user click on an anchorable menu pin. - /// + /// Gets/sets the drop down menu to show up when user click on an anchorable menu pin. + [Bindable(true), Description("Gets/sets the drop down menu to show up when user click on an anchorable menu pin."), Category("Menu")] public ContextMenu DropDownContextMenu { get => (ContextMenu)GetValue(DropDownContextMenuProperty); @@ -68,10 +67,8 @@ protected virtual void OnDropDownContextMenuChanged(DependencyPropertyChangedEve public static readonly DependencyProperty DropDownContextMenuDataContextProperty = DependencyProperty.Register(nameof(DropDownContextMenuDataContext), typeof(object), typeof(DropDownButton), new FrameworkPropertyMetadata(null)); - /// - /// Gets or sets the property. This dependency property - /// indicates data context to set for drop down context menu. - /// + /// Gets/sets the DataContext to set for the DropDownContext menu property. + [Bindable(true), Description("Gets/sets the DataContext to set for the DropDownContext menu property."), Category("Menu")] public object DropDownContextMenuDataContext { get => GetValue(DropDownContextMenuDataContextProperty); diff --git a/source/Components/AvalonDock/Controls/DropDownControlArea.cs b/source/Components/AvalonDock/Controls/DropDownControlArea.cs index 52c56d4f..b4ca512a 100644 --- a/source/Components/AvalonDock/Controls/DropDownControlArea.cs +++ b/source/Components/AvalonDock/Controls/DropDownControlArea.cs @@ -7,6 +7,7 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -32,10 +33,8 @@ public class DropDownControlArea : ContentControl public static readonly DependencyProperty DropDownContextMenuProperty = DependencyProperty.Register(nameof(DropDownContextMenu), typeof(ContextMenu), typeof(DropDownControlArea), new FrameworkPropertyMetadata(null)); - /// - /// Gets or sets the property. This dependency property - /// indicates context menu to show when a right click is detected over the area occupied by the control. - /// + /// Gets/sets the drop down menu to show up when user click on an anchorable menu pin. + [Bindable(true), Description("Gets/sets the drop down menu to show up when user click on an anchorable menu pin."), Category("Menu")] public ContextMenu DropDownContextMenu { get => (ContextMenu)GetValue(DropDownContextMenuProperty); @@ -50,10 +49,8 @@ public ContextMenu DropDownContextMenu public static readonly DependencyProperty DropDownContextMenuDataContextProperty = DependencyProperty.Register(nameof(DropDownContextMenuDataContext), typeof(object), typeof(DropDownControlArea), new FrameworkPropertyMetadata(null)); - /// - /// Gets or sets the property. This dependency property - /// indicates data context to attach when context menu is shown. - /// + /// Gets/sets the DataContext to set for the DropDownContext menu property. + [Bindable(true), Description("Gets/sets the DataContext to set for the DropDownContext menu property."), Category("Menu")] public object DropDownContextMenuDataContext { get => (object)GetValue(DropDownContextMenuDataContextProperty); diff --git a/source/Components/AvalonDock/Controls/DropTargetBase.cs b/source/Components/AvalonDock/Controls/DropTargetBase.cs index b38ed2de..078007a3 100644 --- a/source/Components/AvalonDock/Controls/DropTargetBase.cs +++ b/source/Components/AvalonDock/Controls/DropTargetBase.cs @@ -7,29 +7,24 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; namespace AvalonDock.Controls { - /// - /// Implements a base implementation for the abstract class. - /// + /// Implements a base implementation for the abstract class. internal abstract class DropTargetBase : DependencyObject { #region Properties #region IsDraggingOver - /// - /// IsDraggingOver Attached Dependency Property - /// + /// IsDraggingOver Attached Dependency Property public static readonly DependencyProperty IsDraggingOverProperty = DependencyProperty.RegisterAttached("IsDraggingOver", typeof(bool), typeof(DropTargetBase), new FrameworkPropertyMetadata((bool)false)); - /// - /// Gets the IsDraggingOver property. - /// This dependency property indicates if user is dragging a window over the target element. - /// + /// Gets wether the user is dragging a window over the target element. + [Bindable(true), Description("Gets wether the user is dragging a window over the target element."), Category("Other")] public static bool GetIsDraggingOver(DependencyObject d) { return (bool)d.GetValue(IsDraggingOverProperty); diff --git a/source/Components/AvalonDock/Controls/DropTargetType.cs b/source/Components/AvalonDock/Controls/DropTargetType.cs index 08a48056..9deddf3f 100644 --- a/source/Components/AvalonDock/Controls/DropTargetType.cs +++ b/source/Components/AvalonDock/Controls/DropTargetType.cs @@ -17,90 +17,60 @@ public enum DropTargetType { #region DockingManager - /// - /// The specific drop area is the left of the control. - /// + /// The specific drop area is the left of the control. DockingManagerDockLeft, - /// - /// The specific drop area is the top of the control. - /// + /// The specific drop area is the top of the control. DockingManagerDockTop, - /// - /// The specific drop area is the right of the control. - /// + /// The specific drop area is the right of the control. DockingManagerDockRight, - /// - /// The specific drop area is the bottom of the control. - /// + /// The specific drop area is the bottom of the control. DockingManagerDockBottom, #endregion DockingManager #region DocumentPane - /// - /// The specific drop area is the left of a control. - /// + /// The specific drop area is the left of a control. DocumentPaneDockLeft, - /// - /// The specific drop area is the top of a control. - /// + /// The specific drop area is the top of a control. DocumentPaneDockTop, - /// - /// The specific drop area is the right of a control. - /// + /// The specific drop area is the right of a control. DocumentPaneDockRight, - /// - /// The specific drop area is the bottom of a control. - /// + /// The specific drop area is the bottom of a control. DocumentPaneDockBottom, - /// - /// The specific drop area is a control (the dropped control - /// and the drop target will be part of a tabbed display). - /// + /// The specific drop area is a control (the dropped control + /// and the drop target will be part of a tabbed display). DocumentPaneDockInside, #endregion DocumentPane - /// - /// The specific drop area is a control (the dropped control - /// and the drop target will be part of a tabbed display). - /// + /// The specific drop area is a control (the dropped control + /// and the drop target will be part of a tabbed display). DocumentPaneGroupDockInside, #region AnchorablePane - /// - /// The specific drop area is the left of a control. - /// + /// The specific drop area is the left of a control. AnchorablePaneDockLeft, - /// - /// The specific drop area is the top of a control. - /// + /// The specific drop area is the top of a control. AnchorablePaneDockTop, - /// - /// The specific drop area is the right of a control. - /// + /// The specific drop area is the right of a control. AnchorablePaneDockRight, - /// - /// The specific drop area is the bottom of a control. - /// + /// The specific drop area is the bottom of a control. AnchorablePaneDockBottom, - /// - /// The specific drop area is a control (the dropped control - /// and the drop target will be part of a tabbed display). - /// + /// The specific drop area is a control (the dropped control + /// and the drop target will be part of a tabbed display). AnchorablePaneDockInside, #endregion AnchorablePane diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorControl.cs index 06f0cc64..9eb14aca 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorControl.cs @@ -9,6 +9,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Threading; @@ -67,10 +68,8 @@ public ILayoutElement Model public static readonly DependencyProperty SideProperty = SidePropertyKey.DependencyProperty; - /// - /// Gets the Side property. This dependency property - /// indicates the anchor side of the control. - /// + /// Gets the anchor side of the control. + [Bindable(true), Description("Gets the anchor side of the control."), Category("Anchor")] public AnchorSide Side { get diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorSideControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorSideControl.cs index c378c955..c955ba79 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorSideControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorSideControl.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; using System.Collections.ObjectModel; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -68,7 +69,8 @@ internal LayoutAnchorSideControl(LayoutAnchorSide model) public static readonly DependencyProperty IsLeftSideProperty = IsLeftSidePropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates this control is anchored to left side. + /// Gets wether the control is anchored to left side. + [Bindable(true), Description("Gets wether the control is anchored to left side."), Category("Anchor")] public bool IsLeftSide => (bool)GetValue(IsLeftSideProperty); /// Provides a secure method for setting the property. This dependency property indicates this control is anchored to left side. @@ -85,7 +87,8 @@ internal LayoutAnchorSideControl(LayoutAnchorSide model) public static readonly DependencyProperty IsTopSideProperty = IsTopSidePropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates this control is anchored to top side. + /// Gets wether the control is anchored to top side. + [Bindable(true), Description("Gets wether the control is anchored to top side."), Category("Anchor")] public bool IsTopSide => (bool)GetValue(IsTopSideProperty); /// Provides a secure method for setting the property. This dependency property indicates this control is anchored to top side. @@ -102,7 +105,8 @@ internal LayoutAnchorSideControl(LayoutAnchorSide model) public static readonly DependencyProperty IsRightSideProperty = IsRightSidePropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates this control is anchored to right side. + /// Gets wether the control is anchored to right side. + [Bindable(true), Description("Gets wether the control is anchored to right side."), Category("Anchor")] public bool IsRightSide => (bool)GetValue(IsRightSideProperty); /// Provides a secure method for setting the property. This dependency property indicates this control is anchored to right side. @@ -119,7 +123,8 @@ internal LayoutAnchorSideControl(LayoutAnchorSide model) public static readonly DependencyProperty IsBottomSideProperty = IsBottomSidePropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates if this panel is anchored to bottom side. + /// Gets whether the control is anchored to bottom side. + [Bindable(true), Description("Gets whether the control is anchored to bottom side."), Category("Anchor")] public bool IsBottomSide => (bool)GetValue(IsBottomSideProperty); /// Provides a secure method for setting the property. This dependency property indicates if this panel is anchored to bottom side. diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorableControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorableControl.cs index 9971c6c6..aff092e0 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorableControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorableControl.cs @@ -8,6 +8,7 @@ This program is provided to you under the terms of the Microsoft Public ************************************************************************/ using AvalonDock.Layout; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; @@ -48,7 +49,8 @@ public LayoutAnchorableControl() public static readonly DependencyProperty ModelProperty = DependencyProperty.Register(nameof(Model), typeof(LayoutAnchorable), typeof(LayoutAnchorableControl), new FrameworkPropertyMetadata(null, OnModelChanged)); - /// Gets or sets the property. This dependency property indicates the model attached to this view. + /// Gets/sets the model attached to this view. + [Bindable(true), Description("Gets/sets the model attached to this view."), Category("Other")] public LayoutAnchorable Model { get => (LayoutAnchorable)GetValue(ModelProperty); @@ -91,7 +93,8 @@ private void Model_PropertyChanged(object sender, System.ComponentModel.Property public static readonly DependencyProperty LayoutItemProperty = LayoutItemPropertyKey.DependencyProperty; - /// Gets the property. This dependency property indicates the LayoutItem attached to this tag item. + /// Gets the the LayoutItem attached to this tag item. + [Bindable(true), Description("Gets the the LayoutItem attached to this tag item."), Category("Other")] public LayoutItem LayoutItem => (LayoutItem)GetValue(LayoutItemProperty); /// diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs index 72068589..a32aa039 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorableFloatingWindowControl.cs @@ -13,6 +13,7 @@ This program is provided to you under the terms of the Microsoft Public using Microsoft.Windows.Shell; using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls.Primitives; @@ -91,10 +92,8 @@ internal LayoutAnchorableFloatingWindowControl(LayoutAnchorableFloatingWindow mo public static readonly DependencyProperty SingleContentLayoutItemProperty = DependencyProperty.Register(nameof(SingleContentLayoutItem), typeof(LayoutItem), typeof(LayoutAnchorableFloatingWindowControl), new FrameworkPropertyMetadata(null, OnSingleContentLayoutItemChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the layout item of the selected content when is shown a single anchorable pane. - /// + /// Gets/sets the layout item of the selected content when shown in a single anchorable pane. + [Bindable(true), Description("Gets/sets the layout item of the selected content when shown in a single anchorable pane."), Category("Anchorable")] public LayoutItem SingleContentLayoutItem { get => (LayoutItem)GetValue(SingleContentLayoutItemProperty); diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorableItem.cs b/source/Components/AvalonDock/Controls/LayoutAnchorableItem.cs index e73de711..f53cebf3 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorableItem.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorableItem.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Commands; using AvalonDock.Layout; using System; +using System.ComponentModel; using System.Windows; using System.Windows.Data; using System.Windows.Input; @@ -55,10 +56,8 @@ internal LayoutAnchorableItem() public static readonly DependencyProperty HideCommandProperty = DependencyProperty.Register(nameof(HideCommand), typeof(ICommand), typeof(LayoutAnchorableItem), new FrameworkPropertyMetadata(null, OnHideCommandChanged, CoerceHideCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when an anchorable is hidden. - /// + /// Gets/sets the the command to execute when an anchorable is hidden. + [Bindable(true), Description("Gets/sets the the command to execute when an anchorable is hidden."), Category("Other")] public ICommand HideCommand { get => (ICommand)GetValue(HideCommandProperty); @@ -88,11 +87,9 @@ protected virtual void OnHideCommandChanged(DependencyPropertyChangedEventArgs e public static readonly DependencyProperty AutoHideCommandProperty = DependencyProperty.Register(nameof(AutoHideCommand), typeof(ICommand), typeof(LayoutAnchorableItem), new FrameworkPropertyMetadata(null, OnAutoHideCommandChanged, CoerceAutoHideCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when user click the auto hide button. - /// + /// Gets/sets the command to execute when user click the auto hide button. /// By default this command toggles auto hide state for an anchorable. + [Bindable(true), Description("Gets/sets the command to execute when user click the auto hide button."), Category("Other")] public ICommand AutoHideCommand { get => (ICommand)GetValue(AutoHideCommandProperty); @@ -127,11 +124,9 @@ private bool CanExecuteAutoHideCommand(object parameter) public static readonly DependencyProperty DockCommandProperty = DependencyProperty.Register(nameof(DockCommand), typeof(ICommand), typeof(LayoutAnchorableItem), new FrameworkPropertyMetadata(null, OnDockCommandChanged, CoerceDockCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when user click the Dock button. - /// + /// Gets/sets the command to execute when user click the Dock button. /// By default this command moves the anchorable inside the container pane which previously hosted the object. + [Bindable(true), Description("Gets/sets the command to execute when user click the Dock button."), Category("Other")] public ICommand DockCommand { get => (ICommand)GetValue(DockCommandProperty); @@ -161,10 +156,8 @@ protected virtual void OnDockCommandChanged(DependencyPropertyChangedEventArgs e public static readonly DependencyProperty CanHideProperty = DependencyProperty.Register(nameof(CanHide), typeof(bool), typeof(LayoutAnchorableItem), new FrameworkPropertyMetadata((bool)true, OnCanHideChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if user can hide the anchorable item. - /// + /// Gets/sets wether the user can hide the anchorable item. + [Bindable(true), Description("Gets/sets wether the user can hide the anchorable item."), Category("Anchorable")] public bool CanHide { get => (bool)GetValue(CanHideProperty); @@ -188,10 +181,8 @@ protected virtual void OnCanHideChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty CanMoveProperty = DependencyProperty.Register(nameof(CanMove), typeof(bool), typeof(LayoutAnchorableItem), new FrameworkPropertyMetadata((bool)true, OnCanMoveChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if user can hide the anchorable item. - /// + /// Gets/sets wether the user can hide the anchorable item. + [Bindable(true), Description("Gets/sets wether the user can hide the anchorable item."), Category("Anchorable")] public bool CanMove { get => (bool)GetValue(CanMoveProperty); diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorablePaneControl.cs b/source/Components/AvalonDock/Controls/LayoutAnchorablePaneControl.cs index 86998577..4f4efa62 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorablePaneControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorablePaneControl.cs @@ -9,6 +9,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Data; @@ -58,6 +59,7 @@ internal LayoutAnchorablePaneControl(LayoutAnchorablePane model, bool IsVirtuali #region Properties /// Gets the layout model of this control. + [Bindable(false), Description("Gets the layout model of this control."), Category("Other")] public ILayoutElement Model => _model; #endregion Properties diff --git a/source/Components/AvalonDock/Controls/LayoutAnchorableTabItem.cs b/source/Components/AvalonDock/Controls/LayoutAnchorableTabItem.cs index 9f26fdc1..0018d33c 100644 --- a/source/Components/AvalonDock/Controls/LayoutAnchorableTabItem.cs +++ b/source/Components/AvalonDock/Controls/LayoutAnchorableTabItem.cs @@ -8,6 +8,7 @@ This program is provided to you under the terms of the Microsoft Public ************************************************************************/ using AvalonDock.Layout; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -49,10 +50,8 @@ static LayoutAnchorableTabItem() public static readonly DependencyProperty ModelProperty = DependencyProperty.Register(nameof(Model), typeof(LayoutContent), typeof(LayoutAnchorableTabItem), new FrameworkPropertyMetadata(null, OnModelChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates model attached to the anchorable tab item. - /// + /// Gets/sets the model attached to the anchorable tab item. + [Bindable(true), Description("Gets/sets the model attached to the anchorable tab item."), Category("Other")] public LayoutContent Model { get => (LayoutContent)GetValue(ModelProperty); @@ -79,10 +78,8 @@ protected virtual void OnModelChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty LayoutItemProperty = LayoutItemPropertyKey.DependencyProperty; - /// - /// Gets the property. This dependency property - /// indicates the LayoutItem attached to this tag item. - /// + /// Gets the the LayoutItem attached to this tag item. + [Bindable(true), Description("Gets the the LayoutItem attached to this tag item."), Category("Other")] public LayoutItem LayoutItem => (LayoutItem)GetValue(LayoutItemProperty); /// diff --git a/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs index cdbe0890..13eeac3b 100644 --- a/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs @@ -9,6 +9,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; +using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; using System.Windows; @@ -70,10 +71,8 @@ internal LayoutAutoHideWindowControl() public static readonly DependencyProperty AnchorableStyleProperty = DependencyProperty.Register(nameof(AnchorableStyle), typeof(Style), typeof(LayoutAutoHideWindowControl), new FrameworkPropertyMetadata(null)); - /// - /// Gets or sets the property. This dependency property - /// indicates the style to apply to the LayoutAnchorableControl hosted in this auto hide window. - /// + /// Gets/sets the style to apply to the hosted in this auto hide window. + [Bindable(true), Description("Gets/sets the style to apply to the LayoutAnchorableControl hosted in this auto hide window."), Category("Style")] public Style AnchorableStyle { get => (Style)GetValue(AnchorableStyleProperty); @@ -88,10 +87,8 @@ public Style AnchorableStyle public static readonly DependencyProperty BackgroundProperty = DependencyProperty.Register(nameof(Background), typeof(Brush), typeof(LayoutAutoHideWindowControl), new FrameworkPropertyMetadata(null)); - /// - /// Gets or sets the property. This dependency property - /// indicates background of the autohide childwindow. - /// + /// Gets/sets the background brush of the autohide childwindow. + [Bindable(true), Description("Gets/sets the background brush of the autohide childwindow."), Category("Other")] public Brush Background { get => (Brush)GetValue(BackgroundProperty); diff --git a/source/Components/AvalonDock/Controls/LayoutDocumentItem.cs b/source/Components/AvalonDock/Controls/LayoutDocumentItem.cs index b887432b..915e6863 100644 --- a/source/Components/AvalonDock/Controls/LayoutDocumentItem.cs +++ b/source/Components/AvalonDock/Controls/LayoutDocumentItem.cs @@ -8,6 +8,7 @@ This program is provided to you under the terms of the Microsoft Public ************************************************************************/ using AvalonDock.Layout; +using System.ComponentModel; using System.Windows; namespace AvalonDock.Controls @@ -46,10 +47,8 @@ internal LayoutDocumentItem() public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register(nameof(Description), typeof(string), typeof(LayoutDocumentItem), new FrameworkPropertyMetadata(null, OnDescriptionChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the description to display (in the ) for the document item. - /// + /// Gets/sets the description to display (in the ) for the document item. + [Bindable(true), Description("Gets/sets the description to display (in the NavigatorWindow) for the document item."), Category("Other")] public string Description { get => (string)GetValue(DescriptionProperty); diff --git a/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs b/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs index 175debf6..41f136e6 100644 --- a/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutDocumentPaneControl.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; using System.Collections.Specialized; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Data; @@ -60,6 +61,7 @@ internal LayoutDocumentPaneControl(LayoutDocumentPane model, bool isVirtualizing #region Properties /// Gets the layout model of this control. + [Bindable(false), Description("Gets the layout model of this control."), Category("Other")] public ILayoutElement Model => _model; #endregion Properties diff --git a/source/Components/AvalonDock/Controls/LayoutDocumentTabItem.cs b/source/Components/AvalonDock/Controls/LayoutDocumentTabItem.cs index f85b1c9e..972e8882 100644 --- a/source/Components/AvalonDock/Controls/LayoutDocumentTabItem.cs +++ b/source/Components/AvalonDock/Controls/LayoutDocumentTabItem.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -56,10 +57,8 @@ static LayoutDocumentTabItem() public static readonly DependencyProperty ModelProperty = DependencyProperty.Register(nameof(Model), typeof(LayoutContent), typeof(LayoutDocumentTabItem), new FrameworkPropertyMetadata(null, OnModelChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the layout content model attached to the tab item. - /// + /// Gets/sets the layout content model attached to the tab item. + [Bindable(true), Description("Gets wether this floating window is being dragged."), Category("Other")] public LayoutContent Model { get => (LayoutContent)GetValue(ModelProperty); @@ -89,12 +88,16 @@ protected virtual void OnModelChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty LayoutItemProperty = LayoutItemPropertyKey.DependencyProperty; - /// - /// Gets the property. This dependency property - /// indicates the LayoutItem attached to this tag item. - /// + /// Gets the LayoutItem attached to this tag item. + [Bindable(true), Description("Gets the LayoutItem attached to this tag item."), Category("Other")] public LayoutItem LayoutItem => (LayoutItem)GetValue(LayoutItemProperty); + #endregion LayoutItem + + #endregion Properties + + #region Overrides + /// /// Provides a secure method for setting the property. /// This dependency property indicates the LayoutItem attached to this tag item. @@ -102,12 +105,6 @@ protected virtual void OnModelChanged(DependencyPropertyChangedEventArgs e) /// The new value for the property. protected void SetLayoutItem(LayoutItem value) => SetValue(LayoutItemPropertyKey, value); - #endregion LayoutItem - - #endregion Properties - - #region Overrides - /// protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { diff --git a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs index c7ff460e..a1dffba6 100644 --- a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs @@ -102,10 +102,8 @@ protected LayoutFloatingWindowControl(ILayoutElement model, bool isContentImmuta public static readonly DependencyProperty IsContentImmutableProperty = DependencyProperty.Register(nameof(IsContentImmutable), typeof(bool), typeof(LayoutFloatingWindowControl), new FrameworkPropertyMetadata(false)); - /// - /// Gets/sets the property. This dependency property - /// indicates if the content can be modified. - /// + /// Gets/sets wether the content can be modified. + [Bindable(true), Description("Gets/sets wether the content can be modified."), Category("Other")] public bool IsContentImmutable { get => (bool)GetValue(IsContentImmutableProperty); @@ -122,10 +120,8 @@ public bool IsContentImmutable public static readonly DependencyProperty IsDraggingProperty = IsDraggingPropertyKey.DependencyProperty; - /// - /// Gets the property. This dependency property - /// indicates that this floating window is being dragged. - /// + /// Gets wether this floating window is being dragged. + [Bindable(true), Description("Gets wether this floating window is being dragged."), Category("FloatingWindow")] public bool IsDragging => (bool)GetValue(IsDraggingProperty); /// diff --git a/source/Components/AvalonDock/Controls/LayoutGridResizerControl.cs b/source/Components/AvalonDock/Controls/LayoutGridResizerControl.cs index 3de04721..64c06232 100644 --- a/source/Components/AvalonDock/Controls/LayoutGridResizerControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutGridResizerControl.cs @@ -7,6 +7,7 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Media; @@ -14,10 +15,8 @@ This program is provided to you under the terms of the Microsoft Public namespace AvalonDock.Controls { /// - /// - /// Implements a control like that can be used to resize areas - /// horizontally or vertically (only one of these but never both) in a grid layout. - /// + /// Implements a control like that can be used to resize areas + /// horizontally or vertically (only one of these but never both) in a grid layout. /// public class LayoutGridResizerControl : Thumb { @@ -44,10 +43,8 @@ static LayoutGridResizerControl() public static readonly DependencyProperty BackgroundWhileDraggingProperty = DependencyProperty.Register(nameof(BackgroundWhileDragging), typeof(Brush), typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(Brushes.Black)); - /// - /// Gets or sets the property. - /// This dependency property indicates the background while the control is being dragged. - /// + /// Gets/sets the background brush of the control being dragged. + [Bindable(true), Description("Gets/sets the background brush of the control being dragged."), Category("Other")] public Brush BackgroundWhileDragging { get => (Brush)GetValue(BackgroundWhileDraggingProperty); @@ -62,10 +59,8 @@ public Brush BackgroundWhileDragging public static readonly DependencyProperty OpacityWhileDraggingProperty = DependencyProperty.Register(nameof(OpacityWhileDragging), typeof(double), typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(0.5)); - /// - /// Gets or sets the property. - /// This dependency property indicates opacity while the control is being dragged. - /// + /// Gets/sets the opacity while the control is being dragged. + [Bindable(true), Description("Gets/sets the opacity while the control is being dragged."), Category("Other")] public double OpacityWhileDragging { get => (double)GetValue(OpacityWhileDraggingProperty); diff --git a/source/Components/AvalonDock/Controls/LayoutItem.cs b/source/Components/AvalonDock/Controls/LayoutItem.cs index 71cea277..891d17b5 100644 --- a/source/Components/AvalonDock/Controls/LayoutItem.cs +++ b/source/Components/AvalonDock/Controls/LayoutItem.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Commands; using AvalonDock.Layout; using System; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -98,10 +99,8 @@ public ContentPresenter View public static readonly DependencyProperty TitleProperty = DependencyProperty.Register(nameof(Title), typeof(string), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnTitleChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the title of the element. - /// + /// Gets/sets the the title of the element. + [Bindable(true), Description("Gets/sets the the title of the element."), Category("Other")] public string Title { get => (string)GetValue(TitleProperty); @@ -125,10 +124,8 @@ protected virtual void OnTitleChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty IconSourceProperty = DependencyProperty.Register(nameof(IconSource), typeof(ImageSource), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnIconSourceChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates icon associated with the item. - /// + /// Gets/sets the icon associated with the item. + [Bindable(true), Description("Gets/sets the icon associated with the item."), Category("Other")] public ImageSource IconSource { get => (ImageSource)GetValue(IconSourceProperty); @@ -152,10 +149,8 @@ protected virtual void OnIconSourceChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty ContentIdProperty = DependencyProperty.Register(nameof(ContentId), typeof(string), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnContentIdChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the content id used to retrieve content when deserializing layouts. - /// + /// Gets/sets the content id used to retrieve content when deserializing layouts. + [Bindable(true), Description("Gets/sets the content id used to retrieve content when deserializing layouts."), Category("Other")] public string ContentId { get => (string)GetValue(ContentIdProperty); @@ -179,10 +174,8 @@ protected virtual void OnContentIdChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register(nameof(IsSelected), typeof(bool), typeof(LayoutItem), new FrameworkPropertyMetadata(false, OnIsSelectedChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if the item is selected inside its container. - /// + /// Gets/sets wether the item is selected inside its container or not. + [Bindable(true), Description("Gets/sets wether the item is selected inside its container or not."), Category("Other")] public bool IsSelected { get => (bool)GetValue(IsSelectedProperty); @@ -210,10 +203,8 @@ protected virtual void OnIsSelectedChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register(nameof(IsActive), typeof(bool), typeof(LayoutItem), new FrameworkPropertyMetadata(false, OnIsActiveChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if the item is active in the UI. - /// + /// Gets/sets wether the item is active in the UI or not. + [Bindable(true), Description("Gets/sets wether the item is active in the UI or not."), Category("Other")] public bool IsActive { get => (bool)GetValue(IsActiveProperty); @@ -241,10 +232,8 @@ protected virtual void OnIsActiveChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty CanCloseProperty = DependencyProperty.Register(nameof(CanClose), typeof(bool), typeof(LayoutItem), new FrameworkPropertyMetadata(true, OnCanCloseChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if the item can be closed. - /// + /// Gets/sets wetherthe item can be closed or not. + [Bindable(true), Description("Gets/sets wetherthe item can be closed or not."), Category("Other")] public bool CanClose { get => (bool)GetValue(CanCloseProperty); @@ -268,10 +257,8 @@ protected virtual void OnCanCloseChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty CanFloatProperty = DependencyProperty.Register(nameof(CanFloat), typeof(bool), typeof(LayoutItem), new FrameworkPropertyMetadata(true, OnCanFloatChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates if user can move the layout element dragging it to another position. - /// + /// Gets/sets wether the user can move the layout element dragging it to another position. + [Bindable(true), Description("Gets/sets wether the user can move the layout element dragging it to another position."), Category("Other")] public bool CanFloat { get => (bool)GetValue(CanFloatProperty); @@ -295,10 +282,8 @@ protected virtual void OnCanFloatChanged(DependencyPropertyChangedEventArgs e) public static readonly DependencyProperty CloseCommandProperty = DependencyProperty.Register(nameof(CloseCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnCloseCommandChanged, CoerceCloseCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when user click the document close button. - /// + /// Gets/sets the command to execute when user click the document close button. + [Bindable(true), Description("Gets/sets the command to execute when user click the document close button."), Category("Other")] public ICommand CloseCommand { get => (ICommand)GetValue(CloseCommandProperty); @@ -331,10 +316,9 @@ protected virtual void OnCloseCommandChanged(DependencyPropertyChangedEventArgs new FrameworkPropertyMetadata(null, OnFloatCommandChanged, CoerceFloatCommandValue)); /// - /// Gets or sets the property. - /// This dependency property indicates the command to execute when user click the float button. - /// + /// Gets/sets the command to execute when the user clicks the float button. /// By default this command move the anchorable inside new floating window. + [Bindable(true), Description("Gets/sets the command to execute when the user clicks the float button."), Category("Other")] public ICommand FloatCommand { get => (ICommand)GetValue(FloatCommandProperty); @@ -366,11 +350,9 @@ protected virtual void OnFloatCommandChanged(DependencyPropertyChangedEventArgs public static readonly DependencyProperty DockAsDocumentCommandProperty = DependencyProperty.Register(nameof(DockAsDocumentCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnDockAsDocumentCommandChanged, CoerceDockAsDocumentCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when user click the DockAsDocument button. - /// + /// Gets/sets the command to execute when user click the DockAsDocument button. /// By default this command move the anchorable inside the last focused document pane. + [Bindable(true), Description("Gets/sets the command to execute when user click the DockAsDocument button."), Category("Other")] public ICommand DockAsDocumentCommand { get => (ICommand)GetValue(DockAsDocumentCommandProperty); @@ -402,10 +384,8 @@ protected virtual void OnDockAsDocumentCommandChanged(DependencyPropertyChangedE public static readonly DependencyProperty CloseAllButThisCommandProperty = DependencyProperty.Register(nameof(CloseAllButThisCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnCloseAllButThisCommandChanged, CoerceCloseAllButThisCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the 'Close All But This' command. - /// + /// Gets/sets the the 'Close All But This' command. + [Bindable(true), Description("Gets/sets the the 'Close All But This' command."), Category("Other")] public ICommand CloseAllButThisCommand { get => (ICommand)GetValue(CloseAllButThisCommandProperty); @@ -440,7 +420,8 @@ private bool CanExecuteCloseAllButThisCommand(object parameter) public static readonly DependencyProperty CloseAllCommandProperty = DependencyProperty.Register(nameof(CloseAllCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnCloseAllCommandChanged, CoerceCloseAllCommandValue)); - /// Gets or sets the property. This dependency property indicates the 'Close All' command. + /// Gets/sets the 'Close All' command. + [Bindable(true), Description("Gets/sets the 'Close All' command."), Category("Other")] public ICommand CloseAllCommand { get => (ICommand)GetValue(CloseAllCommandProperty); @@ -475,10 +456,8 @@ private bool CanExecuteCloseAllCommand(object parameter) public static readonly DependencyProperty ActivateCommandProperty = DependencyProperty.Register(nameof(ActivateCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnActivateCommandChanged, CoerceActivateCommandValue)); - /// - /// Gets or sets the property. This dependency property - /// indicates the command to execute when user wants to activate a content (either a Document or an Anchorable). - /// + /// Gets/sets the command to execute when user wants to activate a content (either a Document or an Anchorable). + [Bindable(true), Description("Gets/sets the command to execute when user wants to activate a content (either a Document or an Anchorable)."), Category("Other")] public ICommand ActivateCommand { get => (ICommand)GetValue(ActivateCommandProperty); @@ -508,10 +487,8 @@ protected virtual void OnActivateCommandChanged(DependencyPropertyChangedEventAr public static readonly DependencyProperty NewVerticalTabGroupCommandProperty = DependencyProperty.Register(nameof(NewVerticalTabGroupCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnNewVerticalTabGroupCommandChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the new vertical tab group command. - /// + /// Gets/sets the new vertical tab group command. + [Bindable(true), Description("Gets/sets the new vertical tab group command."), Category("Other")] public ICommand NewVerticalTabGroupCommand { get => (ICommand)GetValue(NewVerticalTabGroupCommandProperty); @@ -567,10 +544,8 @@ private void ExecuteNewVerticalTabGroupCommand(object parameter) public static readonly DependencyProperty NewHorizontalTabGroupCommandProperty = DependencyProperty.Register(nameof(NewHorizontalTabGroupCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnNewHorizontalTabGroupCommandChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the new horizontal tab group command. - /// + /// Gets/sets the new horizontal tab group command. + [Bindable(true), Description("Gets/sets the new horizontal tab group command."), Category("Other")] public ICommand NewHorizontalTabGroupCommand { get => (ICommand)GetValue(NewHorizontalTabGroupCommandProperty); @@ -626,10 +601,8 @@ private void ExecuteNewHorizontalTabGroupCommand(object parameter) public static readonly DependencyProperty MoveToNextTabGroupCommandProperty = DependencyProperty.Register(nameof(MoveToNextTabGroupCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnMoveToNextTabGroupCommandChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates move to next tab group command. - /// + /// Gets/sets the move to next tab group command. + [Bindable(true), Description("Gets/sets the move to next tab group command."), Category("Other")] public ICommand MoveToNextTabGroupCommand { get => (ICommand)GetValue(MoveToNextTabGroupCommandProperty); @@ -675,10 +648,8 @@ private void ExecuteMoveToNextTabGroupCommand(object parameter) public static readonly DependencyProperty MoveToPreviousTabGroupCommandProperty = DependencyProperty.Register(nameof(MoveToPreviousTabGroupCommand), typeof(ICommand), typeof(LayoutItem), new FrameworkPropertyMetadata(null, OnMoveToPreviousTabGroupCommandChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates move to previous tab group command. - /// + /// Gets/sets the move to previous tab group command. + [Bindable(true), Description("Gets/sets the move to previous tab group command."), Category("Other")] public ICommand MoveToPreviousTabGroupCommand { get => (ICommand)GetValue(MoveToPreviousTabGroupCommandProperty); diff --git a/source/Components/AvalonDock/Controls/MenuItemEx.cs b/source/Components/AvalonDock/Controls/MenuItemEx.cs index d8024496..f9533321 100644 --- a/source/Components/AvalonDock/Controls/MenuItemEx.cs +++ b/source/Components/AvalonDock/Controls/MenuItemEx.cs @@ -7,6 +7,7 @@ This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL ************************************************************************/ +using System.ComponentModel; using System.Windows; using System.Windows.Controls; @@ -43,10 +44,8 @@ static MenuItemEx() public static readonly DependencyProperty IconTemplateProperty = DependencyProperty.Register(nameof(IconTemplate), typeof(DataTemplate), typeof(MenuItemEx), new FrameworkPropertyMetadata(null, OnIconTemplateChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the data template for the icon. - /// + /// Gets/sets the for the icon in the menu item. + [Bindable(true), Description("Gets/sets the data template for the icon in the menu item.."), Category("Menu")] public DataTemplate IconTemplate { get => (DataTemplate)GetValue(IconTemplateProperty); @@ -67,10 +66,8 @@ public DataTemplate IconTemplate public static readonly DependencyProperty IconTemplateSelectorProperty = DependencyProperty.Register(nameof(IconTemplateSelector), typeof(DataTemplateSelector), typeof(MenuItemEx), new FrameworkPropertyMetadata(null, OnIconTemplateSelectorChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the DataTemplateSelector for the Icon. - /// + /// Gets/sets the for the icon in the menu item. + [Bindable(true), Description("Gets/sets the DataTemplateSelector for the icon in the menu item."), Category("Menu")] public DataTemplateSelector IconTemplateSelector { get => (DataTemplateSelector)GetValue(IconTemplateSelectorProperty); diff --git a/source/Components/AvalonDock/Controls/NavigatorWindow.cs b/source/Components/AvalonDock/Controls/NavigatorWindow.cs index 8318cb29..8c808a7d 100644 --- a/source/Components/AvalonDock/Controls/NavigatorWindow.cs +++ b/source/Components/AvalonDock/Controls/NavigatorWindow.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using AvalonDock.Themes; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -84,10 +85,8 @@ internal NavigatorWindow(DockingManager manager) public static readonly DependencyProperty DocumentsProperty = DocumentsPropertyKey.DependencyProperty; - /// - /// Gets the property. This dependency property - /// indicates the list of documents. - /// + /// Gets the list of documents managed in this framework. + [Bindable(true), Description("Gets the list of documents managed in this framework."), Category("Document")] public LayoutDocumentItem[] Documents => (LayoutDocumentItem[])GetValue(DocumentsProperty); #endregion Documents @@ -100,10 +99,8 @@ internal NavigatorWindow(DockingManager manager) public static readonly DependencyProperty AnchorablesProperty = AnchorablesPropertyKey.DependencyProperty; - /// - /// Gets the property. This dependency property - /// indicates the list of anchorables. - /// + /// Gets the list of anchorables managed in the framework. + [Bindable(true), Description("Gets the list of anchorables managed in the framework."), Category("Anchorable")] public IEnumerable Anchorables => (IEnumerable)GetValue(AnchorablesProperty); #endregion Anchorables @@ -114,10 +111,8 @@ internal NavigatorWindow(DockingManager manager) public static readonly DependencyProperty SelectedDocumentProperty = DependencyProperty.Register(nameof(SelectedDocument), typeof(LayoutDocumentItem), typeof(NavigatorWindow), new FrameworkPropertyMetadata(null, OnSelectedDocumentChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the selected document. - /// + /// Gets/sets the currently selected document. + [Bindable(true), Description("Gets/sets the currently selected document."), Category("Document")] public LayoutDocumentItem SelectedDocument { get => (LayoutDocumentItem)GetValue(SelectedDocumentProperty); @@ -143,10 +138,8 @@ protected virtual void OnSelectedDocumentChanged(DependencyPropertyChangedEventA public static readonly DependencyProperty SelectedAnchorableProperty = DependencyProperty.Register(nameof(SelectedAnchorable), typeof(LayoutAnchorableItem), typeof(NavigatorWindow), new FrameworkPropertyMetadata(null, OnSelectedAnchorableChanged)); - /// - /// Gets or sets the property. This dependency property - /// indicates the selected anchorable. - /// + /// Gets/sets the currently selected anchorable. + [Bindable(true), Description("Gets/sets the currently selected anchorable."), Category("Anchorable")] public LayoutAnchorableItem SelectedAnchorable { get => (LayoutAnchorableItem)GetValue(SelectedAnchorableProperty); diff --git a/source/Components/AvalonDock/Controls/OverlayWindow.cs b/source/Components/AvalonDock/Controls/OverlayWindow.cs index bb86673d..d5e64062 100644 --- a/source/Components/AvalonDock/Controls/OverlayWindow.cs +++ b/source/Components/AvalonDock/Controls/OverlayWindow.cs @@ -10,6 +10,7 @@ This program is provided to you under the terms of the Microsoft Public using AvalonDock.Layout; using AvalonDock.Themes; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; @@ -105,9 +106,8 @@ internal OverlayWindow(IOverlayWindowHost host) #region Properties. - /// - /// Gets whether the window is hosted in a floating window. - /// + /// Gets whether the window is hosted in a floating window. + [Bindable(false), Description("Gets whether the window is hosted in a floating window."), Category("FloatingWindow")] public bool IsHostedInFloatingWindow => _host is LayoutDocumentFloatingWindowControl || _host is LayoutAnchorableFloatingWindowControl; #endregion Properties. diff --git a/source/Components/AvalonDock/Controls/TabControlEx.cs b/source/Components/AvalonDock/Controls/TabControlEx.cs index 6803323a..72f2801a 100644 --- a/source/Components/AvalonDock/Controls/TabControlEx.cs +++ b/source/Components/AvalonDock/Controls/TabControlEx.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Specialized; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; @@ -52,9 +53,8 @@ protected TabControlEx() #region properties - /// - /// Gets whether the control and its inheriting classes are virtualizing their items or not. - /// + /// Gets whether the control and its inheriting classes are virtualizing their items or not. + [Bindable(false), Description("Gets whether the control and its inheriting classes are virtualizing their items or not."), Category("Other")] public bool IsVirtualiting => _IsVirtualizing; #endregion properties