C# 클래스 SilverFlow.Controls.FloatingWindow

상속: System.Windows.Controls.ContentControl, IResizableElement, IDisposable
파일 보기 프로젝트 열기: Zoomicon/ZUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CloseButtonStyleProperty System.Windows.DependencyProperty
FlowDirectionProperty System.Windows.DependencyProperty
IconProperty System.Windows.DependencyProperty
IconTextProperty System.Windows.DependencyProperty
MaximizeButtonStyleProperty System.Windows.DependencyProperty
MinimizeButtonStyleProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
ResizeEnabledProperty System.Windows.DependencyProperty
ResizingAreaThicknessProperty DependencyProperty
RestoreButtonStyleProperty DependencyProperty
ShowCloseButtonProperty DependencyProperty
ShowInIconbarProperty DependencyProperty
ShowMaximizeButtonProperty DependencyProperty
ShowMinimizeButtonProperty DependencyProperty
ShowRestoreButtonProperty DependencyProperty
TitleBackgroundProperty DependencyProperty
TitleProperty DependencyProperty
TitleStyleProperty DependencyProperty

Private Properties

프로퍼티 타입 설명
ActiveWindowChanged void
Application_Exit void
CaptureMouseCursor void
CheckHost void
CloseButton_Click void
Closing_Completed void
ContentRoot_SizeChanged void
EnsureVisible void
FloatingWindow_MouseLeftButtonDown void
GetAppSettingsKey string
GetCurrentWindowPosition Point
GetStoryboards void
GetThumbnailImage ImageSource
Host_SizeChanged void
InertialMotion_Completed void
InitializeContentRootTransformGroup void
IsMouseOverButtons bool
MaximizeButton_Click void
Maximizing_Completed void
MinimizeButton_Click void
MoveWindow void
OnCloseButtonStylePropertyChanged void
OnMaximizeButtonStylePropertyChanged void
OnMinimizeButtonStylePropertyChanged void
OnPositionPropertyChanged void
OnResizingAreaThicknessPropertyChanged void
OnRestoreButtonStylePropertyChanged void
OnShowCloseButtonPropertyChanged void
OnTitleStylePropertyChanged void
Opening_Completed void
RestoreButton_Click void
RestoreMaximizedWindow void
RestoringMaximized_Completed void
RestoringMinimized_Completed void
SaveActualSize void
SaveSizeAndPosition void
SetInitialRootPosition void
SetStyles void
SetTopmost void
ShowMaximizeButtonPropertyChanged void
ShowMinimizeButtonPropertyChanged void
ShowRestoreButtonPropertyChanged void
ShowWindow void
ShowWindow void
StartMaximizingAnimation void
StartRestoringAnimation void
StopInertialMotion void
SubscribeToEvents void
SubscribeToStoryBoardEvents void
SubscribeToTemplatePartEvents void
UnSubscribeFromEvents void
UnsubscribeFromStoryBoardEvents void
UnsubscribeFromTemplatePartEvents void

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
OnActivated ( EventArgs e ) : void

Raises the FloatingWindow.Activated event.

OnClosed ( EventArgs e ) : void

Raises the FloatingWindow.Closed event.

OnClosing ( CancelEventArgs e ) : void

Raises the FloatingWindow.Closing event.

OnDeactivated ( EventArgs e ) : void

Raises the FloatingWindow.Deactivated event.

OnMaximized ( EventArgs e ) : void

Raises the FloatingWindow.Maximized event.

OnMinimized ( EventArgs e ) : void

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 ( EventArgs e ) : void

Raises the FloatingWindow.Restored event.

비공개 메소드들

메소드 설명
ActiveWindowChanged ( object sender, ActiveWindowChangedEventArgs e ) : void

Handles the ActiveWindowChanged event of the Host control.

Application_Exit ( object sender, EventArgs e ) : void

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, RoutedEventArgs e ) : void

Executed when the Close button is clicked.

Closing_Completed ( object sender, EventArgs e ) : void

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, EventArgs e ) : void

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, RoutedEventArgs e ) : void

Handles the Click event of the MaximizeButton control.

Maximizing_Completed ( object sender, EventArgs e ) : void

Handles the Completed event of the Maximizing animation.

MinimizeButton_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the MinimizeButton control.

MoveWindow ( Point point ) : void

Moves the window to the specified coordinates.

OnCloseButtonStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

CloseButtonStyle PropertyChangedCallback call back static function.

OnMaximizeButtonStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

MaximizeButtonStyle PropertyChangedCallback call back static function.

OnMinimizeButtonStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

CloseButtonStyle PropertyChangedCallback call back static function.

OnPositionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

PositionProperty PropertyChangedCallback call back static function.

OnResizingAreaThicknessPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

ResizingAreaThicknessProperty PropertyChangedCallback call back static function.

OnRestoreButtonStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

RestoreButtonStyle PropertyChangedCallback call back static function.

OnShowCloseButtonPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

ShowCloseButtonProperty PropertyChangedCallback call back static function.

OnTitleStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

TitleStyle PropertyChangedCallback call back static function.

Opening_Completed ( object sender, EventArgs e ) : void

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.

메소드 상세

Activate() 공개 메소드

Makes the window topmost and tries to set focus on it.
public Activate ( ) : void
리턴 void

Close() 공개 메소드

Closes a FloatingWindow.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

FloatingWindow() 공개 메소드

Initializes a new instance of the FloatingWindow class.
public FloatingWindow ( ) : System
리턴 System

MaximizeWindow() 공개 메소드

Maximizes the window.
public MaximizeWindow ( ) : void
리턴 void

MinimizeWindow() 공개 메소드

Minimizes the window.
public MinimizeWindow ( ) : void
리턴 void

OnActivated() 보호된 메소드

Raises the FloatingWindow.Activated event.
protected OnActivated ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

OnApplyTemplate() 공개 메소드

Builds the visual tree for the FloatingWindow control when a new template is applied.
public OnApplyTemplate ( ) : void
리턴 void

OnClosed() 보호된 메소드

Raises the FloatingWindow.Closed event.
protected OnClosed ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

OnClosing() 보호된 메소드

Raises the FloatingWindow.Closing event.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs The event data.
리턴 void

OnDeactivated() 보호된 메소드

Raises the FloatingWindow.Deactivated event.
protected OnDeactivated ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

OnMaximized() 보호된 메소드

Raises the FloatingWindow.Maximized event.
protected OnMaximized ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

OnMinimized() 보호된 메소드

Raises the FloatingWindow.Minimized event.
protected OnMinimized ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

Executed when mouse left button is down.
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The data for the event.
리턴 void

OnMouseLeftButtonUp() 보호된 메소드

Executed when mouse left button is up.
protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The data for the event.
리턴 void

OnMouseMove() 보호된 메소드

Executed when mouse moves.
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs The data for the event.
리턴 void

OnOpened() 보호된 메소드

This method is called every time a FloatingWindow is displayed.
protected OnOpened ( ) : void
리턴 void

OnRestored() 보호된 메소드

Raises the FloatingWindow.Restored event.
protected OnRestored ( EventArgs e ) : void
e System.EventArgs The event data.
리턴 void

RestoreSizeAndPosition() 공개 메소드

Restores the size and position stored in the IsolatedStorage on closing.
public RestoreSizeAndPosition ( ) : void
리턴 void

RestoreWindow() 공개 메소드

Restores window state, size and its position.
public RestoreWindow ( ) : void
리턴 void

Show() 공개 메소드

Opens the FloatingWindow in previously saved position or in the center of the FloatingWindowHost.
public Show ( ) : void
리턴 void

Show() 공개 메소드

Shows the window in the specified coordinates, relative to the window's Host.
public Show ( Point point ) : void
point Point Coordinates of the upper-left corner of the window.
리턴 void

Show() 공개 메소드

Shows a FloatingWindow at maximal size taking into account specified margins and current FloatingWindowHost size.
public Show ( Thickness margins ) : void
margins Thickness Window margins.
리턴 void

Show() 공개 메소드

Shows the window in the specified coordinates, relative to the window's Host.
public Show ( double x, double y ) : void
x double X-coordinate.
y double Y-coordinate.
리턴 void

ShowModal() 공개 메소드

Shows the window as a modal one.
public ShowModal ( ) : void
리턴 void

프로퍼티 상세

CloseButtonStyleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.CloseButtonStyleProperty dependency property.
public static DependencyProperty,System.Windows CloseButtonStyleProperty
리턴 System.Windows.DependencyProperty

FlowDirectionProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.FlowDirection dependency property.
public static DependencyProperty,System.Windows FlowDirectionProperty
리턴 System.Windows.DependencyProperty

IconProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.Icon dependency property.
public static DependencyProperty,System.Windows IconProperty
리턴 System.Windows.DependencyProperty

IconTextProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.IconText dependency property.
public static DependencyProperty,System.Windows IconTextProperty
리턴 System.Windows.DependencyProperty

MaximizeButtonStyleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.MaximizeButtonStyleProperty dependency property.
public static DependencyProperty,System.Windows MaximizeButtonStyleProperty
리턴 System.Windows.DependencyProperty

MinimizeButtonStyleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.MinimizeButtonStyleProperty dependency property.
public static DependencyProperty,System.Windows MinimizeButtonStyleProperty
리턴 System.Windows.DependencyProperty

PositionProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.Position dependency property.
public static DependencyProperty,System.Windows PositionProperty
리턴 System.Windows.DependencyProperty

ResizeEnabledProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ResizeEnabled dependency property.
public static DependencyProperty,System.Windows ResizeEnabledProperty
리턴 System.Windows.DependencyProperty

ResizingAreaThicknessProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ResizingAreaThickness dependency property.
public static DependencyProperty ResizingAreaThicknessProperty
리턴 DependencyProperty

RestoreButtonStyleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.RestoreButtonStyleProperty dependency property.
public static DependencyProperty RestoreButtonStyleProperty
리턴 DependencyProperty

ShowCloseButtonProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ShowCloseButton dependency property.
public static DependencyProperty ShowCloseButtonProperty
리턴 DependencyProperty

ShowInIconbarProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ShowInIconbar dependency property.
public static DependencyProperty ShowInIconbarProperty
리턴 DependencyProperty

ShowMaximizeButtonProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ShowMaximizeButton dependency property.
public static DependencyProperty ShowMaximizeButtonProperty
리턴 DependencyProperty

ShowMinimizeButtonProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ShowMinimizeButton dependency property.
public static DependencyProperty ShowMinimizeButtonProperty
리턴 DependencyProperty

ShowRestoreButtonProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.ShowRestoreButton dependency property.
public static DependencyProperty ShowRestoreButtonProperty
리턴 DependencyProperty

TitleBackgroundProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.TitleBackground dependency property.
public static DependencyProperty TitleBackgroundProperty
리턴 DependencyProperty

TitleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.Title dependency property.
public static DependencyProperty TitleProperty
리턴 DependencyProperty

TitleStyleProperty 공개적으로 정적으로 프로퍼티

Identifies the FloatingWindow.TitleStyleProperty dependency property.
public static DependencyProperty TitleStyleProperty
리턴 DependencyProperty