ScrollViewer.IsDeferredScrollingEnabled Propiedad

Definición

Obtiene o establece un valor que indica si el contenido es estacionario cuando el usuario arrastra el control Thumb de ScrollBar.

public:
 property bool IsDeferredScrollingEnabled { bool get(); void set(bool value); };
public bool IsDeferredScrollingEnabled { get; set; }
member this.IsDeferredScrollingEnabled : bool with get, set
Public Property IsDeferredScrollingEnabled As Boolean

Valor de propiedad

Boolean

Es true si el contenido es estacionario cuando el usuario arrastra Thumb de ScrollBar; de lo contrario, es false.

Ejemplos

En el ejemplo siguiente se muestra un ScrollViewer objeto con la IsDeferredScrollingEnabled propiedad establecida en true.

<ScrollViewer Grid.Column="0" Grid.Row="0"  Height="200" Name="sv1"  IsDeferredScrollingEnabled="true">
    <StackPanel>
    <TextBlock Text="1" Height="50"/>
    <TextBlock Text="2" Height="50"/>
    <TextBlock Text="3" Height="50"/>
    <TextBlock Text="4" Height="50"/>
    <TextBlock Text="5" Height="50"/>
    <TextBlock Text="6" Height="50"/>
    <TextBlock Text="7" Height="50"/>
    <TextBlock Text="8" Height="50"/>
    <TextBlock Text="9" Height="50"/>
    <TextBlock Text="10" Height="50"/>
    </StackPanel>
</ScrollViewer>

Comentarios

Mostrar un gran número de elementos puede causar problemas de rendimiento. En este caso, puede resultar útil usar el desplazamiento diferido. Para obtener más información, vea Optimizar el rendimiento: controles.

Esta propiedad se puede usar como una propiedad de instancia y una propiedad adjunta.

Se aplica a