@ -2,7 +2,7 @@
Toolkit for WPF
Toolkit for WPF
Copyright ( C ) 2 0 0 7 - 2 0 2 2 Xceed Software Inc .
Copyright ( C ) 2 0 0 7 - 2 0 2 3 Xceed Software Inc .
This program is provided to you under the terms of the XCEED SOFTWARE , INC .
This program is provided to you under the terms of the XCEED SOFTWARE , INC .
COMMUNITY LICENSE AGREEMENT ( for non - commercial use ) as published at
COMMUNITY LICENSE AGREEMENT ( for non - commercial use ) as published at
@ -114,16 +114,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region Title
#region Title
/// <summary>
/// Title Dependency Property
/// </summary>
public static readonly DependencyProperty TitleProperty = DependencyProperty . Register ( "Title" , typeof ( string ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty TitleProperty = DependencyProperty . Register ( "Title" , typeof ( string ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( string ) null , new PropertyChangedCallback ( OnTitleChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( string ) null , new PropertyChangedCallback ( OnTitleChanged ) ) ) ;
/// <summary>
/// Gets or sets the Title property. This dependency property
/// indicates the title of the element.
/// </summary>
public string Title
public string Title
{
{
get
get
@ -136,17 +129,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the Title property.
/// </summary>
private static void OnTitleChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnTitleChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnTitleChanged ( e ) ;
( ( LayoutItem ) d ) . OnTitleChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the Title property.
/// </summary>
protected virtual void OnTitleChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnTitleChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( LayoutElement ! = null )
if ( LayoutElement ! = null )
@ -157,16 +144,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region IconSource
#region IconSource
/// <summary>
/// IconSource Dependency Property
/// </summary>
public static readonly DependencyProperty IconSourceProperty = DependencyProperty . Register ( "IconSource" , typeof ( ImageSource ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty IconSourceProperty = DependencyProperty . Register ( "IconSource" , typeof ( ImageSource ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( ImageSource ) null , new PropertyChangedCallback ( OnIconSourceChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( ImageSource ) null , new PropertyChangedCallback ( OnIconSourceChanged ) ) ) ;
/// <summary>
/// Gets or sets the IconSource property. This dependency property
/// indicates icon associated with the item.
/// </summary>
public ImageSource IconSource
public ImageSource IconSource
{
{
get
get
@ -179,17 +159,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the IconSource property.
/// </summary>
private static void OnIconSourceChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnIconSourceChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnIconSourceChanged ( e ) ;
( ( LayoutItem ) d ) . OnIconSourceChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the IconSource property.
/// </summary>
protected virtual void OnIconSourceChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnIconSourceChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( LayoutElement ! = null )
if ( LayoutElement ! = null )
@ -200,16 +174,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region ContentId
#region ContentId
/// <summary>
/// ContentId Dependency Property
/// </summary>
public static readonly DependencyProperty ContentIdProperty = DependencyProperty . Register ( "ContentId" , typeof ( string ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty ContentIdProperty = DependencyProperty . Register ( "ContentId" , typeof ( string ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( string ) null , new PropertyChangedCallback ( OnContentIdChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( string ) null , new PropertyChangedCallback ( OnContentIdChanged ) ) ) ;
/// <summary>
/// Gets or sets the ContentId property. This dependency property
/// indicates the content id used to retrive content when deserializing layouts.
/// </summary>
public string ContentId
public string ContentId
{
{
get
get
@ -222,17 +189,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the ContentId property.
/// </summary>
private static void OnContentIdChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnContentIdChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnContentIdChanged ( e ) ;
( ( LayoutItem ) d ) . OnContentIdChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the ContentId property.
/// </summary>
protected virtual void OnContentIdChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnContentIdChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( LayoutElement ! = null )
if ( LayoutElement ! = null )
@ -243,16 +204,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region IsSelected
#region IsSelected
/// <summary>
/// IsSelected Dependency Property
/// </summary>
public static readonly DependencyProperty IsSelectedProperty = DependencyProperty . Register ( "IsSelected" , typeof ( bool ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty IsSelectedProperty = DependencyProperty . Register ( "IsSelected" , typeof ( bool ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( bool ) false , new PropertyChangedCallback ( OnIsSelectedChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( bool ) false , new PropertyChangedCallback ( OnIsSelectedChanged ) ) ) ;
/// <summary>
/// Gets or sets the IsSelected property. This dependency property
/// indicates if the item is selected inside its container.
/// </summary>
public bool IsSelected
public bool IsSelected
{
{
get
get
@ -265,17 +219,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the IsSelected property.
/// </summary>
private static void OnIsSelectedChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnIsSelectedChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnIsSelectedChanged ( e ) ;
( ( LayoutItem ) d ) . OnIsSelectedChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the IsSelected property.
/// </summary>
protected virtual void OnIsSelectedChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnIsSelectedChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( _ isSelectedReentrantFlag . CanEnter )
if ( _ isSelectedReentrantFlag . CanEnter )
@ -292,16 +240,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region IsActive
#region IsActive
/// <summary>
/// IsActive Dependency Property
/// </summary>
public static readonly DependencyProperty IsActiveProperty = DependencyProperty . Register ( "IsActive" , typeof ( bool ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty IsActiveProperty = DependencyProperty . Register ( "IsActive" , typeof ( bool ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( bool ) false , new PropertyChangedCallback ( OnIsActiveChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( bool ) false , new PropertyChangedCallback ( OnIsActiveChanged ) ) ) ;
/// <summary>
/// Gets or sets the IsActive property. This dependency property
/// indicates if the item is active in the UI.
/// </summary>
public bool IsActive
public bool IsActive
{
{
get
get
@ -314,17 +255,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the IsActive property.
/// </summary>
private static void OnIsActiveChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnIsActiveChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnIsActiveChanged ( e ) ;
( ( LayoutItem ) d ) . OnIsActiveChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the IsActive property.
/// </summary>
protected virtual void OnIsActiveChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnIsActiveChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( _ isActiveReentrantFlag . CanEnter )
if ( _ isActiveReentrantFlag . CanEnter )
@ -355,16 +290,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region CanClose
#region CanClose
/// <summary>
/// CanClose Dependency Property
/// </summary>
public static readonly DependencyProperty CanCloseProperty = DependencyProperty . Register ( "CanClose" , typeof ( bool ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty CanCloseProperty = DependencyProperty . Register ( "CanClose" , typeof ( bool ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( bool ) true , new PropertyChangedCallback ( OnCanCloseChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( bool ) true , new PropertyChangedCallback ( OnCanCloseChanged ) ) ) ;
/// <summary>
/// Gets or sets the CanClose property. This dependency property
/// indicates if the item can be closed.
/// </summary>
public bool CanClose
public bool CanClose
{
{
get
get
@ -377,17 +305,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the CanClose property.
/// </summary>
private static void OnCanCloseChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnCanCloseChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnCanCloseChanged ( e ) ;
( ( LayoutItem ) d ) . OnCanCloseChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the CanClose property.
/// </summary>
protected virtual void OnCanCloseChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnCanCloseChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( LayoutElement ! = null )
if ( LayoutElement ! = null )
@ -398,16 +320,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region CanFloat
#region CanFloat
/// <summary>
/// CanFloat Dependency Property
/// </summary>
public static readonly DependencyProperty CanFloatProperty = DependencyProperty . Register ( "CanFloat" , typeof ( bool ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty CanFloatProperty = DependencyProperty . Register ( "CanFloat" , typeof ( bool ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( bool ) true , new PropertyChangedCallback ( OnCanFloatChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( bool ) true , new PropertyChangedCallback ( OnCanFloatChanged ) ) ) ;
/// <summary>
/// Gets or sets the CanFloat property. This dependency property
/// indicates if user can move the layout element dragging it to another position.
/// </summary>
public bool CanFloat
public bool CanFloat
{
{
get
get
@ -420,17 +335,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the CanFloat property.
/// </summary>
private static void OnCanFloatChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnCanFloatChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnCanFloatChanged ( e ) ;
( ( LayoutItem ) d ) . OnCanFloatChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the CanFloat property.
/// </summary>
protected virtual void OnCanFloatChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnCanFloatChanged ( DependencyPropertyChangedEventArgs e )
{
{
if ( LayoutElement ! = null )
if ( LayoutElement ! = null )
@ -441,16 +350,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region CloseCommand
#region CloseCommand
/// <summary>
/// CloseCommand Dependency Property
/// </summary>
public static readonly DependencyProperty CloseCommandProperty = DependencyProperty . Register ( "CloseCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty CloseCommandProperty = DependencyProperty . Register ( "CloseCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseCommandChanged ) , new CoerceValueCallback ( CoerceCloseCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseCommandChanged ) , new CoerceValueCallback ( CoerceCloseCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the CloseCommand property. This dependency property
/// indicates the command to execute when user click the document close button.
/// </summary>
public ICommand CloseCommand
public ICommand CloseCommand
{
{
get
get
@ -463,24 +365,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the CloseCommand property.
/// </summary>
private static void OnCloseCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnCloseCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnCloseCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnCloseCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the CloseCommand property.
/// </summary>
protected virtual void OnCloseCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnCloseCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the CloseCommand value.
/// </summary>
private static object CoerceCloseCommandValue ( DependencyObject d , object value )
private static object CoerceCloseCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -502,17 +395,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#endregion
#endregion
#region FloatCommand
#region FloatCommand
/// <summary>
/// FloatCommand Dependency Property
/// </summary>
public static readonly DependencyProperty FloatCommandProperty = DependencyProperty . Register ( "FloatCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty FloatCommandProperty = DependencyProperty . Register ( "FloatCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnFloatCommandChanged ) , new CoerceValueCallback ( CoerceFloatCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnFloatCommandChanged ) , new CoerceValueCallback ( CoerceFloatCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the FloatCommand property. This dependency property
/// indicates the command to execute when user click the float button.
/// </summary>
/// <remarks>By default this command move the anchorable inside new floating window.</remarks>
public ICommand FloatCommand
public ICommand FloatCommand
{
{
get
get
@ -525,24 +410,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the FloatCommand property.
/// </summary>
private static void OnFloatCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnFloatCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnFloatCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnFloatCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the FloatCommand property.
/// </summary>
protected virtual void OnFloatCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnFloatCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the FloatCommand value.
/// </summary>
private static object CoerceFloatCommandValue ( DependencyObject d , object value )
private static object CoerceFloatCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -574,17 +450,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region DockAsDocumentCommand
#region DockAsDocumentCommand
/// <summary>
/// DockAsDocumentCommand Dependency Property
/// </summary>
public static readonly DependencyProperty DockAsDocumentCommandProperty = DependencyProperty . Register ( "DockAsDocumentCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty DockAsDocumentCommandProperty = DependencyProperty . Register ( "DockAsDocumentCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnDockAsDocumentCommandChanged ) , new CoerceValueCallback ( CoerceDockAsDocumentCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnDockAsDocumentCommandChanged ) , new CoerceValueCallback ( CoerceDockAsDocumentCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the DockAsDocumentCommand property. This dependency property
/// indicates the command to execute when user click the DockAsDocument button.
/// </summary>
/// <remarks>By default this command move the anchorable inside the last focused document pane.</remarks>
public ICommand DockAsDocumentCommand
public ICommand DockAsDocumentCommand
{
{
get
get
@ -597,24 +465,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the DockAsDocumentCommand property.
/// </summary>
private static void OnDockAsDocumentCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnDockAsDocumentCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnDockAsDocumentCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnDockAsDocumentCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the DockAsDocumentCommand property.
/// </summary>
protected virtual void OnDockAsDocumentCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnDockAsDocumentCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the DockAsDocumentCommand value.
/// </summary>
private static object CoerceDockAsDocumentCommandValue ( DependencyObject d , object value )
private static object CoerceDockAsDocumentCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -639,16 +498,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region CloseAllButThisCommand
#region CloseAllButThisCommand
/// <summary>
/// CloseAllButThisCommand Dependency Property
/// </summary>
public static readonly DependencyProperty CloseAllButThisCommandProperty = DependencyProperty . Register ( "CloseAllButThisCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty CloseAllButThisCommandProperty = DependencyProperty . Register ( "CloseAllButThisCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseAllButThisCommandChanged ) , new CoerceValueCallback ( CoerceCloseAllButThisCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseAllButThisCommandChanged ) , new CoerceValueCallback ( CoerceCloseAllButThisCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the CloseAllButThisCommand property. This dependency property
/// indicates the 'Close All But This' command.
/// </summary>
public ICommand CloseAllButThisCommand
public ICommand CloseAllButThisCommand
{
{
get
get
@ -661,24 +513,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the CloseAllButThisCommand property.
/// </summary>
private static void OnCloseAllButThisCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnCloseAllButThisCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnCloseAllButThisCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnCloseAllButThisCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the CloseAllButThisCommand property.
/// </summary>
protected virtual void OnCloseAllButThisCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnCloseAllButThisCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the CloseAllButThisCommand value.
/// </summary>
private static object CoerceCloseAllButThisCommandValue ( DependencyObject d , object value )
private static object CoerceCloseAllButThisCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -705,16 +548,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region CloseAllCommand
#region CloseAllCommand
/// <summary>
/// CloseAllCommand Dependency Property
/// </summary>
public static readonly DependencyProperty CloseAllCommandProperty = DependencyProperty . Register ( "CloseAllCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty CloseAllCommandProperty = DependencyProperty . Register ( "CloseAllCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseAllCommandChanged ) , new CoerceValueCallback ( CoerceCloseAllCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnCloseAllCommandChanged ) , new CoerceValueCallback ( CoerceCloseAllCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the CloseAllCommand property. This dependency property
/// indicates the 'Close All' command.
/// </summary>
public ICommand CloseAllCommand
public ICommand CloseAllCommand
{
{
get
get
@ -727,24 +563,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the CloseAllCommand property.
/// </summary>
private static void OnCloseAllCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnCloseAllCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnCloseAllCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnCloseAllCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the CloseAllCommand property.
/// </summary>
protected virtual void OnCloseAllCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnCloseAllCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the CloseAllCommand value.
/// </summary>
private static object CoerceCloseAllCommandValue ( DependencyObject d , object value )
private static object CoerceCloseAllCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -771,16 +598,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region ActivateCommand
#region ActivateCommand
/// <summary>
/// ActivateCommand Dependency Property
/// </summary>
public static readonly DependencyProperty ActivateCommandProperty = DependencyProperty . Register ( "ActivateCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty ActivateCommandProperty = DependencyProperty . Register ( "ActivateCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnActivateCommandChanged ) , new CoerceValueCallback ( CoerceActivateCommandValue ) ) ) ;
new FrameworkPropertyMetadata ( null , new PropertyChangedCallback ( OnActivateCommandChanged ) , new CoerceValueCallback ( CoerceActivateCommandValue ) ) ) ;
/// <summary>
/// Gets or sets the ActivateCommand property. This dependency property
/// indicates the command to execute when user wants to activate a content (either a Document or an Anchorable).
/// </summary>
public ICommand ActivateCommand
public ICommand ActivateCommand
{
{
get
get
@ -793,24 +613,15 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the ActivateCommand property.
/// </summary>
private static void OnActivateCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnActivateCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnActivateCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnActivateCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the ActivateCommand property.
/// </summary>
protected virtual void OnActivateCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnActivateCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
/// <summary>
/// Coerces the ActivateCommand value.
/// </summary>
private static object CoerceActivateCommandValue ( DependencyObject d , object value )
private static object CoerceActivateCommandValue ( DependencyObject d , object value )
{
{
return value ;
return value ;
@ -830,16 +641,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region NewVerticalTabGroupCommand
#region NewVerticalTabGroupCommand
/// <summary>
/// NewVerticalTabGroupCommand Dependency Property
/// </summary>
public static readonly DependencyProperty NewVerticalTabGroupCommandProperty = DependencyProperty . Register ( "NewVerticalTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty NewVerticalTabGroupCommandProperty = DependencyProperty . Register ( "NewVerticalTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnNewVerticalTabGroupCommandChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnNewVerticalTabGroupCommandChanged ) ) ) ;
/// <summary>
/// Gets or sets the NewVerticalTabGroupCommand property. This dependency property
/// indicates the new vertical tab group command.
/// </summary>
public ICommand NewVerticalTabGroupCommand
public ICommand NewVerticalTabGroupCommand
{
{
get
get
@ -852,17 +656,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the NewVerticalTabGroupCommand property.
/// </summary>
private static void OnNewVerticalTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnNewVerticalTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnNewVerticalTabGroupCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnNewVerticalTabGroupCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the NewVerticalTabGroupCommand property.
/// </summary>
protected virtual void OnNewVerticalTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnNewVerticalTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
@ -907,16 +705,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region NewHorizontalTabGroupCommand
#region NewHorizontalTabGroupCommand
/// <summary>
/// NewHorizontalTabGroupCommand Dependency Property
/// </summary>
public static readonly DependencyProperty NewHorizontalTabGroupCommandProperty = DependencyProperty . Register ( "NewHorizontalTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty NewHorizontalTabGroupCommandProperty = DependencyProperty . Register ( "NewHorizontalTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnNewHorizontalTabGroupCommandChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnNewHorizontalTabGroupCommandChanged ) ) ) ;
/// <summary>
/// Gets or sets the NewHorizontalTabGroupCommand property. This dependency property
/// indicates the new horizontal tab group command.
/// </summary>
public ICommand NewHorizontalTabGroupCommand
public ICommand NewHorizontalTabGroupCommand
{
{
get
get
@ -929,17 +720,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the NewHorizontalTabGroupCommand property.
/// </summary>
private static void OnNewHorizontalTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnNewHorizontalTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnNewHorizontalTabGroupCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnNewHorizontalTabGroupCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the NewHorizontalTabGroupCommand property.
/// </summary>
protected virtual void OnNewHorizontalTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnNewHorizontalTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
@ -985,16 +770,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region MoveToNextTabGroupCommand
#region MoveToNextTabGroupCommand
/// <summary>
/// MoveToNextTabGroupCommand Dependency Property
/// </summary>
public static readonly DependencyProperty MoveToNextTabGroupCommandProperty = DependencyProperty . Register ( "MoveToNextTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty MoveToNextTabGroupCommandProperty = DependencyProperty . Register ( "MoveToNextTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnMoveToNextTabGroupCommandChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnMoveToNextTabGroupCommandChanged ) ) ) ;
/// <summary>
/// Gets or sets the MoveToNextTabGroupCommand property. This dependency property
/// indicates move to next tab group command.
/// </summary>
public ICommand MoveToNextTabGroupCommand
public ICommand MoveToNextTabGroupCommand
{
{
get
get
@ -1007,17 +785,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the MoveToNextTabGroupCommand property.
/// </summary>
private static void OnMoveToNextTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnMoveToNextTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnMoveToNextTabGroupCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnMoveToNextTabGroupCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the MoveToNextTabGroupCommand property.
/// </summary>
protected virtual void OnMoveToNextTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnMoveToNextTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}
@ -1052,16 +824,9 @@ namespace Xceed.Wpf.AvalonDock.Controls
#region MoveToPreviousTabGroupCommand
#region MoveToPreviousTabGroupCommand
/// <summary>
/// MoveToPreviousTabGroupCommand Dependency Property
/// </summary>
public static readonly DependencyProperty MoveToPreviousTabGroupCommandProperty = DependencyProperty . Register ( "MoveToPreviousTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
public static readonly DependencyProperty MoveToPreviousTabGroupCommandProperty = DependencyProperty . Register ( "MoveToPreviousTabGroupCommand" , typeof ( ICommand ) , typeof ( LayoutItem ) ,
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnMoveToPreviousTabGroupCommandChanged ) ) ) ;
new FrameworkPropertyMetadata ( ( ICommand ) null , new PropertyChangedCallback ( OnMoveToPreviousTabGroupCommandChanged ) ) ) ;
/// <summary>
/// Gets or sets the MoveToPreviousTabGroupCommand property. This dependency property
/// indicates move to rpevious tab group command.
/// </summary>
public ICommand MoveToPreviousTabGroupCommand
public ICommand MoveToPreviousTabGroupCommand
{
{
get
get
@ -1074,17 +839,11 @@ namespace Xceed.Wpf.AvalonDock.Controls
}
}
}
}
/// <summary>
/// Handles changes to the MoveToPreviousTabGroupCommand property.
/// </summary>
private static void OnMoveToPreviousTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
private static void OnMoveToPreviousTabGroupCommandChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
{
{
( ( LayoutItem ) d ) . OnMoveToPreviousTabGroupCommandChanged ( e ) ;
( ( LayoutItem ) d ) . OnMoveToPreviousTabGroupCommandChanged ( e ) ;
}
}
/// <summary>
/// Provides derived classes an opportunity to handle changes to the MoveToPreviousTabGroupCommand property.
/// </summary>
protected virtual void OnMoveToPreviousTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
protected virtual void OnMoveToPreviousTabGroupCommandChanged ( DependencyPropertyChangedEventArgs e )
{
{
}
}