C# 클래스 WinRTXamlToolkit.Controls.ToolWindow

상속: Windows.UI.Xaml.Controls.ContentControl
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 프로퍼티들

프로퍼티 타입 설명
CanCloseProperty Windows.UI.Xaml.DependencyProperty
CanDragAnywhereProperty Windows.UI.Xaml.DependencyProperty
CanMaximizeProperty Windows.UI.Xaml.DependencyProperty
CanResizeProperty Windows.UI.Xaml.DependencyProperty
CanSnapToEdgeProperty Windows.UI.Xaml.DependencyProperty
TitleBackgroundBrushProperty Windows.UI.Xaml.DependencyProperty
TitleProperty Windows.UI.Xaml.DependencyProperty
TitleTemplateProperty Windows.UI.Xaml.DependencyProperty
WindowEdgeSnapBehaviorProperty Windows.UI.Xaml.DependencyProperty
WindowMovableAreaEdgeThicknessProperty Windows.UI.Xaml.DependencyProperty
WindowMovableAreaProperty Windows.UI.Xaml.DependencyProperty
WindowStartupLocationProperty Windows.UI.Xaml.DependencyProperty
WindowStateProperty Windows.UI.Xaml.DependencyProperty
XProperty Windows.UI.Xaml.DependencyProperty
YProperty Windows.UI.Xaml.DependencyProperty

공개 메소드들

메소드 설명
ActivateAsync ( ) : System.Threading.Tasks.Task

Activates the window. The method can be awaited to wait for the unsnap animation to complete.

Close ( ) : void

Closes the window.

Hide ( ) : void

Hides the window.

Maximize ( ) : void

Maximizes the window

MinimizeAsync ( ) : System.Threading.Tasks.Task

Minimizes the window.

RestoreAsync ( ) : System.Threading.Tasks.Task

Restores the window

Show ( ) : void

Shows the window.

SnapToEdgeAsync ( ) : System.Threading.Tasks.Task

Snaps to nearest edge.

ToolWindow ( ) : System

Initializes a new instance of the ToolWindow class.

보호된 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnCanCloseChanged ( bool oldCanClose, bool newCanClose ) : void

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

OnCanDragAnywhereChanged ( bool oldCanDragAnywhere, bool newCanDragAnywhere ) : void

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

OnCanMaximizeChanged ( bool oldCanMaximize, bool newCanMaximize ) : void

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

OnCanResizeChanged ( bool oldCanResize, bool newCanResize ) : void

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

OnCanSnapToEdgeChanged ( bool oldCanSnapToEdge, bool newCanSnapToEdge ) : void

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

OnTitleChanged ( object oldTitle, object newTitle ) : void

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

OnTitleTemplateChanged ( DataTemplate oldTitleTemplate, DataTemplate newTitleTemplate ) : void

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

OnWindowEdgeSnapBehaviorChanged ( WindowEdgeSnapBehavior oldWindowEdgeSnapBehavior, WindowEdgeSnapBehavior newWindowEdgeSnapBehavior ) : void

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

OnWindowMovableAreaChanged ( WindowMovableArea oldWindowMovableArea, WindowMovableArea newWindowMovableArea ) : void

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

OnWindowMovableAreaEdgeThicknessChanged ( Thickness oldWindowMovableAreaEdgeThickness, Thickness newWindowMovableAreaEdgeThickness ) : void

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

OnWindowStartupLocationChanged ( WindowStartupLocation oldWindowStartupLocation, WindowStartupLocation newWindowStartupLocation ) : void

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

OnWindowStateChanged ( WindowStates oldWindowState, WindowStates newWindowState ) : void

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

OnXChanged ( double oldX, double newX ) : void

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

OnYChanged ( double oldY, double newY ) : void

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

비공개 메소드들

메소드 설명
AnimateRotatedSnapAsync ( double x, double y, double angle ) : System.Threading.Tasks.Task
AnimateStraightSnapAsync ( double x, double y ) : System.Threading.Tasks.Task
AnimateToStraightenAsync ( ) : System.Threading.Tasks.Task
CleanupSnapProperties ( ) : void
FilterOutManipulations ( UIElement element ) : void
GetDesiredPosition ( double startx, double starty, double &angle, Edges &edge ) : DoublePoint

Calculates the desired position, rotation and snapping edge given the position of the window.

GetMovableArea ( ) : Rect

Gets the range of X,Y window position values acceptable for the window

