Открытые члены | Открытые статические члены | Статические открытые данные | Защищенные члены | Свойства | События

Класс AvalonDock.ManagedContent

Граф наследования:AvalonDock.ManagedContent:
AvalonDock.DockableContent AvalonDock.DocumentContent TSLab.Controls.BaseDockableContent-g< T > TSLab.TemplatesEditor.Controls.BlockViewDockableContent AvalonDock.BaseContent TSLab.LabView.LabDockableContentPane< T > TSLab.Controls.BaseContentPane< T >

Полный список членов класса

Открытые члены

override void OnApplyTemplate ()
abstract void Show ()
 Shows the content.
abstract void Show (DockingManager manager)
 Shows the content inside a DockingManager object.
abstract bool Close ()
 Close the content.
abstract bool Hide ()
 Hide the content.
virtual void Activate ()
 Set the content as the active content.
virtual void SaveLayout (XmlWriter storeWriter)
 Save content specific layout settings.
virtual void RestoreLayout (XmlElement contentElement)
 Restore content specific layout settings.

Открытые статические члены

static HitTestResultBehavior SelectResultCallback (HitTestResult result)
static HitTestFilterBehavior SelectHitTestFilterFunc (DependencyObject potentialHitTestTarget)

Статические открытые данные

static readonly DependencyProperty TitleProperty
static readonly DependencyProperty IconProperty
 Select an icon object for the content.
static readonly DependencyProperty DefaultFocusedElementProperty = DependencyProperty.Register("DefaultElement", typeof(IInputElement), typeof(ManagedContent))
 Gets or sets an element which is focused by default when content is activated.
static readonly DependencyProperty IsActiveContentProperty = IsActiveContentPropertyKey.DependencyProperty
static readonly DependencyProperty IsActiveDocumentProperty = IsActiveDocumentPropertyKey.DependencyProperty
static readonly DependencyProperty IsLockedProperty
 IsLocked Dependency Property.
static readonly DependencyProperty FloatingWindowSizeProperty
 FloatingWindowSize Dependency Property.
static readonly DependencyProperty IsCloseableProperty

Защищенные члены

virtual void OnContentLoaded ()
virtual void OnContentUnloaded ()
virtual void OnDragStart (Point ptMouse, Point ptrelativeMouse)
void ResetIsMouseDownFlag ()
virtual void OnDragMouseDown (object sender, MouseButtonEventArgs e)
virtual void OnDragMouseMove (object sender, MouseEventArgs e)
virtual void OnDragMouseUp (object sender, MouseButtonEventArgs e)
virtual void OnDragMouseLeave (object sender, MouseEventArgs e)
override void OnMouseDown (MouseButtonEventArgs e)
override void OnKeyDown (KeyEventArgs e)
override void OnVisualParentChanged (DependencyObject oldParent)
virtual void OnManagerChanged (DockingManager oldValue, DockingManager newValue)
 Provides derived classes an opportunity to handle changes to the Manager property.
DockingManager GetParentManager (Pane containerPane)
override void OnGotKeyboardFocus (KeyboardFocusChangedEventArgs e)
override void OnLostKeyboardFocus (KeyboardFocusChangedEventArgs e)
virtual void OnIsActiveContentChanged (DependencyPropertyChangedEventArgs e)
 Provides derived classes an opportunity to handle changes to the IsActiveContent property.
virtual void FocusContent ()
 Provides derived classes an opportunity to manage custom focus strategy.
virtual void OnIsActiveDocumentChanged (DependencyPropertyChangedEventArgs e)
 Provides derived classes an opportunity to handle changes to the IsActiveDocument property.
virtual void OnFloatingWindowSizeChanged (DependencyPropertyChangedEventArgs e)
 Provides derived classes an opportunity to handle changes to the FloatingWindowSize property.
void RaisePropertyChanged (string propertyName)
override void OnInitialized (EventArgs e)
virtual bool CanExecuteCommand (ICommand command)
 Retrive a value indicating if the command passed can be executed based to the content state.
virtual void OnClosing (CancelEventArgs e)
 Ovveride this method to handle DocumentContent.OnClosing event.
virtual void OnClosed ()
 Ovveride this method to handle DocumentContent.OnClose event.

Свойства

string Title [get, set]
 Gets or set the title of the content.
ImageSource Icon [get, set]
 Access to IconProperty dependency property.
IInputElement DefaultElement [get, set]
 Access to DefaultFocusedElementProperty
