Développer Réduire

ScrollViewer Class

Représente une zone défilante qui peut contenir d'autres éléments visibles.

Héritage

Object
  DependencyObject
    UIElement
      FrameworkElement
        Control
          ContentControl
            ScrollViewer

Syntaxe


public sealed class ScrollViewer : ContentControl


<ScrollViewer .../>
-or-
<ScrollViewer ...>
content
</ScrollViewer>

Attributs

ActivatableAttribute(NTDDI_WIN8)
MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.UI.Xaml.Controls.IScrollViewerStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)
WebHostHiddenAttribute()

Membres

ScrollViewerClasse comporte les types de membres suivants :

Constructeurs

ScrollViewerClasse comporte les constructeurs suivants.

ConstructeurDescription
ScrollViewer Initializes a new instance of the ScrollViewer class.

 

Événements

ScrollViewerClasse comporte les événements suivants.

ÉvénementDescription
DoubleTapped Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of this element. (Hérité de UIElement)
DragEnter Occurs when the input system reports an underlying drag event with this element as the target. (Hérité de UIElement)
DragLeave Occurs when the input system reports an underlying drag event with this element as the origin. (Hérité de UIElement)
DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target. (Hérité de UIElement)
Drop Occurs when the input system reports an underlying drop event with this element as the drop target. (Hérité de UIElement)
GotFocus Occurs when a UIElement receives focus. (Hérité de UIElement)
Holding Occurs when an otherwise unhandled Hold interaction occurs over the hit test area of this element. (Hérité de UIElement)
IsEnabledChanged Occurs when the IsEnabled property changes. (Hérité de Control)
KeyDown Occurs when a keyboard key is pressed while the UIElement has focus. (Hérité de UIElement)
KeyUp Occurs when a keyboard key is released while the UIElement has focus. (Hérité de UIElement)
LayoutUpdated Occurs when the layout of the visual tree changes. (Hérité de FrameworkElement)
Loaded Occurs when a FrameworkElement has been constructed and added to the object tree, and is ready for interaction. (Hérité de FrameworkElement)
LostFocus Occurs when a UIElement loses focus. (Hérité de UIElement)
ManipulationCompleted Occurs when a manipulation on the UIElement is complete. (Hérité de UIElement)
ManipulationDelta Occurs when the input device changes position during a manipulation. (Hérité de UIElement)
ManipulationInertiaStarting Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. (Hérité de UIElement)
ManipulationStarted Occurs when an input device begins a manipulation on the UIElement. (Hérité de UIElement)
ManipulationStarting Occurs when the manipulation processor is first created. (Hérité de UIElement)
PointerCanceled Occurs when a pointer that made contact abnormally loses contact. (Hérité de UIElement)
PointerCaptureLost Occurs when pointer capture previously held by this element moves to another element or elsewhere. (Hérité de UIElement)
PointerEntered Occurs when a pointer enters the hit test area of this element. (Hérité de UIElement)
PointerExited Occurs when a pointer leaves the hit test area of this element. (Hérité de UIElement)
PointerMoved Occurs when a pointer moves while the pointer remains within the hit test area of this element. (Hérité de UIElement)
PointerPressed Occurs when the pointer device initiates a Press action within this element. (Hérité de UIElement)
PointerReleased Occurs when the pointer device that previously initiated a Press action is released, while within this element. (Hérité de UIElement)
PointerWheelChanged Occurs when the delta value of a pointer wheel changes. (Hérité de UIElement)
RightTapped Occurs when a right-tap input stimulus happens while the pointer is over the element. (Hérité de UIElement)
SizeChanged Occurs when either the ActualHeight or the ActualWidth property changes value on a FrameworkElement. (Hérité de FrameworkElement)
Tapped Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element. (Hérité de UIElement)
Unloaded Occurs when this object is no longer connected to the main object tree. (Hérité de FrameworkElement)
ViewChanged Occurs when manipulations that affect the view raise an underlying event.

 

Méthodes

The ScrollViewer Classe comporte les méthodes suivantes. Il hérite également des méthodes de Object Classe.

