Windows forms popup control


















Invoked when an unhandled MouseLeave attached event is raised on this element. Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element.

Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class.

Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Invoked when an unhandled MouseUp routed event reaches an element in its route that is derived from this class. Invoked when an unhandled MouseWheel attached event reaches an element in its route that is derived from this class.

Responds to the condition in which the value of the IsOpen property changes from false to true. Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element. Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element. Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class. Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class.

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing. Raises the SizeChanged event, using the specified information as part of the eventual event data.

Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusEnter attached event is raised by this element. Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusLeave attached event is raised by this element.

Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled TextInput attached event reaches an element in its route that is derived from this class.

Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. Invoked whenever the ToolTipOpening routed event reaches this class in its route. Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element. Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element. Called when the VisualCollection of the visual object is modified. Invoked when the parent of this element in the visual tree is changed. Supports incremental layout implementations in specialized subclasses of FrameworkElement.

ParentLayoutInvalidated UIElement is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout. Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided as the RoutedEvent property of that event data. Provides an accessor that simplifies access to the NameScope registration method.

Removes the provided object from this element's logical tree. FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion. Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

Searches for a resource with the specified name and sets up a resource reference to it for the specified property. Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class. Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. Returns whether serialization processes should serialize the contents of the Resources property.

Returns whether serialization processes should serialize the contents of the Style property. Returns whether serialization processes should serialize the contents of the Triggers property. Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object. Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. Translates a point relative to this element to coordinates that are relative to the specified element. Simplifies access to the NameScope de-registration method. Reapplies the default style to the current FrameworkElement. Enforces that the calling thread has access to this DispatcherObject.

Occurs when the IsOpen property changes to false. Occurs when the input system reports an underlying drag event with this element as the drag target.

Occurs when the input system reports an underlying drag event with this element as the drag origin. Occurs when the input system reports an underlying drag event with this element as the potential drop target. Occurs when the input system reports an underlying drop event with this element as the drop target.

Occurs when the value of the Focusable property changes. Occurs when the input system reports an underlying drag-and-drop event that involves this element. Occurs when this FrameworkElement is initialized. This event coincides with cases where the value of the IsInitialized property changes from false or undefined to true. Occurs when the value of the IsEnabled property on this element changes. Occurs when the value of the IsHitTestVisible dependency property changes on this element.

Occurs when the value of the IsKeyboardFocused property changes on this element. Occurs when the value of the IsKeyboardFocusWithin property changes on this element. Occurs when the value of the IsMouseCaptured property changes on this element. Occurs when the value of the IsMouseDirectlyOver property changes on this element. Occurs when the value of the IsStylusCaptured property changes on this element.

Occurs when the value of the IsStylusCaptureWithin property changes on this element. Occurs when the value of the IsStylusDirectlyOver property changes on this element. Occurs when the value of the IsVisible property changes on this element.

Occurs when the layout of the various visual elements associated with the current Dispatcher changes. Occurs when a manipulation and inertia on the UIElement object is complete. Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

Occurs when an input device begins a manipulation on the UIElement object. Occurs when the IsOpen property changes to true. Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position. Occurs when BringIntoView Rect is called on this element.

Occurs when either the ActualHeight or the ActualWidth properties change value on this element. Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. This member supports the WPF infrastructure and is not intended to be used directly from your code. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.

Popup Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Primitives Assembly: PresentationFramework. Represents a pop-up window that has content.

LocalizabilityAttribute ContentPropertyAttribute. In this article. Gets the rendered height of this element. Inherited from FrameworkElement.

Gets the rendered width of this element. Inherited from UIElement. Gets a value that indicates whether at least one touch is captured to this element. Gets a value that indicates whether at least one touch is pressed over this element. Gets or sets the cursor that displays when the mouse pointer is over this element. Gets or sets the data context for an element when it participates in data binding. Inherited from DependencyObject. Gets the size that this element computed during the measure pass of the layout process.

Inherited from DispatcherObject. Gets a value indicating whether this element has any animated properties. Gets or sets the suggested height of the element. Get or sets the horizontal distance between the target origin and the popup alignment point. Gets the collection of input bindings associated with this element. Gets a value indicating whether this element has keyboard focus. Gets a value that indicates whether this element has been loaded for presentation.

Gets a value indicating whether the current size returned by layout measure is valid. Gets a value that indicates whether this instance is currently sealed read-only. Gets or sets the outer margin of an element.

Gets or sets the maximum height constraint of the element. Gets or sets the maximum width constraint of the element. Gets or sets the minimum height constraint of the element. Gets or sets the minimum width constraint of the element.

Gets the logical parent element of this element. Gets a value that uniquely identifies this element. Gets or sets the final render size of this element. Gets or sets the locally-defined resource dictionary. Gets or sets the style used by this element when it is rendered.

Gets a collection of all stylus plug-in customization objects associated with this element. Gets or sets the tool-tip object that is displayed for this element in the user interface UI. Gets all touch devices that are captured to this element. Gets all touch devices that are over this element. Gets all touch devices that are over this element or any child elements in its visual tree. Gets the collection of triggers established directly on this element, or in child elements.

Gets or sets the vertical distance between the target origin and the popup alignment point. Gets or sets the user interface UI visibility of this element. Inherited from Visual. To specify the minimum and maximum size of the content control, please use the following properties:. The System. ComboBox class behaves in a strange way when it is on a popup control. It closes the popup control when the user clicks on a part of the combobox's dropdown that sticks out of a popup.

So, I have created a PopupControl. ComboBox class that behaves properly. Animation is enabled by default. Copy Code. Size , 96 ; this. Size , ; this. ShowPopup Point. RichTextBox 'Initializing Me. PopupControlContainer Me. Button Me. Add Me. Point 33 , 58 Me.

Size , ' button1 Me. Point 13 , 29 Me. Size , 35 Me. Point 12 , 12 Me. Size , 96 Me. Size , Me. Empty End Sub. HidePopup ;. Empty 'Hide the pop-up Me. Help us improve this page Correct inaccurate or outdated content Please provide additional information.



0コメント

  • 1000 / 1000