TickBarPlacement 枚举

定义

指定 TickBar 相对于 TrackSlider 的位置。Specifies the placement of a TickBar with respect to the Track of a Slider control.

public enum class TickBarPlacement
public enum TickBarPlacement
type TickBarPlacement = 
Public Enum TickBarPlacement
继承
TickBarPlacement

字段

Bottom 3

刻度条放置在 TrackSlider 的下方。The tick bar is positioned below the Track of the Slider.

Left 0

刻度条放置在 TrackSlider 的左侧。The tick bar is positioned to the left of the Track of the Slider.

Right 2

刻度条放置在 TrackSlider 的右侧。The tick bar is positioned to the right of the Track of the Slider.

Top 1

刻度条放置在 TrackSlider 的上方。The tick bar is positioned above the Track of the Slider.

示例

有关TickBarPlacementSlider包含的的示例, 请参阅滑块样式和模板。 StyleFor an example of a TickBarPlacement that is included in the Style of a Slider, see Slider Styles and Templates.

注解

TickBarPlacement枚举用于TickBar.Placement设置属性。The TickBarPlacement enumeration is used to set the TickBar.Placement property. 的实际位置TickBar ControlTemplateSlider控件的定义。The actual position of a TickBar is defined by the ControlTemplate of a Slider control. 属性标识此位置, 以便正确绘制的TickBar刻度。 PlacementThe Placement property identifies this position so that the ticks of a TickBar are drawn correctly. TickBar下图显示了Placement当属性设置为TopBottom时如何绘制控件。The following illustration shows how TickBar controls are drawn when the Placement property is set to Top and Bottom.

TickBar 位置TickBar placement

适用于

另请参阅