MéthodeDescription
AddHandler Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere. (Hérité de UIElement)
ApplyTemplate Loads the relevant control template so that its parts can be referenced. (Hérité de Control)
Arrange Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update. (Hérité de UIElement)
ArrangeOverride Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior. (Hérité de FrameworkElement)
CapturePointer Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events. (Hérité de UIElement)
ClearValue Clears the local value of a dependency property. (Hérité de DependencyObject)
FindName Retrieves an object that has the specified identifier name. (Hérité de FrameworkElement)
FindSubElementsForTouchTargeting Enables a UIElement subclass to expose child elements that assist with resolving touch targeting. (Hérité de UIElement)
Focus Attempts to set the focus on the control. (Hérité de Control)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Hérité de DependencyObject)
GetBringIntoViewOnFocusChange Gets the value of the BringIntoViewOnFocusChange dependency property / ScrollViewer.BringIntoViewOnFocusChange XAML attached property from a specified element.
GetHorizontalScrollBarVisibility Gets the value of the HorizontalScrollBarVisibility dependency property / ScrollViewer.HorizontalScrollBarVisibility XAML attached property from a specified element.
GetHorizontalScrollMode Gets the value of the HorizontalScrollMode dependency property / ScrollViewer.HorizontalScrollMode XAML attached property from a specified element.
GetIsDeferredScrollingEnabled Gets the value of the IsDeferredScrollingEnabled dependency property / ScrollViewer.IsDeferredScrollingInertiaEnabled XAML attached property from a specified element.
GetIsHorizontalRailEnabled Gets the value of the IsHorizontalRailEnabled dependency property / ScrollViewer.IsHorizontalRailEnabled XAML attached property from a specified element.
GetIsHorizontalScrollChainingEnabled Gets the value of the IsHorizontalScrollChainingEnabled dependency property / ScrollViewer.IsHorizontalScrollChainingEnabled XAML attached property from a specified element.
GetIsScrollInertiaEnabled Gets the value of the IsScrollInertiaEnabled dependency property / ScrollViewer.IsScrollInertiaEnabled XAML attached property from a specified element.
GetIsVerticalRailEnabled Gets the value of the IsVerticalRailEnabled dependency property / ScrollViewer.IsVerticalRailEnabled XAML attached property from a specified element.
GetIsVerticalScrollChainingEnabled Gets the value of the IsVerticalScrollChainingEnabled dependency property / ScrollViewer.IsVerticalScrollChainingEnabled XAML attached property from a specified element.
GetIsZoomChainingEnabled Gets the value of the IsZoomChainingEnabled dependency property / ScrollViewer.IsZoomChainingEnabled XAML attached property from a specified element.
GetIsZoomInertiaEnabled Gets the value of the IsZoomInertiaEnabled dependency property / ScrollViewer.IsZoomInertiaEnabled XAML attached property from a specified element.
GetTemplateChild Retrieves the named element in the instantiated ControlTemplate visual tree. (Hérité de Control)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Hérité de DependencyObject)
GetVerticalScrollBarVisibility Gets the value of the VerticalScrollBarVisibility dependency property / ScrollViewer.VerticalScrollBarVisibility XAML attached property from a specified element.
GetVerticalScrollMode Gets the value of the VerticalScrollMode dependency property / ScrollViewer.VerticalScrollMode XAML attached property from a specified element.
GetZoomMode Gets the value of the ZoomMode dependency property / ScrollViewer.ZoomMode XAML attached property from a specified element.
InvalidateArrange Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously. (Hérité de UIElement)
InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (Hérité de UIElement)
InvalidateScrollInfo Called when the value of properties that describe the size and location of the scroll area change.
Measure Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update. (Hérité de UIElement)
MeasureOverride Provides the behavior for the Measure pass of the layout cycle. Classes can override this method to define their own Measure pass behavior. (Hérité de FrameworkElement)
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. (Hérité de FrameworkElement)
OnContentChanged Invoked when the value of the Content property changes. (Hérité de ContentControl)
OnContentTemplateChanged Invoked when the value of the ContentTemplate property changes. (Hérité de ContentControl)
OnContentTemplateSelectorChanged Invoked when the value of the ContentTemplateSelector property changes. (Hérité de ContentControl)
OnCreateAutomationPeer When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. (Hérité de UIElement)
OnDisconnectVisualChildren Override this method to implement how layout and logic should behave when items are removed from a class-specific content or children property. (Hérité de UIElement)
OnDoubleTapped Called before the DoubleTapped event occurs. (Hérité de Control)
OnDragEnter Called before the DragEnter event occurs. (Hérité de Control)
OnDragLeave Called before the DragLeave event occurs. (Hérité de Control)
OnDragOver Called before the DragOver event occurs. (Hérité de Control)
OnDrop Called before the Drop event occurs. (Hérité de Control)
OnGotFocus Called before the GotFocus event occurs. (Hérité de Control)
OnHolding Called before the Holding event occurs. (Hérité de Control)
OnKeyDown Called before the KeyDown event occurs. (Hérité de Control)
OnKeyUp Called before the KeyUp event occurs. (Hérité de Control)
OnLostFocus Called before the LostFocus event occurs. (Hérité de Control)
OnManipulationCompleted Called before the ManipulationCompleted event occurs. (Hérité de Control)
OnManipulationDelta Called before the ManipulationDelta event occurs. (Hérité de Control)
OnManipulationInertiaStarting Called before the ManipulationInertiaStarting event occurs. (Hérité de Control)
OnManipulationStarted Called before the ManipulationStarted event occurs. (Hérité de Control)
OnManipulationStarting Called before the ManipulationStarting event occurs. (Hérité de Control)
OnPointerCanceled Called before the PointerCanceled event occurs. (Hérité de Control)
OnPointerCaptureLost Called before the PointerCaptureLost event occurs. (Hérité de Control)
OnPointerEntered Called before the PointerEntered event occurs. (Hérité de Control)
OnPointerExited Called before the PointerExited event occurs. (Hérité de Control)
OnPointerMoved Called before the PointerMoved event occurs. (Hérité de Control)
OnPointerPressed Called before the PointerPressed event occurs. (Hérité de Control)
OnPointerReleased Called before the PointerReleased event occurs. (Hérité de Control)
OnPointerWheelChanged Called before the PointerWheelChanged event occurs. (Hérité de Control)
OnRightTapped Called before the RightTapped event occurs. (Hérité de Control)
OnTapped Called before the Tapped event occurs. (Hérité de Control)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Hérité de DependencyObject)
ReleasePointerCapture Releases pointer captures for capture of one specific pointer by this UIElement. (Hérité de UIElement)
ReleasePointerCaptures Releases all pointer captures held by this element. (Hérité de UIElement)
RemoveHandler Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler. (Hérité de UIElement)
ScrollToHorizontalOffset Scrolls the content that is within the ScrollViewer to the specified horizontal offset position.
ScrollToVerticalOffset Scrolls the content that is within the ScrollViewer to the specified vertical offset position.
SetBinding Attaches a binding to a FrameworkElement, using the provided binding object. (Hérité de FrameworkElement)
SetBringIntoViewOnFocusChange Sets the value of the BringIntoViewOnFocusChange dependency property / ScrollViewer.BringIntoViewOnFocusChange XAML attached property on a specified element.
SetHorizontalScrollBarVisibility Sets the value of the HorizontalScrollBarVisibility dependency property / ScrollViewer.HorizontalScrollBarVisibility XAML attached property on a specified element.
SetHorizontalScrollMode Sets the value of the HorizontalScrollMode dependency property / ScrollViewer.HorizontalScrollMode XAML attached property on a specified element.
SetIsDeferredScrollingEnabled Sets the value of the IsDeferredScrollingEnabled dependency property / ScrollViewer.IsDeferredScrollingEnabled XAML attached property on a specified element.
SetIsHorizontalRailEnabled Sets the value of the IsHorizontalRailEnabled dependency property / ScrollViewer.IsHorizontalRailEnabled XAML attached property on a specified element.
SetIsHorizontalScrollChainingEnabled Sets the value of the IsHorizontalScrollChainingEnabled dependency property / ScrollViewer.IsHorizontalScrollChainingEnabled XAML attached property on a specified element.
SetIsScrollInertiaEnabled Sets the value of the IsScrollInertiaEnabled dependency property / ScrollViewer.IsScrollInertiaEnabled XAML attached property on a specified element.
SetIsVerticalRailEnabled Sets the value of the IsVerticalRailEnabled dependency property / ScrollViewer.IsVerticalRailEnabled XAML attached property on a specified element.
SetIsVerticalScrollChainingEnabled Sets the value of the IsVerticalScrollChainingEnabled dependency property / ScrollViewer.IsVerticalScrollChainingEnabled XAML attached property on a specified element.
SetIsZoomChainingEnabled Sets the value of the IsZoomChainingEnabled dependency property / ScrollViewer.IsZoomChainingEnabled XAML attached property on a specified element.
SetIsZoomInertiaEnabled Sets the value of the IsZoomInertiaEnabled dependency property / ScrollViewer.IsZoomInertiaEnabled XAML attached property on a specified element.
SetValue Sets the local value of a dependency property on a DependencyObject. (Hérité de DependencyObject)
SetVerticalScrollBarVisibility Sets the value of the VerticalScrollBarVisibility dependency property / ScrollViewer.VerticalScrollBarVisibility XAML attached property on a specified element.
SetVerticalScrollMode Sets the value of the VerticalScrollMode dependency property / ScrollViewer.VerticalScrollMode XAML attached property on a specified element.
SetZoomMode Sets the value of the ZoomMode dependency property / ScrollViewer.ZoomMode XAML attached property on a specified element.
TransformToVisual Returns a transform object that can be used to transform coordinates from the UIElement to the specified object. (Hérité de UIElement)
UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (Hérité de UIElement)
ZoomToFactor Sets the effective value of ZoomFactor.

 