HookUpEvents ( ) : void
HookUpSizingThumbManipulations ( Rectangle thumb ) : void
InitializeStartupLocation ( ) : void
OnBorderManipulationCompleted ( object sender, ManipulationCompletedRoutedEventArgs e ) : void
OnBorderManipulationDelta ( object sender, ManipulationDeltaRoutedEventArgs e ) : void
OnBorderManipulationInertiaStarting ( object sender, ManipulationInertiaStartingRoutedEventArgs e ) : void
OnBorderManipulationStarting ( object sender, ManipulationStartedRoutedEventArgs e ) : void
OnBorderPointerPressed ( object sender, PointerRoutedEventArgs e ) : void
OnBorderThicknessChanged ( object sender, Thickness thickness ) : void
OnCanCloseChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CanClose property.

OnCanDragAnywhereChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CanDragAnywhere property.

OnCanMaximizeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CanMaximize property.

OnCanResizeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CanResize property.

OnCanSnapToEdgeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CanSnapToEdge property.

OnCloseButtonClick ( object sender, RoutedEventArgs e ) : void
OnFilteredOutManipulationStarted ( object sender, ManipulationStartedRoutedEventArgs e ) : void
OnFilteredOutManipulationStarting ( object sender, ManipulationStartingRoutedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnMaximizeButtonClick ( object sender, RoutedEventArgs e ) : void
OnMinimizeButtonClick ( object sender, RoutedEventArgs e ) : void
OnParentSizeChanged ( object sender, SizeChangedEventArgs e ) : void
OnRestoreButtonClick ( object sender, RoutedEventArgs e ) : void
OnSnapButtonClick ( object sender, RoutedEventArgs e ) : void
OnThumbManipulationDelta ( object sender, ManipulationDeltaRoutedEventArgs e ) : void
OnTitleChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Title property.

OnTitleGridSizeChanged ( object sender, SizeChangedEventArgs e ) : void
OnTitleTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the TitleTemplate property.

OnUnloaded ( object sender, RoutedEventArgs e ) : void
OnWindowEdgeSnapBehaviorChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the WindowEdgeSnapBehavior property.

OnWindowMovableAreaChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the WindowMovableArea property.

OnWindowMovableAreaEdgeThicknessChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the WindowMovableAreaEdgeThickness property.

OnWindowStartupLocationChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the WindowStartupLocation property.

OnWindowStateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the WindowState property.

OnXChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the X property.

OnYChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Y property.

RaiseClosed ( ) : void
RaiseClosing ( ) : bool

Raises the closing event.

SnapToEdgeIfNecessary ( ) : void
StopCurrentSnapStoryboard ( ) : void
UnFilterOutManipulations ( UIElement element ) : void
UnhookEvents ( ) : void
UpdateSizingThumbSizes ( ) : void

Update the sizes of the sizing thumbs.

UpdateVisualStates ( bool useTransitions ) : void

Updates the visual states.

메소드 상세

ActivateAsync() 공개 메소드

Activates the window. The method can be awaited to wait for the unsnap animation to complete.
public ActivateAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

Close() 공개 메소드

Closes the window.
public Close ( ) : void
리턴 void

Hide() 공개 메소드

Hides the window.
public Hide ( ) : void
리턴 void

Maximize() 공개 메소드

Maximizes the window
public Maximize ( ) : void
리턴 void

MinimizeAsync() 공개 메소드

Minimizes the window.
public MinimizeAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

OnApplyTemplate() 보호된 메소드

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected OnApplyTemplate ( ) : void
리턴 void

OnCanCloseChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the CanClose property.
protected OnCanCloseChanged ( bool oldCanClose, bool newCanClose ) : void
oldCanClose bool The old CanClose value
newCanClose bool The new CanClose value
리턴 void

OnCanDragAnywhereChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the CanDragAnywhere property.
protected OnCanDragAnywhereChanged ( bool oldCanDragAnywhere, bool newCanDragAnywhere ) : void
oldCanDragAnywhere bool The old CanDragAnywhere value
newCanDragAnywhere bool The new CanDragAnywhere value
리턴 void

OnCanMaximizeChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the CanMaximize property.
protected OnCanMaximizeChanged ( bool oldCanMaximize, bool newCanMaximize ) : void
oldCanMaximize bool The old CanMaximize value
newCanMaximize bool The new CanMaximize value
리턴 void

OnCanResizeChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the CanResize property.
protected OnCanResizeChanged ( bool oldCanResize, bool newCanResize ) : void
oldCanResize bool The old CanResize value
newCanResize bool The new CanResize value
리턴 void

OnCanSnapToEdgeChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the CanSnapToEdge property.
protected OnCanSnapToEdgeChanged ( bool oldCanSnapToEdge, bool newCanSnapToEdge ) : void
oldCanSnapToEdge bool The old CanSnapToEdge value
newCanSnapToEdge bool The new CanSnapToEdge value
리턴 void

OnTitleChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Title property.
protected OnTitleChanged ( object oldTitle, object newTitle ) : void
oldTitle object The old Title value
newTitle object The new Title value
리턴 void

OnTitleTemplateChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the TitleTemplate property.
protected OnTitleTemplateChanged ( DataTemplate oldTitleTemplate, DataTemplate newTitleTemplate ) : void
oldTitleTemplate Windows.UI.Xaml.DataTemplate The old TitleTemplate value
newTitleTemplate Windows.UI.Xaml.DataTemplate The new TitleTemplate value
리턴 void

OnWindowEdgeSnapBehaviorChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the WindowEdgeSnapBehavior property.
protected OnWindowEdgeSnapBehaviorChanged ( WindowEdgeSnapBehavior oldWindowEdgeSnapBehavior, WindowEdgeSnapBehavior newWindowEdgeSnapBehavior ) : void
oldWindowEdgeSnapBehavior WindowEdgeSnapBehavior The old WindowEdgeSnapBehavior value
newWindowEdgeSnapBehavior WindowEdgeSnapBehavior The new WindowEdgeSnapBehavior value
리턴 void

OnWindowMovableAreaChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the WindowMovableArea property.
protected OnWindowMovableAreaChanged ( WindowMovableArea oldWindowMovableArea, WindowMovableArea newWindowMovableArea ) : void
oldWindowMovableArea WindowMovableArea The old WindowMovableArea value
newWindowMovableArea WindowMovableArea The new WindowMovableArea value
리턴 void

OnWindowMovableAreaEdgeThicknessChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the WindowMovableAreaEdgeThickness property.
protected OnWindowMovableAreaEdgeThicknessChanged ( Thickness oldWindowMovableAreaEdgeThickness, Thickness newWindowMovableAreaEdgeThickness ) : void
oldWindowMovableAreaEdgeThickness Windows.UI.Xaml.Thickness The old WindowMovableAreaEdgeThickness value
newWindowMovableAreaEdgeThickness Windows.UI.Xaml.Thickness The new WindowMovableAreaEdgeThickness value
리턴 void

OnWindowStartupLocationChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the WindowStartupLocation property.
protected OnWindowStartupLocationChanged ( WindowStartupLocation oldWindowStartupLocation, WindowStartupLocation newWindowStartupLocation ) : void
oldWindowStartupLocation WindowStartupLocation The old WindowStartupLocation value
newWindowStartupLocation WindowStartupLocation The new WindowStartupLocation value
리턴 void

OnWindowStateChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the WindowState property.
protected OnWindowStateChanged ( WindowStates oldWindowState, WindowStates newWindowState ) : void
oldWindowState WindowStates The old WindowState value
newWindowState WindowStates The new WindowState value
리턴 void

OnXChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the X property.
protected OnXChanged ( double oldX, double newX ) : void
oldX double The old X value
newX double The new X value
리턴 void

OnYChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the Y property.
protected OnYChanged ( double oldY, double newY ) : void
oldY double The old Y value
newY double The new Y value
리턴 void

RestoreAsync() 공개 메소드

Restores the window
public RestoreAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

Show() 공개 메소드

Shows the window.
public Show ( ) : void
리턴 void

SnapToEdgeAsync() 공개 메소드

Snaps to nearest edge.
public SnapToEdgeAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ToolWindow() 공개 메소드

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

프로퍼티 상세

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

CanClose Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanCloseProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

CanDragAnywhere Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanDragAnywhereProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

CanMaximize Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanMaximizeProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

CanResize Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanResizeProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

CanSnapToEdge Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanSnapToEdgeProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

TitleBackgroundBrush Dependency Property
public static DependencyProperty,Windows.UI.Xaml TitleBackgroundBrushProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

Title Dependency Property
public static DependencyProperty,Windows.UI.Xaml TitleProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

TitleTemplate Dependency Property
public static DependencyProperty,Windows.UI.Xaml TitleTemplateProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

WindowEdgeSnapBehavior Dependency Property
public static DependencyProperty,Windows.UI.Xaml WindowEdgeSnapBehaviorProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

WindowMovableAreaEdgeThickness Dependency Property
public static DependencyProperty,Windows.UI.Xaml WindowMovableAreaEdgeThicknessProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

WindowMovableArea Dependency Property
public static DependencyProperty,Windows.UI.Xaml WindowMovableAreaProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

WindowStartupLocation Dependency Property
public static DependencyProperty,Windows.UI.Xaml WindowStartupLocationProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

WindowState Dependency Property
public static DependencyProperty,Windows.UI.Xaml WindowStateProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

X Dependency Property
public static DependencyProperty,Windows.UI.Xaml XProperty
리턴 Windows.UI.Xaml.DependencyProperty

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

Y Dependency Property
public static DependencyProperty,Windows.UI.Xaml YProperty
리턴 Windows.UI.Xaml.DependencyProperty