xamarin - 如何设置sfChart DateTimeAxis标签样式的格式,使其仅包含大写单词

标签 xamarin syncfusion letters capitalize

我正在使用SyncFusion图形。为此,我专门使用SfChart组件。在此组件中,我希望能够将日期设置为以下格式:

周一,周二,周三,周四,周五,周六,周日(这意味着只显示大写字母的日子)

为此,我在sfChart中使用了ChartAxisLabelStyle的LabelFormat属性:

<chart:DateTimeAxis.LabelStyle>
      <chart:ChartAxisLabelStyle x:Name="DateAxisLabelStyle" TextColor="{StaticResource HistogramChartAxisLabelColorTheme1}">
        <chart:ChartAxisLabelStyle.LabelFormat>
          <OnPlatform x:TypeArguments="x:String" iOS="EEE" WinPhone="ddd" Android="EEE" />
        </chart:ChartAxisLabelStyle.LabelFormat>
      </chart:ChartAxisLabelStyle>
    </chart:DateTimeAxis.LabelStyle>

另外,我尝试编写转换器,但没有一个没有用。

有办法克服吗?

谢谢 :)

最佳答案

请在下面的链接下找到您所需的样本,如果需要任何说明,请告诉我们。

http://www.syncfusion.com/downloads/support/directtrac/general/ze/SimpleSample-502330254

问候,

萨姆苏登K S

关于xamarin - 如何设置sfChart DateTimeAxis标签样式的格式,使其仅包含大写单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38431623/

相关文章:

c# - 安装 Xamarin IOS.Setup 和 Android.Setup 时 "' 1.0.0 ' is not a valid short file name"

xcode - Xamarin Forms - 找不到配置文件(ios bundle 签名)

c# - 如何在 xamarin ios 中创建类别?

c# - 如何在 asp.net c# 中以 pdf 格式导出 syncfusion 图表

javascript - 在 MVC 中的同一 View 中填充第二个模型 : Prevent postback

python - 如何渲染同一列表中的多个多边形

Xamarin Forms 将不同字体大小的标签垂直对齐到同一基线

javascript - 为什么内部方法的内部最后执行?

Python - 将字符列表与单词列表进行比较?

python - 如何使用 Sikuli 键入希腊字母