TickPlacement Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public enum class TickPlacement
public enum TickPlacement
type TickPlacement =
Public Enum TickPlacement
- Inheritance
Fields
Both | 3 | Tick marks appear above and below the Track bar for a horizontal Slider, or to the left and right of the Track for a vertical Slider. |
BottomRight | 2 | Tick marks appear below the Track for a horizontal Slider, or to the right of the Track for a vertical Slider. |
None | 0 | No tick marks appear. |
TopLeft | 1 | Tick marks appear above the Track for a horizontal Slider, or to the left of the Track for a vertical Slider. |
Examples
The following example shows how to set the Slider.TickPlacement property.
<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"/>
Remarks
The TickPlacement
enumeration is used to set the Slider.TickPlacement property.
The following illustration shows a Slider that has tick marks that are located below the Track. In this example, the Slider.TickPlacement property is set to BottomRight
.
Slider Example
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應