We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

UpDown - can''t specify decimal places in xaml

Thread ID:

Created:

Updated:

Platform:

Replies:

72181 Mar 6,2008 04:21 PM UTC Sep 21,2010 10:48 AM UTC WPF 2
loading
Tags: Tools
Mark Shurmer
Asked On March 6, 2008 04:21 PM UTC

You can't specify any of the number foramtting info in xaml, it just gets ignored

e.g.









Administrator [Syncfusion]
Replied On March 10, 2008 12:09 PM UTC

Hi Mark,

For Adding NumberFormatInfo to UpDown control we should use System.Globlization.NumberFormatInfo class. Here I have created the sample which is contain Numeric UpDown with XAML level NumberFormatInfo and it's working fine. I couldn’t reproduce your issue.

Here is the code :

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sync="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
xmlns:shared="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF"
xmlns:sg="clr-namespace:System.Globalization;assembly=mscorlib"
Title="Window1" Height="300" Width="300">

Name="ctlUpDown" Height="25"
Margin="0"
BorderThickness="1"
BorderBrush="Gray">







Please let me know if you have any question.

Thanks,
Asem Ibohal Meitei.





Willem Kaal
Replied On September 21, 2010 10:48 AM UTC

Hi,

For my project I need to set the decimal places to 0. Unfortunately, the given solution does not work.
I am using version 8.3.0.21.

Regards,
wk


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;