简体   繁体   English

扩展工具包的十六进制输出中的NumericUpDown

[英]Extended Toolkit's NumericUpDown in hex output

I am using the Extended Toolkit for WPF. 我正在使用WPF扩展工具包。

The NumericUpDown control is capable of inputting hex values, but I cannot see a method/property for showing values in hex format. NumericUpDown控件能够输入十六进制值,但是我看不到用于以十六进制格式显示值的方法/属性。

There is a FormatString, but this contains thinks like currency, percentage, not hex format. 有一个FormatString,但是它包含诸如货币,百分比之类的想法,而不是十六进制格式。

The code in WPF I have now is: 我现在在WPF中的代码是:

<xctk:IntegerUpDown Value="{Binding Value}" 
     ParsingNumberStyle="HexNumber" FormatString="%X" Margin="4" />

This worked: 这工作:

    <xctk:IntegerUpDown ParsingNumberStyle="HexNumber" 
                        FormatString="X" 
                        VerticalAlignment="Center" 
                        HorizontalAlignment="Center" />

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM