Property | Type | Description | |
---|---|---|---|
CloseButtonStyleProperty | |||
FlowDirectionProperty | |||
IconProperty | |||
IconTextProperty | |||
MaximizeButtonStyleProperty | |||
MinimizeButtonStyleProperty | |||
PositionProperty | |||
ResizeEnabledProperty | |||
ResizingAreaThicknessProperty | DependencyProperty | ||
RestoreButtonStyleProperty | DependencyProperty | ||
ShowCloseButtonProperty | DependencyProperty | ||
ShowInIconbarProperty | DependencyProperty | ||
ShowMaximizeButtonProperty | DependencyProperty | ||
ShowMinimizeButtonProperty | DependencyProperty | ||
ShowRestoreButtonProperty | DependencyProperty | ||
TitleBackgroundProperty | DependencyProperty | ||
TitleProperty | DependencyProperty | ||
TitleStyleProperty | DependencyProperty |
Method | Description | |
---|---|---|
Activate ( ) : void |
Makes the window topmost and tries to set focus on it.
|
|
Close ( ) : void |
Closes a FloatingWindow.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
FloatingWindow ( ) : System |
Initializes a new instance of the FloatingWindow class.
|
|
MaximizeWindow ( ) : void |
Maximizes the window.
|
|
MinimizeWindow ( ) : void |
Minimizes the window.
|
|
OnApplyTemplate ( ) : void |
Builds the visual tree for the FloatingWindow control when a new template is applied.
|
|
RestoreSizeAndPosition ( ) : void |
Restores the size and position stored in the IsolatedStorage on closing.
|
|
RestoreWindow ( ) : void |
Restores window state, size and its position.
|
|
Show ( ) : void |
Opens the FloatingWindow in previously saved position or in the center of the FloatingWindowHost.
|
|
Show ( Point point ) : void |
Shows the window in the specified coordinates, relative to the window's Host.
|
|
Show ( Thickness margins ) : void |
Shows a FloatingWindow at maximal size taking into account specified margins and current FloatingWindowHost size.
|
|
Show ( double x, double y ) : void |
Shows the window in the specified coordinates, relative to the window's Host.
|
|
ShowModal ( ) : void |
Shows the window as a modal one.
|
Method | Description | |
---|---|---|
OnActivated ( |
Raises the FloatingWindow.Activated event.
|
|
OnClosed ( |
Raises the FloatingWindow.Closed event.
|
|
OnClosing ( CancelEventArgs e ) : void |
Raises the FloatingWindow.Closing event.
|
|
OnDeactivated ( |
Raises the FloatingWindow.Deactivated event.
|
|
OnMaximized ( |
Raises the FloatingWindow.Maximized event.
|
|
OnMinimized ( |
Raises the FloatingWindow.Minimized event.
|
|
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Executed when mouse left button is down.
|
|
OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Executed when mouse left button is up.
|
|
OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void |
Executed when mouse moves.
|
|
OnOpened ( ) : void |
This method is called every time a FloatingWindow is displayed.
|
|
OnRestored ( |
Raises the FloatingWindow.Restored event.
|
Method | Description | |
---|---|---|
ActiveWindowChanged ( object sender, |
Handles the ActiveWindowChanged event of the Host control.
|
|
Application_Exit ( object sender, |
Executed when the application is exited.
|
|
CaptureMouseCursor ( ) : void |
Captures the mouse cursor.
|
|
CheckHost ( ) : void |
Checks if the floating window was added to the FloatingWindowHost.
|
|
CloseButton_Click ( object sender, |
Executed when the Close button is clicked.
|
|
Closing_Completed ( object sender, |
Executed when the Closing storyboard ends.
|
|
ContentRoot_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void |
Handles the SizeChanged event of the ContentRoot control to update window position only once when the window is opened.
|
|
EnsureVisible ( ) : void |
Ensures the window is visible.
|
|
FloatingWindow_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void |
Handles the MouseLeftButtonDown event to bring the window to the front.
|
|
GetAppSettingsKey ( string key ) : string |
Gets the application settings key used to store properties in the IsolatedStorage.
|
|
GetCurrentWindowPosition ( ) : Point |
Gets current window position taking into account animation effects.
|
|
GetStoryboards ( ) : void |
Gets the storyboards defined in the FloatingWindow style.
|
|
GetThumbnailImage ( ) : ImageSource |
Creates a thumbnail of the window.
|
|
Host_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void |
Updates clipping region on host SizeChanged event.
|
|
InertialMotion_Completed ( object sender, |
Handles the Completed event of the InertialMotionStoryboard.
|
|
InitializeContentRootTransformGroup ( ) : void |
Checks the TransformGroup of the content root or creates it if necesary.
|
|
IsMouseOverButtons ( Point position, UIElement origin ) : bool |
Determines whether the mouse is over buttons in the the specified mouse position.
|
|
MaximizeButton_Click ( object sender, |
Handles the Click event of the MaximizeButton control.
|
|
Maximizing_Completed ( object sender, |
Handles the Completed event of the Maximizing animation.
|
|
MinimizeButton_Click ( object sender, |
Handles the Click event of the MinimizeButton control.
|
|
MoveWindow ( Point point ) : void |
Moves the window to the specified coordinates.
|
|
OnCloseButtonStylePropertyChanged ( |
CloseButtonStyle PropertyChangedCallback call back static function.
|
|
OnMaximizeButtonStylePropertyChanged ( |
MaximizeButtonStyle PropertyChangedCallback call back static function.
|
|
OnMinimizeButtonStylePropertyChanged ( |
CloseButtonStyle PropertyChangedCallback call back static function.
|
|
OnPositionPropertyChanged ( |
PositionProperty PropertyChangedCallback call back static function.
|
|
OnResizingAreaThicknessPropertyChanged ( |
ResizingAreaThicknessProperty PropertyChangedCallback call back static function.
|
|
OnRestoreButtonStylePropertyChanged ( |
RestoreButtonStyle PropertyChangedCallback call back static function.
|
|
OnShowCloseButtonPropertyChanged ( |
ShowCloseButtonProperty PropertyChangedCallback call back static function.
|
|
OnTitleStylePropertyChanged ( |
TitleStyle PropertyChangedCallback call back static function.
|
|
Opening_Completed ( object sender, |
Executed when the opening storyboard finishes.
|
|
RestoreButton_Click ( object sender, RoutedEventArgs e ) : void |
Handles the Click event of the RestoreButton control.
|
|
RestoreMaximizedWindow ( ) : void |
Restores maximized window position and size.
|
|
RestoringMaximized_Completed ( object sender, EventArgs e ) : void |
Handles the Completed event of the Restoring Maximized window animation.
|
|
RestoringMinimized_Completed ( object sender, EventArgs e ) : void |
Handles the Completed event of the Restoring Minimized window animation.
|
|
SaveActualSize ( ) : void |
Saves the actual size if it was not set explicitly set. E.g. the Width can be NaN, that means "Auto".
|
|
SaveSizeAndPosition ( ) : void |
Saves current size and position of the window in the IsolatedStorage. The key of the settings is the Tag of the window (if not null).
|
|
SetInitialRootPosition ( ) : void |
Shift the root of the window to compensate its margins.
|
|
SetStyles ( ) : void |
Sets styles that are applied for different template parts.
|
|
SetTopmost ( ) : void |
Brings current window to the front.
|
|
ShowMaximizeButtonPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void |
ShowMaximizeButtonProperty PropertyChangedCallback call back static function.
|
|
ShowMinimizeButtonPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void |
ShowMinimizeButtonProperty PropertyChangedCallback call back static function.
|
|
ShowRestoreButtonPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void |
ShowRestoreButtonProperty PropertyChangedCallback call back static function.
|
|
ShowWindow ( Point point ) : void |
Shows the window in the specified coordinates, relative to the window's Host.
|
|
ShowWindow ( Thickness margins ) : void |
Shows a FloatingWindow at maximal size taking into account specified margins and current FloatingWindowHost size.
|
|
StartMaximizingAnimation ( ) : void |
Starts maximizing animation.
|
|
StartRestoringAnimation ( ) : void |
Starts restoring animation.
|
|
StopInertialMotion ( ) : void |
Stops current inertial motion.
|
|
SubscribeToEvents ( ) : void |
Subscribes to events when the window is opened.
|
|
SubscribeToStoryBoardEvents ( ) : void |
Subscribes to the events on the storyboards.
|
|
SubscribeToTemplatePartEvents ( ) : void |
Subscribes to the events on the template parts.
|
|
UnSubscribeFromEvents ( ) : void |
Unsubscribe from events when the ChildWindow is closed.
|
|
UnsubscribeFromStoryBoardEvents ( ) : void |
Unsubscribe from events that are subscribed on the storyboards.
|
|
UnsubscribeFromTemplatePartEvents ( ) : void |
Unsubscribe from the events that are subscribed on the template part elements.
|
protected OnActivated ( |
||
e | The event data. | |
return | void |
protected OnClosed ( |
||
e | The event data. | |
return | void |
protected OnClosing ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | The event data. |
return | void |
protected OnDeactivated ( |
||
e | The event data. | |
return | void |
protected OnMaximized ( |
||
e | The event data. | |
return | void |
protected OnMinimized ( |
||
e | The event data. | |
return | void |
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | The data for the event. |
return | void |
protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | The data for the event. |
return | void |
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void | ||
e | System.Windows.Input.MouseEventArgs | The data for the event. |
return | void |
protected OnRestored ( |
||
e | The event data. | |
return | void |
public Show ( Point point ) : void | ||
point | Point | Coordinates of the upper-left corner of the window. |
return | void |
public Show ( Thickness margins ) : void | ||
margins | Thickness | Window margins. |
return | void |
public Show ( double x, double y ) : void | ||
x | double | X-coordinate. |
y | double | Y-coordinate. |
return | void |
public static DependencyProperty,System.Windows CloseButtonStyleProperty | ||
return |
public static DependencyProperty,System.Windows FlowDirectionProperty | ||
return |
public static DependencyProperty,System.Windows IconProperty | ||
return |
public static DependencyProperty,System.Windows IconTextProperty | ||
return |
public static DependencyProperty,System.Windows MaximizeButtonStyleProperty | ||
return |
public static DependencyProperty,System.Windows MinimizeButtonStyleProperty | ||
return |
public static DependencyProperty,System.Windows PositionProperty | ||
return |
public static DependencyProperty,System.Windows ResizeEnabledProperty | ||
return |
public static DependencyProperty ResizingAreaThicknessProperty | ||
return | DependencyProperty |
public static DependencyProperty RestoreButtonStyleProperty | ||
return | DependencyProperty |
public static DependencyProperty ShowCloseButtonProperty | ||
return | DependencyProperty |
public static DependencyProperty ShowInIconbarProperty | ||
return | DependencyProperty |
public static DependencyProperty ShowMaximizeButtonProperty | ||
return | DependencyProperty |
public static DependencyProperty ShowMinimizeButtonProperty | ||
return | DependencyProperty |
public static DependencyProperty ShowRestoreButtonProperty | ||
return | DependencyProperty |
public static DependencyProperty TitleBackgroundProperty | ||
return | DependencyProperty |
public static DependencyProperty TitleProperty | ||
return | DependencyProperty |