ResizablePopupContentHost Class
Represents a control intended for use within a popup that can host child content and apply drag-resizing to the nested DragResizableControl.
[TemplatePart(Name = "PART_ResizeGrip", Type = typeof(PopupResizeGrip))]
public class ResizablePopupContentHost : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
ResizablePopupContentHost()
Initializes an instance of the class.
public ResizablePopupContentHost()
Properties
Child
The child UIElement to host in the control.
CornerRadius
The CornerRadius for the control's border.
DragResizableControl
The primary IDragResizableControl within the control's hierarchy, which can handle resizing requests.
public IDragResizableControl? DragResizableControl { get; set; }
Property Value
HandlesScrolling
Gets a value that indicates whether a control supports scrolling.
protected override bool HandlesScrolling { get; }
Property Value
- bool:
trueif the control has a ScrollViewer in its style and has a custom keyboard scrolling behavior; otherwise,false.
IsTopLevelMenuPopup
Indicates whether the popup is for a top-level menu.
public bool IsTopLevelMenuPopup { get; set; }
Property Value
- bool:
trueif the popup is for a top-level menu; otherwise,false.
RequestedMinWidth
The requested minimum width.
ResizeMode
A ControlResizeMode indicating the resize mode.
public ControlResizeMode ResizeMode { get; set; }
Property Value
- ControlResizeMode:
The default value is None
Methods
MeasureOverride(Size)
Called to remeasure a control.
protected override Size MeasureOverride(Size constraint)
| Parameter | Type | Description |
|---|---|---|
| constraint | Size | The maximum size that the method can return. |
Returns
- Size:
The size of the control, up to the maximum specified by
constraint.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnPropertyChanged(DependencyPropertyChangedEventArgs)
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. Overrides System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs).
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | DependencyPropertyChangedEventArgs | The event data that describes the property that changed, as well as old and new values. |
Fields
ChildProperty
Defines the Child property.
public static readonly DependencyProperty ChildProperty
CornerRadiusProperty
Defines the CornerRadius property.
public static readonly DependencyProperty CornerRadiusProperty
DragResizableControlProperty
Defines the DragResizableControl property.
public static readonly DependencyProperty DragResizableControlProperty
IsTopLevelMenuPopupProperty
Defines the IsTopLevelMenuPopup property.
public static readonly DependencyProperty IsTopLevelMenuPopupProperty
RequestedMinWidthProperty
Defines the RequestedMinWidth property.
public static readonly DependencyProperty RequestedMinWidthProperty
ResizeModeProperty
Defines the ResizeMode property.
public static readonly DependencyProperty ResizeModeProperty