Classe ScrollViewer
TOC
Comprimi il sommario
Espandi il sommario

Controllo ScrollViewer Class

Rappresenta un'area scorrevole che può contenere altri elementi visibili.

Ereditarietà

Object
  DependencyObject
    UIElement
      FrameworkElement
        Control
          ContentControl
            ScrollViewer

Sintassi


public sealed class ScrollViewer : ContentControl


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

Attributi

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

Membri

Il ScrollViewerClasse dispone di questi tipi di membri:

Costruttori

Il ScrollViewerClasse dispone di questi costruttori.

CostruttoreDescrizione
ScrollViewer Initializes a new instance of the ScrollViewer class.

 

Eventi

Il ScrollViewerClasse dispone di questi eventi.

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

 

Metodi

The ScrollViewer Classe dispone di questi metodi. Eredita inoltre i metodi da Object Classe.

MetodoDescrizione
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. (Ereditato da UIElement)
ApplyTemplate Loads the relevant control template so that its parts can be referenced. (Ereditato da 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. (Ereditato da UIElement)
ArrangeOverride Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior. (Ereditato da FrameworkElement)
CapturePointer Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events. (Ereditato da UIElement)
ClearValue Clears the local value of a dependency property. (Ereditato da DependencyObject)
FindName Retrieves an object that has the specified identifier name. (Ereditato da FrameworkElement)
FindSubElementsForTouchTargeting Enables a UIElement subclass to expose child elements that assist with resolving touch targeting. (Ereditato da UIElement)
Focus Attempts to set the focus on the control. (Ereditato da Control)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Ereditato da 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. (Ereditato da Control)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Ereditato da 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. (Ereditato da UIElement)
InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (Ereditato da 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. (Ereditato da 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. (Ereditato da 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. (Ereditato da FrameworkElement)
OnContentChanged Invoked when the value of the Content property changes. (Ereditato da ContentControl)
OnContentTemplateChanged Invoked when the value of the ContentTemplate property changes. (Ereditato da ContentControl)
OnContentTemplateSelectorChanged Invoked when the value of the ContentTemplateSelector property changes. (Ereditato da ContentControl)
OnCreateAutomationPeer When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. (Ereditato da 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. (Ereditato da UIElement)
OnDoubleTapped Called before the DoubleTapped event occurs. (Ereditato da Control)
OnDragEnter Called before the DragEnter event occurs. (Ereditato da Control)
OnDragLeave Called before the DragLeave event occurs. (Ereditato da Control)
OnDragOver Called before the DragOver event occurs. (Ereditato da Control)
OnDrop Called before the Drop event occurs. (Ereditato da Control)
OnGotFocus Called before the GotFocus event occurs. (Ereditato da Control)
OnHolding Called before the Holding event occurs. (Ereditato da Control)
OnKeyDown Called before the KeyDown event occurs. (Ereditato da Control)
OnKeyUp Called before the KeyUp event occurs. (Ereditato da Control)
OnLostFocus Called before the LostFocus event occurs. (Ereditato da Control)
OnManipulationCompleted Called before the ManipulationCompleted event occurs. (Ereditato da Control)
OnManipulationDelta Called before the ManipulationDelta event occurs. (Ereditato da Control)
OnManipulationInertiaStarting Called before the ManipulationInertiaStarting event occurs. (Ereditato da Control)
OnManipulationStarted Called before the ManipulationStarted event occurs. (Ereditato da Control)
OnManipulationStarting Called before the ManipulationStarting event occurs. (Ereditato da Control)
OnPointerCanceled Called before the PointerCanceled event occurs. (Ereditato da Control)
OnPointerCaptureLost Called before the PointerCaptureLost event occurs. (Ereditato da Control)
OnPointerEntered Called before the PointerEntered event occurs. (Ereditato da Control)
OnPointerExited Called before the PointerExited event occurs. (Ereditato da Control)
OnPointerMoved Called before the PointerMoved event occurs. (Ereditato da Control)
OnPointerPressed Called before the PointerPressed event occurs. (Ereditato da Control)
OnPointerReleased Called before the PointerReleased event occurs. (Ereditato da Control)
OnPointerWheelChanged Called before the PointerWheelChanged event occurs. (Ereditato da Control)
OnRightTapped Called before the RightTapped event occurs. (Ereditato da Control)
OnTapped Called before the Tapped event occurs. (Ereditato da Control)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Ereditato da DependencyObject)
ReleasePointerCapture Releases pointer captures for capture of one specific pointer by this UIElement. (Ereditato da UIElement)
ReleasePointerCaptures Releases all pointer captures held by this element. (Ereditato da UIElement)
RemoveHandler Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler. (Ereditato da 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. (Ereditato da 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. (Ereditato da 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. (Ereditato da UIElement)
UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (Ereditato da UIElement)
ZoomToFactor Sets the effective value of ZoomFactor.

 

Proprietà

ScrollViewerClasse dispone di queste proprietà.

ProprietàTipo accessoDescrizione

ActualHeight

Sola letturaGets the rendered height of a FrameworkElement. (Ereditato da FrameworkElement)

ActualWidth

Sola letturaGets the rendered width of a FrameworkElement. (Ereditato da FrameworkElement)

AllowDrop

Lettura/scritturaGets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. (Ereditato da UIElement)

Background

Lettura/scritturaGets or sets a brush that provides the background of the control. (Ereditato da Control)

BaseUri

Sola letturaGets 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. (Ereditato da FrameworkElement)

BorderBrush

Lettura/scritturaGets or sets a brush that describes the border background of a control. (Ereditato da Control)

BorderThickness

Lettura/scritturaGets or sets the border thickness of a control. (Ereditato da Control)

BringIntoViewOnFocusChange

Lettura/scritturaGets 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

Sola letturaIdentifies the BringIntoViewOnFocusChange dependency property.

CacheMode

Lettura/scritturaGets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible. (Ereditato da UIElement)

CharacterSpacing

Lettura/scritturaGets or sets the uniform spacing between characters, in units of 1/1000 of an em. (Ereditato da Control)

Clip

Lettura/scritturaGets or sets the RectangleGeometry used to define the outline of the contents of a UIElement. (Ereditato da UIElement)

ComputedHorizontalScrollBarVisibility

Sola letturaGets a value that indicates whether the horizontal ScrollBar is visible.

ComputedHorizontalScrollBarVisibilityProperty

Sola letturaIdentifies the ComputedHorizontalScrollBarVisibility dependency property.

ComputedVerticalScrollBarVisibility

Sola letturaGets a value that indicates whether the vertical ScrollBar is visible.

ComputedVerticalScrollBarVisibilityProperty

Sola letturaIdentifies the ComputedVerticalScrollBarVisibility dependency property.

Content

Lettura/scritturaGets or sets the content of a ContentControl. (Ereditato da ContentControl)

ContentTemplate

Lettura/scritturaGets or sets the data template that is used to display the content of the ContentControl. (Ereditato da ContentControl)

ContentTemplateSelector

Lettura/scritturaGets 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. (Ereditato da ContentControl)

ContentTransitions

Lettura/scritturaGets or sets the collection of Transition style elements that apply to the content of a ContentControl. (Ereditato da ContentControl)

DataContext

Lettura/scritturaGets or sets the data context for a FrameworkElement when it participates in data binding. (Ereditato da FrameworkElement)

DefaultStyleKey

Lettura/scritturaGets or sets the key that references the default style for the control. (Ereditato da Control)

DesiredSize

Sola letturaGets the size that this UIElement computed during the measure pass of the layout process. (Ereditato da UIElement)

Dispatcher

Sola letturaGets the CoreDispatcher that this object is associated with. (Ereditato da DependencyObject)

ExtentHeight

Sola letturaGets the vertical size of all the scrollable content in the ScrollViewer.

ExtentHeightProperty

Sola letturaIdentifier for the ExtentHeight dependency property.

ExtentWidth

Sola letturaGets the horizontal size of all the scrollable content in the ScrollViewer.

ExtentWidthProperty

Sola letturaIdentifier for the ExtentWidth dependency property.

FlowDirection

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

FocusState

Sola letturaGets a value that specifies whether this control has focus, and the mode by which focus was obtained. (Ereditato da Control)

FontFamily

Lettura/scritturaGets or sets the font used to display text in the control. (Ereditato da Control)

FontSize

Lettura/scritturaGets or sets the size of the text in this control. (Ereditato da Control)

FontStretch

Lettura/scritturaGets or sets the degree to which a font is condensed or expanded on the screen. (Ereditato da Control)

FontStyle

Lettura/scritturaGets or sets the style in which the text is rendered. (Ereditato da Control)

FontWeight

Lettura/scritturaGets or sets the thickness of the specified font. (Ereditato da Control)

Foreground

Lettura/scritturaGets or sets a brush that describes the foreground color. (Ereditato da Control)

Height

Lettura/scritturaGets or sets the suggested height of a FrameworkElement. (Ereditato da FrameworkElement)

HorizontalAlignment

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

HorizontalContentAlignment

Lettura/scritturaGets or sets the horizontal alignment of the control's content. (Ereditato da Control)

HorizontalOffset

Sola letturaGets the distance the content has been scrolled horizontally.

HorizontalOffsetProperty

Sola letturaIdentifies the HorizontalOffset dependency property.

HorizontalScrollBarVisibility

Lettura/scritturaGets or sets a value that indicates whether a horizontal ScrollBar should be displayed.

HorizontalScrollBarVisibilityProperty

Sola letturaIdentifies the HorizontalScrollBarVisibility dependency property.

HorizontalScrollMode

Lettura/scritturaGets or sets a value that determines how manipulation input influences scrolling behavior on the horizontal axis.

HorizontalScrollModeProperty

Sola letturaIdentifies the HorizontalScrollMode dependency property.

HorizontalSnapPointsAlignment

Lettura/scritturaGets or sets a value that indicates how the existing snap points are horizontally aligned versus the initial viewport.

HorizontalSnapPointsAlignmentProperty

Sola letturaIdentifies the HorizontalSnapPointsAlignment dependency property.

HorizontalSnapPointsType

Lettura/scritturaGets or sets a value that declares how manipulation behavior reacts to the snap points along the horizontal axis.

HorizontalSnapPointsTypeProperty

Sola letturaIdentifies the HorizontalSnapPointsType dependency property.

IsDeferredScrollingEnabled

Lettura/scritturaGets or sets a value that determines the deferred scrolling behavior for a ScrollViewer.

IsDeferredScrollingEnabledProperty

Sola letturaIdentifies the IsDeferredScrollingEnabled dependency property.

IsDoubleTapEnabled

Lettura/scritturaGets or sets a value that determines whether the DoubleTapped event can originate from that element. (Ereditato da UIElement)

IsEnabled

Lettura/scritturaGets or sets a value indicating whether the user can interact with the control. (Ereditato da Control)

IsHitTestVisible

Lettura/scritturaGets or sets whether the contained area of this UIElement can return true values for hit testing. (Ereditato da UIElement)

IsHoldingEnabled

Lettura/scritturaGets or sets a value that determines whether the Holding event can originate from that element. (Ereditato da UIElement)

IsHorizontalRailEnabled

Lettura/scritturaGets or sets a value that indicates whether the scroll rail is enabled for the horizontal axis.

IsHorizontalRailEnabledProperty

Sola letturaIdentifies the IsHorizontalRailEnabled dependency property.

IsHorizontalScrollChainingEnabled

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

IsHorizontalScrollChainingEnabledProperty

Sola letturaIdentifies the IsHorizontalScrollChainingEnabled dependency property.

IsRightTapEnabled

Lettura/scritturaGets or sets a value that determines whether the RightTapped event can originate from that element. (Ereditato da UIElement)

IsScrollInertiaEnabled

Lettura/scritturaGets or sets a value that indicates whether scroll actions should include inertia in their behavior and value.

IsScrollInertiaEnabledProperty

Sola letturaIdentifies the IsScrollInertiaEnabled dependency property.

IsTabStop

Lettura/scritturaGets or sets a value that indicates whether a control is included in tab navigation. (Ereditato da Control)

IsTapEnabled

Lettura/scritturaGets or sets a value that determines whether the Tapped event can originate from that element. (Ereditato da UIElement)

IsVerticalRailEnabled

Lettura/scritturaGets or sets a value that indicates whether the scroll rail is enabled for the vertical axis.

IsVerticalRailEnabledProperty

Sola letturaIdentifies the IsVerticalRailEnabled dependency property.

IsVerticalScrollChainingEnabled

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

IsVerticalScrollChainingEnabledProperty

Sola letturaIdentifies the IsVerticalScrollChainingEnabled dependency property.

IsZoomChainingEnabled

Lettura/scritturaGets or sets a value that indicates whether zoom chaining is enabled from this child to its parent.

IsZoomChainingEnabledProperty

Sola letturaIdentifies the IsZoomChainingEnabled dependency property.

IsZoomInertiaEnabled

Lettura/scritturaGets or sets a value that indicates whether zoom actions should include inertia in their behavior and value.

IsZoomInertiaEnabledProperty

Sola letturaIdentifies the IsZoomInertiaEnabled dependency property.

Language

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

ManipulationMode

Lettura/scritturaGets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. (Ereditato da UIElement)

Margin

Lettura/scritturaGets or sets the outer margin of a FrameworkElement. (Ereditato da FrameworkElement)

MaxHeight

Lettura/scritturaGets or sets the maximum height constraint of a FrameworkElement. (Ereditato da FrameworkElement)

MaxWidth

Lettura/scritturaGets or sets the maximum width constraint of a FrameworkElement. (Ereditato da FrameworkElement)

MaxZoomFactor

Lettura/scritturaGets or sets a value that indicates the maximum permitted run-time value of ZoomFactor.

MaxZoomFactorProperty

Sola letturaIdentifies the MaxZoomFactor dependency property.

MinHeight

Lettura/scritturaGets or sets the minimum height constraint of a FrameworkElement. (Ereditato da FrameworkElement)

MinWidth

Lettura/scritturaGets or sets the minimum width constraint of a FrameworkElement. (Ereditato da FrameworkElement)

MinZoomFactor

Lettura/scritturaGets or sets a value that indicates the minimum permitted run-time value of ZoomFactor.

MinZoomFactorProperty

Sola letturaIdentifies the MinZoomFactor dependency property.

Name

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

Opacity

Lettura/scritturaGets or sets the degree of the object's opacity. (Ereditato da UIElement)

Padding

Lettura/scritturaGets or sets the padding inside a control. (Ereditato da Control)

Parent

Sola letturaGets the parent object of this FrameworkElement in the object tree. (Ereditato da FrameworkElement)

PointerCaptures

Sola letturaGets the set of all captured pointers, represented as Pointer values. (Ereditato da UIElement)

Projection

Lettura/scritturaGets or sets the perspective projection (3-D effect) to apply when rendering this element. (Ereditato da UIElement)

RenderSize

Sola letturaGets the final render size of a UIElement. (Ereditato da UIElement)

RenderTransform

Lettura/scritturaGets or sets transform information that affects the rendering position of a UIElement. (Ereditato da UIElement)

RenderTransformOrigin

Lettura/scritturaGets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (Ereditato da UIElement)

Resources

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

ScrollableHeight

Sola letturaGets 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

Sola letturaIdentifies the ScrollableHeight dependency property.

ScrollableWidth

Sola letturaGets 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

Sola letturaIdentifies the ScrollableWidth dependency property.

Style

Lettura/scritturaGets or sets an instance Style that is applied for this object during layout and rendering. (Ereditato da FrameworkElement)

TabIndex

Lettura/scritturaGets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key. (Ereditato da Control)

TabNavigation

Lettura/scritturaGets or sets a value that modifies how tabbing and TabIndex work for this control. (Ereditato da Control)

Tag

Lettura/scritturaGets or sets an arbitrary object value that can be used to store custom information about this object. (Ereditato da FrameworkElement)

Template

Lettura/scritturaGets or sets a control template. The control template defines the visual appearance of a control in UI, and is defined in XAML markup. (Ereditato da Control)

Transitions

Lettura/scritturaGets or sets the collection of Transition style elements that apply to a UIElement. (Ereditato da UIElement)

Triggers

Sola letturaGets the collection of triggers for animations that are defined for a FrameworkElement. Not commonly used. (Ereditato da FrameworkElement)

UseLayoutRounding

Lettura/scritturaGets 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. (Ereditato da UIElement)

VerticalAlignment

Lettura/scritturaGets 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. (Ereditato da FrameworkElement)

VerticalContentAlignment

Lettura/scritturaGets or sets the vertical alignment of the control's content. (Ereditato da Control)

VerticalOffset

Sola letturaGets the distance the content has been scrolled vertically.

VerticalOffsetProperty

Sola letturaIdentifies the VerticalOffset dependency property.

VerticalScrollBarVisibility

Lettura/scritturaGets or sets a value that indicates whether a vertical ScrollBar should be displayed.

VerticalScrollBarVisibilityProperty

Sola letturaIdentifies the VerticalScrollBarVisibility dependency property.

VerticalScrollMode

Lettura/scritturaGets or sets a value that determines how manipulation input influences scrolling behavior on the vertical axis.

VerticalScrollModeProperty

Sola letturaIdentifies the VerticalScrollMode dependency property.

VerticalSnapPointsAlignment

Lettura/scritturaGets or sets a value that indicates how the existing snap points are vertically aligned versus the initial viewport.

VerticalSnapPointsAlignmentProperty

Sola letturaIdentifies the VerticalSnapPointsAlignment dependency property.

VerticalSnapPointsType

Lettura/scritturaGets or sets a value that declares how manipulation behavior reacts to the snap points along the vertical axis.

VerticalSnapPointsTypeProperty

Sola letturaIdentifies the VerticalSnapPointsType dependency property.

ViewportHeight

Sola letturaGets the vertical size of the viewable content.

ViewportHeightProperty

Sola letturaIdentifies the ViewportHeight dependency property.

ViewportWidth

Sola letturaGets the horizontal size of the viewable content.

ViewportWidthProperty

Sola letturaIdentifies the ViewportWidth dependency property.

Visibility

Lettura/scritturaGets 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. (Ereditato da UIElement)

Width

Lettura/scritturaGets or sets the width of a FrameworkElement. (Ereditato da FrameworkElement)

ZoomFactor

Sola letturaGets a value that indicates the current zoom factor engaged for content scaling.

ZoomFactorProperty

Sola letturaIdentifies the ZoomFactor dependency property.

ZoomMode

Lettura/scritturaGets or sets a value that indicates whether zoom behavior in the ScrollViewer content is enabled.

ZoomModeProperty

Sola letturaIdentifies the ZoomMode dependency property.

ZoomSnapPoints

Sola letturaGets the observable collection of zoom snap point factors that are held by the ScrollViewer.

ZoomSnapPointsProperty

Sola letturaIdentifies the ZoomSnapPoints dependency property.

ZoomSnapPointsType

Lettura/scritturaGets or sets a value that indicates how zoom snap points are processed for interaction input.

ZoomSnapPointsTypeProperty

Sola letturaIdentifies the ZoomSnapPointsType dependency property.

 

Osservazioni

Proprietà associate XAML ScrollViewer

L'oggetto ScrollViewer definisce le seguenti proprietà associate XAML:

Queste proprietà associate XAML sono intese per i casi in cui ScrollViewer è implicito, come ad esempio quando esiste ScrollViewer nel modello predefinito per GridView e si desidera poter influire sul comportamento di scorrimento senza accedere alle parti del modello.

Per supportare l'accesso del processore XAML alle proprietà associate e esporre anche le operazioni get e set equivalenti al codice, ogni proprietà associata XAML dispone di una coppia di metodi della funzione di accesso Get e Set. Ad esempio, i metodi SetHorizontalScrollMode e GetHorizontalScrollMode supportano e forniscono il supporto del solo codice equivalente per ScrollViewer.HorizontalScrollMode. In alternativa, è possibile utilizzare il sistema di proprietà di dipendenza per ottenere o impostare il valore della proprietà associata. Chiamare GetValue o SetValue, passando gli argomenti dell'identificatore di proprietà di dipendenza da impostare e un riferimento all'oggetto di destinazione in cui ottenere o impostare il valore.

Esempi

Con il seguente codice XAML viene creato un oggetto TextBlock di grandi dimensioni in un oggetto ScrollViewer, insieme a un'altra copia di TextBlock per confronto.


  <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>


Requisiti

Client minimo supportato

Windows 8 [solo app di Windows Store]

Server minimo supportato

Windows Server 2012 [solo app di Windows Store]

Spazio dei nomi

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

Metadati

Windows.winmd

Vedi anche

ContentControl

 

 

Mostra:
© 2016 Microsoft