Propriétés

Le ScrollViewerClasse contient les propriétés suivantes.

PropriétéType d’accèsDescription

ActualHeight

en lecture seuleGets the rendered height of a FrameworkElement. (Hérité de FrameworkElement)

ActualWidth

en lecture seuleGets the rendered width of a FrameworkElement. (Hérité de FrameworkElement)

AllowDrop

en lecture/écritureGets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. (Hérité de UIElement)

Background

en lecture/écritureGets or sets a brush that provides the background of the control. (Hérité de Control)

BaseUri

en lecture seuleGets a Uniform Resource Identifier (URI) that represents the base Uniform Resource Identifier (URI) for an XAML-constructed object at XAML load time. This property is useful for Uniform Resource Identifier (URI) resolution at run time. (Hérité de FrameworkElement)

BorderBrush

en lecture/écritureGets or sets a brush that describes the border background of a control. (Hérité de Control)

BorderThickness

en lecture/écritureGets or sets the border thickness of a control. (Hérité de Control)

BringIntoViewOnFocusChange

en lecture/écritureGets or sets a value that determines whether the ScrollViewer uses a bring-into-view scroll behavior when an item in the view gets focus.

BringIntoViewOnFocusChangeProperty

en lecture seuleIdentifies the BringIntoViewOnFocusChange dependency property.

