프로퍼티 | 타입 | 설명 | |
---|---|---|---|
IsFadeEnabledProperty | |||
IsOpenProperty | |||
IsZoomEnabledProperty | |||
RegionOfInterestProperty | |||
VerticalOffsetProperty |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AdjustContextMenuPositionForPortraitMode | double | ||
ChildMenuItemClicked | void | ||
ClosePopup | void | ||
FocusNextItem | void | ||
InitializePage | void | ||
InitializeRootVisual | void | ||
OnApplicationBarMirrorChanged | void | ||
OnApplicationBarMirrorChanged | void | ||
OnContextMenuOrRootVisualSizeChanged | void | ||
OnEventThatClosesContextMenu | void | ||
OnIsOpenChanged | void | ||
OnIsOpenChanged | void | ||
OnLayoutUpdated | void | ||
OnOverlayMouseButtonUp | void | ||
OnOwnerHold | void | ||
OnOwnerUnloaded | void | ||
OnPageBackKeyPress | void | ||
OnRootVisualManipulationCompleted | void | ||
OnStoryboardCompleted | void | ||
OnVerticalOffsetChanged | void | ||
OpenPopup | void | ||
PositionIsOnScreenRight | bool | ||
SafeTransformToVisual | System.Windows.Media.GeneralTransform | ||
SetDefaultStyle | void | ||
SetRenderTransform | void | ||
UpdateContextMenuPlacement | void | ||
UpdateVisualStates | void |
메소드 | 설명 | |
---|---|---|
ContextMenu ( ) : System |
Initializes a new instance of the ContextMenu class.
|
|
OnApplyTemplate ( ) : void |
Called when a new Template is applied.
|
메소드 | 설명 | |
---|---|---|
OnClosed ( |
Called when the Closed event occurs.
|
|
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void |
Responds to the KeyDown event.
|
|
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Called when the left mouse button is pressed.
|
|
OnOpened ( |
Called when the Opened event occurs.
|
메소드 | 설명 | |
---|---|---|
AdjustContextMenuPositionForPortraitMode ( |
Adjust the position (Y) of ContextMenu for Portrait Mode.
|
|
ChildMenuItemClicked ( ) : void |
Called when a child MenuItem is clicked.
|
|
ClosePopup ( ) : void |
Closes the Popup.
|
|
FocusNextItem ( bool down ) : void |
Sets focus to the next item in the ContextMenu.
|
|
InitializePage ( ) : void |
Attaches the ContxtMenu's BackKeyPress handler to properly enfore dismissal on back key press.
|
|
InitializeRootVisual ( ) : void |
Initialize the _rootVisual property (if possible and not already done).
|
|
OnApplicationBarMirrorChanged ( |
Handles changes to the ApplicationBarMirror DependencyProperty.
|
|
OnApplicationBarMirrorChanged ( IApplicationBar oldValue, IApplicationBar newValue ) : void |
Handles changes to the ApplicationBarMirror property.
|
|
OnContextMenuOrRootVisualSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void |
Handles the SizeChanged event for the ContextMenu or RootVisual.
|
|
OnEventThatClosesContextMenu ( object sender, |
Handles an event which should close an open ContextMenu.
|
|
OnIsOpenChanged ( |
Handles changes to the IsOpen DependencyProperty.
|
|
OnIsOpenChanged ( bool newValue ) : void |
Handles changes to the IsOpen property.
|
|
OnLayoutUpdated ( object sender, |
Handles the LayoutUpdated event to capture Application.Current.RootVisual.
|
|
OnOverlayMouseButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void |
Handles the MouseButtonUp events for the overlay.
|
|
OnOwnerHold ( object sender, System e ) : void |
Handles the Hold event for the owning element.
|
|
OnOwnerUnloaded ( object sender, |
Handles the Unloaded event of the Owner.
|
|
OnPageBackKeyPress ( object sender, CancelEventArgs e ) : void |
Handles the BackKeyPress of the containing PhoneApplicationPage.
|
|
OnRootVisualManipulationCompleted ( object sender, System.Windows.Input.ManipulationCompletedEventArgs e ) : void |
Handles the ManipulationCompleted event for the RootVisual.
|
|
OnStoryboardCompleted ( object sender, |
Handles the Completed event of the opening Storyboard.
|
|
OnVerticalOffsetChanged ( |
Handles changes to the VerticalOffset DependencyProperty.
|
|
OpenPopup ( Point position ) : void | ||
PositionIsOnScreenRight ( double position ) : bool |
Whether the position is on the right half of the screen. Only supports landscape mode. This is used to determine which side of the screen the context menu will display on.
|
|
SafeTransformToVisual ( UIElement element, UIElement visual ) : System.Windows.Media.GeneralTransform |
Calls TransformToVisual on the specified element for the specified visual, suppressing the ArgumentException that can occur in some cases.
|
|
SetDefaultStyle ( ) : void |
Set up the background and border default styles
|
|
SetRenderTransform ( ) : void | ||
UpdateContextMenuPlacement ( ) : void |
Updates the location and size of the Popup and overlay.
|
|
UpdateVisualStates ( bool useTransitions ) : void |
Uses VisualStateManager to go to the appropriate visual state.
|
protected OnClosed ( |
||
e | Event arguments. | |
리턴 | void |
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | The event data for the KeyDown event. |
리턴 | void |
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | The event data for the MouseLeftButtonDown event. |
리턴 | void |
protected OnOpened ( |
||
e | Event arguments. | |
리턴 | void |
public static DependencyProperty,System.Windows IsFadeEnabledProperty | ||
리턴 |
public static DependencyProperty,System.Windows IsOpenProperty | ||
리턴 |
public static DependencyProperty,System.Windows IsZoomEnabledProperty | ||
리턴 |
public static DependencyProperty,System.Windows RegionOfInterestProperty | ||
리턴 |