Represents a Decorator control that can be used on a ribbon control popup directly as a child of a Scroll
- Inheritance:
-
object
Visual
UIElement
Framework
Element Decorator object
Constructors
PopupContentDecorator()
Initializes an instance of the class.
Properties
CanHorizontallyScroll
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Property Value
CanVerticallyScroll
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
Property Value
ExtentHeight
Gets the vertical size of the extent.
Property Value
ExtentWidth
Gets the horizontal size of the extent.
Property Value
HorizontalOffset
Gets the horizontal offset of the scrolled content.
Property Value
ScrollOwner
Gets or sets a Scroll
Property Value
- Scroll
Viewer : A Scroll
Viewer element that controls scrolling behavior. This property has no default value.
VerticalOffset
Gets the vertical offset of the scrolled content.
Property Value
- double:
A double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the Extent
Height minus the ViewportHeight . This property has no default value.
ViewportHeight
Gets the vertical size of the viewport for this content.
Property Value
ViewportWidth
Gets the horizontal size of the viewport for this content.
Property Value
Methods
ArrangeOverride(Size)
Arranges the content of a Decorator element.
Parameter | Type | Description |
---|---|---|
arrangeSize | Size | The System.Windows.Size this element uses to arrange its child content. |
Returns
- Size:
The System.Windows.Size that represents the arranged size of this Decorator element and its child.
LineDown()
Scrolls down within content by one logical unit.
LineLeft()
Scrolls left within content by one logical unit.
LineRight()
Scrolls right within content by one logical unit.
LineUp()
Scrolls up within content by one logical unit.
MakeVisible(Visual, Rect)
Forces content to scroll until the coordinate space of a Visual object is visible.
Parameter | Type | Description |
---|---|---|
visual | Visual | A Visual that becomes visible. |
rectangle | Rect | A bounding rectangle that identifies the coordinate space to make visible. |
Returns
- Rect:
A System.Windows.Rect that is visible.
MeasureOverride(Size)
Measures the child element of a Decorator to prepare for arranging it during the Arrange
Parameter | Type | Description |
---|---|---|
constraint | Size | An upper limit System.Windows.Size that should not be exceeded. |
Returns
- Size:
The target System.Windows.Size of the element.
MouseWheelDown()
Scrolls down within content after a user clicks the wheel button on a mouse.
MouseWheelLeft()
Scrolls left within content after a user clicks the wheel button on a mouse.
MouseWheelRight()
Scrolls right within content after a user clicks the wheel button on a mouse.
MouseWheelUp()
Scrolls up within content after a user clicks the wheel button on a mouse.
PageDown()
Scrolls down within content by one page.
PageLeft()
Scrolls left within content by one page.
PageRight()
Scrolls right within content by one page.
PageUp()
Scrolls up within content by one page.
SetHorizontalOffset(double)
Sets the amount of horizontal offset.
Parameter | Type | Description |
---|---|---|
offset | double | The degree to which content is horizontally offset from the containing viewport. |
SetVerticalOffset(double)
Sets the amount of vertical offset.
Parameter | Type | Description |
---|---|---|
offset | double | The degree to which content is vertically offset from the containing viewport. |
TryUpdateOffset(Point)
Attempts to update the offset.
Parameter | Type | Description |
---|---|---|
offset | Point | The offset. |
Returns
- bool:
true
if the offset was updated; otherwise,false
.
Fields
LineSize
Represents the number of pixels contained in a single line.
WheelScrollLines
Represents the number of lines scroll when using the mouse wheel.