CacheMode

en lecture/écritureGets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible. (Hérité de UIElement)

CharacterSpacing

en lecture/écritureGets or sets the uniform spacing between characters, in units of 1/1000 of an em. (Hérité de Control)

Clip

en lecture/écritureGets or sets the RectangleGeometry used to define the outline of the contents of a UIElement. (Hérité de UIElement)

ComputedHorizontalScrollBarVisibility

en lecture seuleGets a value that indicates whether the horizontal ScrollBar is visible.

ComputedHorizontalScrollBarVisibilityProperty

en lecture seuleIdentifies the ComputedHorizontalScrollBarVisibility dependency property.

ComputedVerticalScrollBarVisibility

en lecture seuleGets a value that indicates whether the vertical ScrollBar is visible.

ComputedVerticalScrollBarVisibilityProperty

en lecture seuleIdentifies the ComputedVerticalScrollBarVisibility dependency property.

Content

en lecture/écritureGets or sets the content of a ContentControl. (Hérité de ContentControl)

ContentTemplate

en lecture/écritureGets or sets the data template that is used to display the content of the ContentControl. (Hérité de ContentControl)

ContentTemplateSelector

en lecture/écritureGets or sets a selection object that changes the DataTemplate to apply for content, based on processing information about the content item or its container at run time. (Hérité de ContentControl)

