TickPlacement 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public enum class TickPlacement
C#
public enum TickPlacement
type TickPlacement =
Public Enum TickPlacement
- 繼承
名稱 | 值 | Description |
---|---|---|
Both | 3 | |
BottomRight | 2 | |
None | 0 | 不會顯示刻度標記。 |
TopLeft | 1 |
下列範例會示範如何設定 Slider.TickPlacement 屬性。
XAML
<Slider Width="100" Value="50" Orientation="Horizontal" HorizontalAlignment="Left"
IsSnapToTickEnabled="True" Maximum="3" TickPlacement="BottomRight"
AutoToolTipPlacement="BottomRight" AutoToolTipPrecision="2"
Ticks="0, 1.1, 2.5, 3"/>
列舉 TickPlacement
是用來設定 Slider.TickPlacement 屬性。
下圖顯示 Slider 具有位於 下方刻度標記的 Track。在這裡範例中 Slider.TickPlacement ,屬性會設定為 BottomRight
。
滑桿範例
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |