ScrollViewer.IsDeferredScrollingEnabled Propriedade

Definição

Obtém ou define um valor que indica se o conteúdo está estacionário quando o utilizador arrasta o Thumb de um 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 Propriedade

true se o conteúdo estiver estacionário quando o utilizador arrasta o Thumb de um ScrollBar; caso contrário, false.

Exemplos

O exemplo seguinte mostra a ScrollViewer com a IsDeferredScrollingEnabled propriedade definida como true.

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

Observações

Exibir um grande número de itens pode causar problemas de desempenho. Neste caso, pode ser útil usar scroll diferido. Para mais informações, consulte Otimizar o Desempenho: Controlos.

Esta propriedade pode ser usada tanto como propriedade de instância como propriedade anexada.

Aplica-se a