wpftoolkit-master/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutDocumentControl.cs
/// <summary>
/// Provides derived classes an opportunity to handle changes to the Model property.
/// </summary>
Provides derived classes an opportunity to handle changes to the Model property.
Provides derived classes an opportunity to handle changes to the Model property .
protected virtual void OnModelChanged( DependencyPropertyChangedEventArgs e )
    {
      if( e.OldValue != null )
      {
        ( ( LayoutContent )e.OldValue ).PropertyChanged -= Model_PropertyChanged;
      }
      if( Model != null )
      {
        Model.PropertyChanged += Model_PropertyChanged;
        SetLayoutItem( Model.Root.Manager.GetLayoutItemFromModel( Model ) );
      }
      else
      {
        SetLayoutItem( null );
      }
    }
protected virtual void OnModelChanged ( DependencyPropertyChangedEventArgs e ) { if ( e . OldValue != null ) { ( ( LayoutContent ) e . OldValue ) . PropertyChanged -= Model_PropertyChanged ; } if ( Model != null ) { Model . PropertyChanged += Model_PropertyChanged ; SetLayoutItem ( Model . Root . Manager . GetLayoutItemFromModel ( Model ) ) ; } else { SetLayoutItem ( null ) ; } }
Provides derived classes an opportunity to handle changes to the Model property.
Provides derived classes an opportunity to handle changes to the Model property .
e
DependencyPropertyChangedEventArgs