页面代码
Command="Slider.IncreaseLarge"/>
Command="Slider.DecreaseLarge"/>
Fill="#FFFFFF" Placement="Bottom" Height="30" />
Template="{StaticResource tmp}" IsSnapToTickEnabled="True"
TickPlacement="None" Margin="0,5,32,0" />
cs代码 画刻度的一个类
public class RadarTickBar : TickBar
{
protected override void OnRender(DrawingContext dc)
{
Double tickFrequencySize;
Brush foreBrush = this.Fill;
Pen line_Pen = new Pen(foreBrush, 1);
this.Placement = TickBarPlacement.Bottom;
FormattedText font = null;
Size size = new Size(base.ActualWidth, base.ActualHeight);
int tickCount = (in