ContentTransitions

en lecture/écritureGets or sets the collection of Transition style elements that apply to the content of a ContentControl. (Hérité de ContentControl)

DataContext

en lecture/écritureGets or sets the data context for a FrameworkElement when it participates in data binding. (Hérité de FrameworkElement)

DefaultStyleKey

en lecture/écritureGets or sets the key that references the default style for the control. (Hérité de Control)

DesiredSize

en lecture seuleGets the size that this UIElement computed during the measure pass of the layout process. (Hérité de UIElement)

Dispatcher

en lecture seuleGets the CoreDispatcher that this object is associated with. (Hérité de DependencyObject)

ExtentHeight

en lecture seuleGets the vertical size of all the scrollable content in the ScrollViewer.

ExtentHeightProperty

en lecture seuleIdentifier for the ExtentHeight dependency property.

ExtentWidth

en lecture seuleGets the horizontal size of all the scrollable content in the ScrollViewer.

ExtentWidthProperty

en lecture seuleIdentifier for the ExtentWidth dependency property.

FlowDirection

en lecture/écritureGets or sets the direction in which text and other UI elements flow within any parent element that controls their layout. This property can be set to either LeftToRight or RightToLeft. Setting FlowDirection to RightToLeft on any element sets the alignment to the right, the reading order to right-to-left and the layout of the control to flow from right to left. (Hérité de FrameworkElement)

FocusState

en lecture seuleGets a value that specifies whether this control has focus, and the mode by which focus was obtained. (Hérité de Control)

FontFamily

en lecture/écritureGets or sets the font used to display text in the control. (Hérité de Control)

FontSize

en lecture/écritureGets or sets the size of the text in this control. (Hérité de Control)

FontStretch

en lecture/écritureGets or sets the degree to which a font is condensed or expanded on the screen. (Hérité de Control)

FontStyle

en lecture/écritureGets or sets the style in which the text is rendered. (Hérité de Control)

FontWeight

en lecture/écritureGets or sets the thickness of the specified font. (Hérité de Control)

Foreground

en lecture/écritureGets or sets a brush that describes the foreground color. (Hérité de Control)

Height

en lecture/écritureGets or sets the suggested height of a FrameworkElement. (Hérité de FrameworkElement)

HorizontalAlignment

en lecture/écritureGets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. (Hérité de FrameworkElement)

HorizontalContentAlignment

en lecture/écritureGets or sets the horizontal alignment of the control's content. (Hérité de Control)

HorizontalOffset

en lecture seuleGets the distance the content has been scrolled horizontally.

HorizontalOffsetProperty

en lecture seuleIdentifies the HorizontalOffset dependency property.

HorizontalScrollBarVisibility

en lecture/écritureGets or sets a value that indicates whether a horizontal ScrollBar should be displayed.

HorizontalScrollBarVisibilityProperty

en lecture seuleIdentifies the HorizontalScrollBarVisibility dependency property.

HorizontalScrollMode

en lecture/écritureGets or sets a value that determines how manipulation input influences scrolling behavior on the horizontal axis.

HorizontalScrollModeProperty

en lecture seuleIdentifies the HorizontalScrollMode dependency property.

HorizontalSnapPointsAlignment

en lecture/écritureGets or sets a value that indicates how the existing snap points are horizontally aligned versus the initial viewport.

HorizontalSnapPointsAlignmentProperty

en lecture seuleIdentifies the HorizontalSnapPointsAlignment dependency property.

HorizontalSnapPointsType

en lecture/écritureGets or sets a value that declares how manipulation behavior reacts to the snap points along the horizontal axis.

HorizontalSnapPointsTypeProperty

en lecture seuleIdentifies the HorizontalSnapPointsType dependency property.

IsDeferredScrollingEnabled

en lecture/écritureGets or sets a value that determines the deferred scrolling behavior for a ScrollViewer.

IsDeferredScrollingEnabledProperty

en lecture seuleIdentifies the IsDeferredScrollingEnabled dependency property.

IsDoubleTapEnabled

en lecture/écritureGets or sets a value that determines whether the DoubleTapped event can originate from that element. (Hérité de UIElement)

IsEnabled

