TickBarPlacement Enum

Definition

指定 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
Inheritance
TickBarPlacement

Fields

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.

Examples

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

Remarks

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

TickBar 位置TickBar placement

Applies to

See also