Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF NumericTextBoxDouble FontSize and AxisDouble exponential numeric format

Solved!
Go to solution

Hi!

 

1.) How can I change the font size of NumericTextBoxDouble?

 

I use this code: 

 

<ni:NumericTextBoxDouble InteractionMode="ReadOnly" Height="50" Width="100" TextAlignment="Center" Value="999.999" FontSize="40"/>

 

but font size remain approximately 10-12 pixel.

Why?

 

 

2.) How can I disable the scientific (exponential) numeric format of the AxisDouble on WPF Graph?

 

Regards,

Tamas

 

 

P.S.: I use VisualStudio 2013 Community and MS 2015 Standard

0 Kudos
Message 1 of 3
(3,591 Views)
Solution
Accepted by topic author galtamas88

1) FontSize is the correct property. Do you have an implicit style for TextBox that is overriding font size? For example, if I add "<Style TargetType="TextBox"><Setter Property="FontSize" Value="22" /></Style>" to the resources of a test window, that overrides the font setting on the numeric text box.


2) You can control the format of the division labels through the LabelPresenter property on the MajorDivisions of the axis. For example, using "<ni:RangeLabeledDivisions LabelPresenter="F1" />" will display division labels using the fixed-point Standard Numeric Format String.

~ Paul H
Message 2 of 3
(3,574 Views)

Thanks for your reply!

 

Best regards,

Tamas

0 Kudos
Message 3 of 3
(3,544 Views)