en lecture/écritureGets or sets a value indicating whether the user can interact with the control. (Hérité de Control)

IsHitTestVisible

en lecture/écritureGets or sets whether the contained area of this UIElement can return true values for hit testing. (Hérité de UIElement)

IsHoldingEnabled

en lecture/écritureGets or sets a value that determines whether the Holding event can originate from that element. (Hérité de UIElement)

IsHorizontalRailEnabled

en lecture/écritureGets or sets a value that indicates whether the scroll rail is enabled for the horizontal axis.

IsHorizontalRailEnabledProperty

en lecture seuleIdentifies the IsHorizontalRailEnabled dependency property.

IsHorizontalScrollChainingEnabled

en lecture/écritureGets or sets a value that indicates whether scroll chaining is enabled from this child to its parent, for the horizontal axis.

IsHorizontalScrollChainingEnabledProperty

en lecture seuleIdentifies the IsHorizontalScrollChainingEnabled dependency property.

IsRightTapEnabled

en lecture/écritureGets or sets a value that determines whether the RightTapped event can originate from that element. (Hérité de UIElement)

IsScrollInertiaEnabled

en lecture/écritureGets or sets a value that indicates whether scroll actions should include inertia in their behavior and value.

IsScrollInertiaEnabledProperty

en lecture seuleIdentifies the IsScrollInertiaEnabled dependency property.

IsTabStop

en lecture/écritureGets or sets a value that indicates whether a control is included in tab navigation. (Hérité de Control)

IsTapEnabled

en lecture/écritureGets or sets a value that determines whether the Tapped event can originate from that element. (Hérité de UIElement)

IsVerticalRailEnabled

en lecture/écritureGets or sets a value that indicates whether the scroll rail is enabled for the vertical axis.

IsVerticalRailEnabledProperty

en lecture seuleIdentifies the IsVerticalRailEnabled dependency property.

IsVerticalScrollChainingEnabled

en lecture/écritureGets or sets a value that indicates whether scroll chaining is enabled from this child to its parent, for the vertical axis.

IsVerticalScrollChainingEnabledProperty

en lecture seuleIdentifies the IsVerticalScrollChainingEnabled dependency property.

IsZoomChainingEnabled

en lecture/écritureGets or sets a value that indicates whether zoom chaining is enabled from this child to its parent.

IsZoomChainingEnabledProperty

en lecture seuleIdentifies the IsZoomChainingEnabled dependency property.

IsZoomInertiaEnabled

en lecture/écritureGets or sets a value that indicates whether zoom actions should include inertia in their behavior and value.

IsZoomInertiaEnabledProperty

en lecture seuleIdentifies the IsZoomInertiaEnabled dependency property.

Language

en lecture/écritureGets or sets localization/globalization language information that applies to a FrameworkElement, and also to all child elements of the current FrameworkElement in the object representation and in UI. (Hérité de FrameworkElement)

ManipulationMode

en lecture/écritureGets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. (Hérité de UIElement)

Margin

en lecture/écritureGets or sets the outer margin of a FrameworkElement. (Hérité de FrameworkElement)

MaxHeight

en lecture/écritureGets or sets the maximum height constraint of a FrameworkElement. (Hérité de FrameworkElement)

MaxWidth

en lecture/écritureGets or sets the maximum width constraint of a FrameworkElement. (Hérité de FrameworkElement)

MaxZoomFactor

en lecture/écritureGets or sets a value that indicates the maximum permitted run-time value of ZoomFactor.

MaxZoomFactorProperty

en lecture seuleIdentifies the MaxZoomFactor dependency property.

MinHeight

en lecture/écritureGets or sets the minimum height constraint of a FrameworkElement. (Hérité de FrameworkElement)

MinWidth

en lecture/écritureGets or sets the minimum width constraint of a FrameworkElement. (Hérité de FrameworkElement)

MinZoomFactor

en lecture/écritureGets or sets a value that indicates the minimum permitted run-time value of ZoomFactor.

MinZoomFactorProperty

en lecture seuleIdentifies the MinZoomFactor dependency property.

Name

en lecture/écritureGets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name. (Hérité de FrameworkElement)

Opacity

en lecture/écritureGets or sets the degree of the object's opacity. (Hérité de UIElement)

Padding

en lecture/écritureGets or sets the padding inside a control. (Hérité de Control)

Parent

en lecture seuleGets the parent object of this FrameworkElement in the object tree. (Hérité de FrameworkElement)

PointerCaptures

en lecture seuleGets the set of all captured pointers, represented as Pointer values. (Hérité de UIElement)

Projection

en lecture/écritureGets or sets the perspective projection (3-D effect) to apply when rendering this element. (Hérité de UIElement)

RenderSize

en lecture seuleGets the final render size of a UIElement. (Hérité de UIElement)

RenderTransform

en lecture/écritureGets or sets transform information that affects the rendering position of a UIElement. (Hérité de UIElement)

RenderTransformOrigin

en lecture/écritureGets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (Hérité de UIElement)

Resources

en lecture/écritureGets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax. (Hérité de FrameworkElement)

ScrollableHeight

en lecture seuleGets a value that represents the vertical size of the area that can be scrolled; the difference between the width of the extent and the width of the viewport.

ScrollableHeightProperty

en lecture seuleIdentifies the ScrollableHeight dependency property.

ScrollableWidth

en lecture seuleGets a value that represents the horizontal size of the area that can be scrolled; the difference between the width of the extent and the width of the viewport.

ScrollableWidthProperty

en lecture seuleIdentifies the ScrollableWidth dependency property.

Style

en lecture/écritureGets or sets an instance Style that is applied for this object during layout and rendering. (Hérité de FrameworkElement)

TabIndex

en lecture/écritureGets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key. (Hérité de Control)

TabNavigation

en lecture/écritureGets or sets a value that modifies how tabbing and TabIndex work for this control. (Hérité de Control)

Tag

en lecture/écritureGets or sets an arbitrary object value that can be used to store custom information about this object. (Hérité de FrameworkElement)

Template

en lecture/écritureGets or sets a control template. The control template defines the visual appearance of a control in UI, and is defined in XAML markup. (Hérité de Control)

Transitions

en lecture/écritureGets or sets the collection of Transition style elements that apply to a UIElement. (Hérité de UIElement)

Triggers

en lecture seuleGets the collection of triggers for animations that are defined for a FrameworkElement. Not commonly used. (Hérité de FrameworkElement)

UseLayoutRounding

en lecture/écritureGets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. (Hérité de UIElement)

VerticalAlignment

en lecture/écritureGets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. (Hérité de FrameworkElement)

VerticalContentAlignment

en lecture/écritureGets or sets the vertical alignment of the control's content. (Hérité de Control)

VerticalOffset

en lecture seuleGets the distance the content has been scrolled vertically.

VerticalOffsetProperty

en lecture seuleIdentifies the VerticalOffset dependency property.

VerticalScrollBarVisibility

en lecture/écritureGets or sets a value that indicates whether a vertical ScrollBar should be displayed.

VerticalScrollBarVisibilityProperty

en lecture seuleIdentifies the VerticalScrollBarVisibility dependency property.

VerticalScrollMode

en lecture/écritureGets or sets a value that determines how manipulation input influences scrolling behavior on the vertical axis.

VerticalScrollModeProperty

en lecture seuleIdentifies the VerticalScrollMode dependency property.

VerticalSnapPointsAlignment

en lecture/écritureGets or sets a value that indicates how the existing snap points are vertically aligned versus the initial viewport.

VerticalSnapPointsAlignmentProperty

en lecture seuleIdentifies the VerticalSnapPointsAlignment dependency property.

VerticalSnapPointsType

en lecture/écritureGets or sets a value that declares how manipulation behavior reacts to the snap points along the vertical axis.

VerticalSnapPointsTypeProperty

en lecture seuleIdentifies the VerticalSnapPointsType dependency property.

ViewportHeight

en lecture seuleGets the vertical size of the viewable content.

ViewportHeightProperty

en lecture seuleIdentifies the ViewportHeight dependency property.

ViewportWidth

en lecture seuleGets the horizontal size of the viewable content.

ViewportWidthProperty

en lecture seuleIdentifies the ViewportWidth dependency property.

Visibility

en lecture/écritureGets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout. (Hérité de UIElement)

Width

en lecture/écritureGets or sets the width of a FrameworkElement. (Hérité de FrameworkElement)

ZoomFactor

en lecture seuleGets a value that indicates the current zoom factor engaged for content scaling.

ZoomFactorProperty

en lecture seuleIdentifies the ZoomFactor dependency property.

ZoomMode

en lecture/écritureGets or sets a value that indicates whether zoom behavior in the ScrollViewer content is enabled.

ZoomModeProperty

en lecture seuleIdentifies the ZoomMode dependency property.

ZoomSnapPoints

en lecture seuleGets the observable collection of zoom snap point factors that are held by the ScrollViewer.

ZoomSnapPointsProperty

en lecture seuleIdentifies the ZoomSnapPoints dependency property.

ZoomSnapPointsType

en lecture/écritureGets or sets a value that indicates how zoom snap points are processed for interaction input.

ZoomSnapPointsTypeProperty

en lecture seuleIdentifies the ZoomSnapPointsType dependency property.

 

Remarques

Propriétés jointes XAML de ScrollViewer

ScrollViewer définit les propriétés jointes XAML suivantes :

Ces propriétés jointes XAML sont destinées aux cas où ScrollViewer est implicite, par exemple lorsque ScrollViewer existe dans le modèle par défaut pour GridView et que vous souhaitez pouvoir influencer le comportement de défilement sans accéder aux composants de modèle.

Pour prendre en charge l'accès du processeur XAML aux propriétés jointes et pour exposer les opérations Get et Set équivalentes au code, chaque propriété jointe XAML possède une paire de méthodes d'accesseur Get et Set. Par exemple, les méthodes GetHorizontalScrollMode et SetHorizontalScrollMode prennent en charge et assurent la prise en charge du code équivalent de ScrollViewer.HorizontalScrollMode. Ou alors, vous pouvez utiliser le système de propriétés de dépendance pour obtenir ou définir la valeur de la propriété attachée. Appelez GetValue ou SetValue en passant les arguments de l'identificateur de la propriété de dépendance à définir et une référence à l'objet cible sur lequel obtenir ou définir la valeur.

Exemples

Le code XAML suivant crée un grand TextBlock dans un ScrollViewer, ainsi qu'une autre copie du TextBlock à des fins de comparaison.


  <StackPanel>
      <!-- A large TextBlock. -->
      <TextBlock Width="300" TextWrapping="Wrap" Margin="0,0,0,30" 
        Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac mi ipsum. Phasellus vel malesuada mauris. Donec pharetra, enim sit amet mattis tincidunt, felis nisi semper lectus, vel porta diam nisi in augue. Pellentesque lacus tortor, aliquam et faucibus id, rhoncus ut justo. Sed id lectus odio, eget pulvinar diam. Suspendisse eleifend ornare libero, in luctus purus aliquet non. Sed interdum, sem vitae rutrum rhoncus, felis ligula ultrices sem, in eleifend eros ante id neque." />
      
      <!-- The same large TextBlock, wrapped in a ScrollViewer. -->
      <ScrollViewer Height="200" Width="200" 
                    HorizontalScrollBarVisibility="Auto" 
                    VerticalScrollBarVisibility="Auto">
          <TextBlock Width="300" TextWrapping="Wrap"
              Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac mi ipsum. Phasellus vel malesuada mauris. Donec pharetra, enim sit amet mattis tincidunt, felis nisi semper lectus, vel porta diam nisi in augue. Pellentesque lacus tortor, aliquam et faucibus id, rhoncus ut justo. Sed id lectus odio, eget pulvinar diam. Suspendisse eleifend ornare libero, in luctus purus aliquet non. Sed interdum, sem vitae rutrum rhoncus, felis ligula ultrices sem, in eleifend eros ante id neque." />
      </ScrollViewer>
  </StackPanel>


Configuration requise

Client minimal pris en charge

Windows 8 [Applications du Windows Store uniquement]

Serveur minimal pris en charge

Windows Server 2012 [Applications du Windows Store uniquement]

Espace de noms

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Métadonnées

Windows.winmd

Voir aussi

ContentControl

 

 

Afficher:
© 2014 Microsoft