Identifies a content that can be drag over a DockingManager control or hosted by a window floating over it (FloatingWindow). Подробнее...
Открытые члены | |
override void | Show () |
Show DockableContent as docked pane. | |
override void | Show (DockingManager manager) |
Show DockableContent as docked pane within provided DockingManager | |
void | Show (AnchorStyle desideredAnchor) |
Show DockableContent as docked pane. | |
void | Show (DockingManager manager, AnchorStyle desideredAnchor) |
Show DockableContent as docked pane. | |
void | ShowAsDocument () |
Show as DockableContent as a tabbed document. | |
void | ShowAsDocument (DockingManager manager) |
Show as DockableContent as a tabbed document under the provided DockingManager | |
void | ShowAsFloatingWindow (bool dockableWindow) |
Show the content as floating window inside the provided DockingManager | |
void | ShowAsFloatingWindow (DockingManager manager, bool dockableWindow) |
Show the content ad floating window. | |
override bool | Hide () |
Hides this content. | |
override bool | Close () |
Close content. | |
bool | Close (bool forceClose) |
Close content. | |
void | ToggleAutoHide () |
Slides out this content to a border of the containing docking manager. | |
override void | Activate () |
Set the content as the active content. | |
void | ResetSavedStateAndPosition () |
Reset internal state and position of the content. | |
override void | SaveLayout (XmlWriter storeWriter) |
Save content specific layout settings. | |
override void | RestoreLayout (XmlElement contentElement) |
Restore content specific layout settings. | |
Статические открытые данные | |
static readonly RoutedEvent | StateChangedEvent |
StateChanged Routed Event. | |
static readonly DependencyPropertyKey | StatePropertyKey |
static readonly DependencyProperty | StateProperty |
static readonly DependencyProperty | DockableStyleProperty |
DockableStyle Dependency Property. | |
static DependencyProperty | HideOnCloseKey = DependencyProperty.Register("HideOnClose", typeof(bool), typeof(DockableContent), new PropertyMetadata(true)) |
static readonly DependencyProperty | FlyoutWindowSizeProperty |
FlyoutWindowSize Dependency Property. | |
Защищенные члены | |
override void | OnContentLoaded () |
override void | OnContentUnloaded () |
override void | OnDragMouseMove (object sender, MouseEventArgs e) |
override void | OnDragStart (Point ptMouse, Point ptRelativeMouse) |
RoutedEventArgs | RaiseStateChangedEvent () |
A helper method to raise the StateChanged event. | |
virtual void | OnStateChanged (DockableContentState oldState, DockableContentState newState) |
override void | OnVisualParentChanged (DependencyObject oldParent) |
override void | OnInitialized (EventArgs e) |
override bool | CanExecuteCommand (ICommand command) |
Retrive a value indicating if the command can be executed based to the dockable content state. | |
Свойства | |
SizeToContent | FloatingWindowSizeToContent [get, set] |
Gets or sets a value indicating if this dockable content should change the size of a FloatingWindow when undocked. | |
RoutedEventHandler | StateChanged |
Occurs when State property changes. | |
DockableContentState | State [get, set] |
Gets the state of DockableContent | |
DockableStyle | DockableStyle [get, set] |
Get or sets a value that indicates how a dockable content can be dragged over and docked to a DockingManager | |
bool | HideOnClose [get, set] |
Size | FlyoutWindowSize [get, set] |
Gets or sets the FlyoutWindowSize property. This dependency property indicates size of the window hosting this content when is in auto-hidden state. This property is persisted when layout of the container DockingManager is saved. |
Identifies a content that can be drag over a DockingManager control or hosted by a window floating over it (FloatingWindow).
override void AvalonDock.DockableContent.Activate | ( | ) | [virtual] |
Set the content as the active content.
After this method returns property IsActiveContent returns true.
Переопределяет метод предка AvalonDock.ManagedContent.
override bool AvalonDock.DockableContent.CanExecuteCommand | ( | ICommand | command | ) | [protected, virtual] |
Retrive a value indicating if the command can be executed based to the dockable content state.
command |
Переопределяет метод предка AvalonDock.ManagedContent.
override bool AvalonDock.DockableContent.Close | ( | ) | [virtual] |
Close content.
Замещает AvalonDock.ManagedContent.
bool AvalonDock.DockableContent.Close | ( | bool | forceClose | ) |
Close content.
forceClose | If true forces the content closing regardless of the HideOnClose property. |
override bool AvalonDock.DockableContent.Hide | ( | ) | [virtual] |
Hides this content.
Замещает AvalonDock.ManagedContent.
RoutedEventArgs AvalonDock.DockableContent.RaiseStateChangedEvent | ( | ) | [protected] |
A helper method to raise the StateChanged event.
void AvalonDock.DockableContent.ResetSavedStateAndPosition | ( | ) |
Reset internal state and position of the content.
After a DockableContent is hidden AvalonDock save its state and position in order to restore it correctly when user wants to reshow it calling DockingManager.Show function. Call this method if you want to reset these data and provide your state and anchor style calling one of the overloads of the function DockingManager.Show.
override void AvalonDock.DockableContent.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.ManagedContent.
override void AvalonDock.DockableContent.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.ManagedContent.
override void AvalonDock.DockableContent.Show | ( | DockingManager | manager | ) | [virtual] |
Show DockableContent as docked pane within provided DockingManager
Замещает AvalonDock.ManagedContent.
override void AvalonDock.DockableContent.Show | ( | ) | [virtual] |
Show DockableContent as docked pane.
Замещает AvalonDock.ManagedContent.
void AvalonDock.DockableContent.Show | ( | DockingManager | manager, | |
AnchorStyle | desideredAnchor | |||
) |
Show DockableContent as docked pane.
void AvalonDock.DockableContent.Show | ( | AnchorStyle | desideredAnchor | ) |
Show DockableContent as docked pane.
desideredAnchor | Desidered anchor position |
void AvalonDock.DockableContent.ShowAsDocument | ( | ) |
Show as DockableContent as a tabbed document.
void AvalonDock.DockableContent.ShowAsDocument | ( | DockingManager | manager | ) |
Show as DockableContent as a tabbed document under the provided DockingManager
void AvalonDock.DockableContent.ShowAsFloatingWindow | ( | DockingManager | manager, | |
bool | dockableWindow | |||
) |
Show the content ad floating window.
dockableWindow | True if the resulting floating window can the be re-docked to the docking manager. |
void AvalonDock.DockableContent.ShowAsFloatingWindow | ( | bool | dockableWindow | ) |
Show the content as floating window inside the provided DockingManager
dockableWindow | True if the resulting floating window can the be re-docked to the docking manager. |
void AvalonDock.DockableContent.ToggleAutoHide | ( | ) |
Slides out this content to a border of the containing docking manager.
readonly DependencyProperty AvalonDock.DockableContent.DockableStyleProperty [static] |
DependencyProperty.Register("DockableStyle", typeof(DockableStyle), typeof(DockableContent), new FrameworkPropertyMetadata(DockableStyle.Dockable))
DockableStyle Dependency Property.
readonly DependencyProperty AvalonDock.DockableContent.FlyoutWindowSizeProperty [static] |
DependencyProperty.Register("FlyoutWindowSize", typeof(Size), typeof(DockableContent), new FrameworkPropertyMetadata((Size)Size.Empty, new PropertyChangedCallback(OnFlyoutWindowSizeChanged), new CoerceValueCallback(CoerceFlyoutWindowSizeValue)))
FlyoutWindowSize Dependency Property.
readonly RoutedEvent AvalonDock.DockableContent.StateChangedEvent [static] |
EventManager.RegisterRoutedEvent("StateChanged",
RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(DockableContent))
StateChanged Routed Event.
readonly DependencyProperty AvalonDock.DockableContent.StateProperty [static] |
StatePropertyKey.DependencyProperty
readonly DependencyPropertyKey AvalonDock.DockableContent.StatePropertyKey [static] |
DependencyProperty.RegisterReadOnly("State", typeof(DockableContentState), typeof(DockableContent), new FrameworkPropertyMetadata( DockableContentState.None, new PropertyChangedCallback( (s, e) => { ((DockableContent)s).OnStateChanged((DockableContentState)e.OldValue, (DockableContentState)e.NewValue); } )))
DockableStyle AvalonDock.DockableContent.DockableStyle [get, set] |
Get or sets a value that indicates how a dockable content can be dragged over and docked to a DockingManager
SizeToContent AvalonDock.DockableContent.FloatingWindowSizeToContent [get, set] |
Gets or sets a value indicating if this dockable content should change the size of a FloatingWindow when undocked.
Size AvalonDock.DockableContent.FlyoutWindowSize [get, set] |
Gets or sets the FlyoutWindowSize property. This dependency property indicates size of the window hosting this content when is in auto-hidden state. This property is persisted when layout of the container DockingManager is saved.
DockableContentState AvalonDock.DockableContent.State [get, set] |
Gets the state of DockableContent
RoutedEventHandler AvalonDock.DockableContent.StateChanged [add, remove] |
Occurs when State property changes.