C# 如果我使用c在winrt xaml column series中固定了column series bar的宽度,如何对齐column series bar和独立轴

C# 如果我使用c在winrt xaml column series中固定了column series bar的宽度,如何对齐column series bar和独立轴,c#,winrt-xaml,C#,Winrt Xaml,如果我使用c在winrt xaml column series中固定了column series bar的宽度,如何对齐column series bar和独立轴 private static Style GetNewDataPointStyle( ) { Random ran = new Random(); //Color background = Colors.Blue; Color background = Color.FromArgb(2

如果我使用c在winrt xaml column series中固定了column series bar的宽度,如何对齐column series bar和独立轴

private static Style GetNewDataPointStyle( )
{
        Random ran = new Random();
        //Color background = Colors.Blue;

        Color background = Color.FromArgb(255, (byte)ran.Next(255), (byte)ran.Next(255), (byte)ran.Next(255));

        Style style = new Style(typeof(Control));
        Setter st1 = new Setter(Control.BackgroundProperty, new SolidColorBrush(background));
        Setter st2 = new Setter(Control.BorderBrushProperty, new SolidColorBrush(Colors.White));
        Setter st3 = new Setter(Control.BorderThicknessProperty, new Thickness(0));
        Setter st4 = new Setter(Control.HeightProperty, 0);
        Setter st5 = new Setter(Control.WidthProperty, 0);
        Setter st6 = new Setter(Control.MaxWidthProperty, 30);
        Setter st7 = new Setter(Control.MinWidthProperty, 30);

        //Setter st6 = new Setter(DataPoint.TemplateProperty, null); // causes exception
        style.Setters.Add(st1); style.Setters.Add(st2); style.Setters.Add(st3); style.Setters.Add(st4); style.Setters.Add(st5); style.Setters.Add(st6); style.Setters.Add(st7);
        return style;
    }
我的输出是:


您的输出图像丢失…我无法上载图像。您可以将其上载到www.tinypic.com,并发布指向该图像的链接…是否有朋友可以给出此答案?