ScrollBar.Track Property


获取 Track 控件的 ScrollBarGets the Track for a ScrollBar control.

 property System::Windows::Controls::Primitives::Track ^ Track { System::Windows::Controls::Primitives::Track ^ get(); };
public System.Windows.Controls.Primitives.Track Track { get; }
member this.Track : System.Windows.Controls.Primitives.Track
Public ReadOnly Property Track As Track

Property Value


Track 控件一起使用的 ScrollBarThe Track that is used with a ScrollBar control.


下面的示例演示如何访问与 ScrollBar 控件一起使用的 Track 控件。The following example shows how to access the Track control that is used with a ScrollBar control.

Track myScrollBarTrack = new Track();
myScrollBarTrack = myScrollBar.Track;
Dim myScrollBarTrack As New Track()
myScrollBarTrack = myScrollBar.Track


ScrollBar 控件的典型样式模板包括一个 Track 控件,该控件括在两个 Button 控件的两侧。A typical style template for a ScrollBar control includes a Track control that is surrounded on either side by two Button controls.

Applies to