FrameworkElement DragEnabledArea [get]
 Gets the draggable area of the document.
Point StartDragPoint [get]
bool IsMouseDown [get]
Pane ContainerPane [get]
 Gets container pane currently hosting the content.
DockingManager Manager [get, set]
 Get current hosting docking manager (DockingManager).
bool IsActiveContent [get]
 Gets the IsActiveContent property. This dependency property indicates the active (selected) content between all contents of the docking manager.
bool IsActiveDocument [get]
 Gets the IsActiveDocument property. This dependency property indicates is content is the active document.
bool IsLocked [get, set]
 Gets or sets the IsLocked property. This dependency property indicates if this content is locked (for DocumentContent objects this often means that it's readonly).
Size FloatingWindowSize [get, set]
 Gets or sets the FloatingWindowSize property. This dependency property indicates the size of the floating window hosting the content when it's floating.
bool IsCloseable [get, set]
 Get or set a value indicating if this content can be closed or hidden.
ICommand CloseCommand [get, set]

События

EventHandler IsActiveContentChanged
 Event fired when the IsActiveContent property changes.
EventHandler IsActiveDocumentChanged
 Event fired when the IsActiveContent property changes.
PropertyChangedEventHandler PropertyChanged
EventHandler< CancelEventArgs > Closing
 Event fired when the content is about to be closed.
EventHandler Closed
 Event fired when the content has been closed.

Методы

virtual void AvalonDock.ManagedContent.Activate (  )  [virtual]

Set the content as the active content.

After this method returns property IsActiveContent returns true.

Переопределяется в AvalonDock.DockableContent и AvalonDock.DocumentContent.

virtual bool AvalonDock.ManagedContent.CanExecuteCommand ( ICommand  command  )  [protected, virtual]

Retrive a value indicating if the command passed can be executed based to the content state.

Аргументы:
command Command to execute
Возвращает:
True if the command can be execute, false otherwise.

Переопределяется в AvalonDock.DockableContent и AvalonDock.DocumentContent.

abstract bool AvalonDock.ManagedContent.Close (  )  [pure virtual]

Close the content.

Возвращает:
Returns true if the content was succesfully closed, false otherwise.

Замещается в AvalonDock.DockableContent и AvalonDock.DocumentContent.

virtual void AvalonDock.ManagedContent.FocusContent (  )  [protected, virtual]

Provides derived classes an opportunity to manage custom focus strategy.

Derived classes should not call base class if don't want AvalonDock to set focus on DefaultElement object

abstract bool AvalonDock.ManagedContent.Hide (  )  [pure virtual]

Hide the content.

Замещается в AvalonDock.DockableContent и AvalonDock.DocumentContent.

virtual void AvalonDock.ManagedContent.OnClosed (  )  [protected, virtual]

Ovveride this method to handle DocumentContent.OnClose event.

Переопределяется в TSLab.LabView.LabDockableContentPane< T >.

virtual void AvalonDock.ManagedContent.OnClosing ( CancelEventArgs  e  )  [protected, virtual]

Ovveride this method to handle DocumentContent.OnClosing event.

virtual void AvalonDock.ManagedContent.OnFloatingWindowSizeChanged ( DependencyPropertyChangedEventArgs  e  )  [protected, virtual]

Provides derived classes an opportunity to handle changes to the FloatingWindowSize property.

virtual void AvalonDock.ManagedContent.OnIsActiveContentChanged ( DependencyPropertyChangedEventArgs  e  )  [protected, virtual]

Provides derived classes an opportunity to handle changes to the IsActiveContent property.

virtual void AvalonDock.ManagedContent.OnIsActiveDocumentChanged ( DependencyPropertyChangedEventArgs  e  )  [protected, virtual]

Provides derived classes an opportunity to handle changes to the IsActiveDocument property.

virtual void AvalonDock.ManagedContent.OnManagerChanged ( DockingManager  oldValue,
DockingManager  newValue 
) [protected, virtual]

Provides derived classes an opportunity to handle changes to the Manager property.

virtual void AvalonDock.ManagedContent.RestoreLayout ( XmlElement  contentElement  )  [virtual]

Restore content specific layout settings.

Аргументы:
storeReader Saved xml element containg content layout settings

Custom derived class must overload this method to restore custom layout settings previously saved trought SaveLayout.

Переопределяется в AvalonDock.DockableContent.

virtual void AvalonDock.ManagedContent.SaveLayout ( XmlWriter  storeWriter  )  [virtual]

Save content specific layout settings.

Аргументы:
storeWriter Backend store writer

Custom derived class can overloads this method to handle custom layout persistence.

Переопределяется в AvalonDock.DockableContent.

abstract void AvalonDock.ManagedContent.Show ( DockingManager  manager  )  [pure virtual]

Shows the content inside a DockingManager object.

How content is shows depends from the type of the content.

Замещается в AvalonDock.DockableContent и AvalonDock.DocumentContent.

abstract void AvalonDock.ManagedContent.Show (  )  [pure virtual]

Shows the content.

How content is shows depends from the type of the content.

Замещается в AvalonDock.DockableContent и AvalonDock.DocumentContent.


Данные класса

readonly DependencyProperty AvalonDock.ManagedContent.DefaultFocusedElementProperty = DependencyProperty.Register("DefaultElement", typeof(IInputElement), typeof(ManagedContent)) [static]

Gets or sets an element which is focused by default when content is activated.

readonly DependencyProperty AvalonDock.ManagedContent.FloatingWindowSizeProperty [static]
Инициализатор
            DependencyProperty.Register("FloatingWindowSize", typeof(Size), typeof(ManagedContent),
                new FrameworkPropertyMetadata(new Size(250,400),
                    new PropertyChangedCallback(OnFloatingWindowSizeChanged)))

FloatingWindowSize Dependency Property.

readonly DependencyProperty AvalonDock.ManagedContent.IconProperty [static]
Инициализатор
        DependencyProperty.Register("Icon", typeof(ImageSource), typeof(ManagedContent),
            new FrameworkPropertyMetadata(null, new CoerceValueCallback(OnCoerce_Icon)))

Select an icon object for the content.

readonly DependencyProperty AvalonDock.ManagedContent.IsCloseableProperty [static]
Инициализатор
            DependencyProperty.Register("IsCloseable", typeof(bool), typeof(ManagedContent), new UIPropertyMetadata(true))
readonly DependencyProperty AvalonDock.ManagedContent.IsLockedProperty [static]
Инициализатор
            DependencyProperty.Register("IsLocked", typeof(bool), typeof(ManagedContent),
                new FrameworkPropertyMetadata((bool)false))

IsLocked Dependency Property.

readonly DependencyProperty AvalonDock.ManagedContent.TitleProperty [static]
Инициализатор
            DependencyProperty.Register("Title", typeof(string), typeof(ManagedContent))

Полный список свойств

Pane AvalonDock.ManagedContent.ContainerPane [get]

Gets container pane currently hosting the content.

Please note that this value could change as user move the content around the DockingManager.

IInputElement AvalonDock.ManagedContent.DefaultElement [get, set]
FrameworkElement AvalonDock.ManagedContent.DragEnabledArea [get, protected]

Gets the draggable area of the document.

Size AvalonDock.ManagedContent.FloatingWindowSize [get, set]

Gets or sets the FloatingWindowSize property. This dependency property indicates the size of the floating window hosting the content when it's floating.

ImageSource AvalonDock.ManagedContent.Icon [get, set]

Access to IconProperty dependency property.

bool AvalonDock.ManagedContent.IsActiveContent [get]

Gets the IsActiveContent property. This dependency property indicates the active (selected) content between all contents of the docking manager.

bool AvalonDock.ManagedContent.IsActiveDocument [get]

Gets the IsActiveDocument property. This dependency property indicates is content is the active document.

bool AvalonDock.ManagedContent.IsCloseable [get, set]

Get or set a value indicating if this content can be closed or hidden.

bool AvalonDock.ManagedContent.IsLocked [get, set]

Gets or sets the IsLocked property. This dependency property indicates if this content is locked (for DocumentContent objects this often means that it's readonly).

DockingManager AvalonDock.ManagedContent.Manager [get, set]

Get current hosting docking manager (DockingManager).

string AvalonDock.ManagedContent.Title [get, set]

Gets or set the title of the content.


Cобытия

EventHandler AvalonDock.ManagedContent.Closed

Event fired when the content has been closed.

Note that when a document is closed property like ManagedContent.ContainerPane or ManagedContent.Manager returns null.

EventHandler<CancelEventArgs> AvalonDock.ManagedContent.Closing

Event fired when the content is about to be closed.

EventHandler AvalonDock.ManagedContent.IsActiveContentChanged

Event fired when the IsActiveContent property changes.

EventHandler AvalonDock.ManagedContent.IsActiveDocumentChanged

Event fired when the IsActiveContent property changes.