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. Image for the cookie policy date

Deadlock on UWP when raising property change

If I do binding as below. So I want this can be calculated in ViewModel and update UI, or can be entered by user. But if user enters, it freezes UI and It cause some kind of deadlock.


<Style x:Key="NumericStyle" TargetType="numeric:SfNumericUpDown">
                <Setter Property="HorizontalOptions" Value="FillAndExpand"/>
                <Setter Property="VerticalOptions" Value="FillAndExpand"/>
                <Setter Property="TextColor" Value="Black"/>
                <Setter Property="ParsingMode" Value="Decimal"/>           
                <Setter Property="SpinButtonAlignment" Value="Both"/>
            </Style>

   <numeric:SfNumericUpDown  Maximum="100" MaximumDecimalDigits="2"   Style="{StaticResource NumericStyle}"   x:Name="bodyfatNumericUpDown"
                                        FormatString="p" PercentDisplayMode="Value"   Value="{Binding BodyStat.Bodyfat}" />

  private decimal bodyfat { get; set; }
        [Column("bodyfat")]
        public decimal Bodyfat
        {
            get { return bodyfat; }
            set
            {
                bodyfat = value;
               OnPropertyChanged("Bodyfat");
            }
        }

1 Reply

VJ Victory Jessie Selvam D Syncfusion Team August 23, 2017 12:37 PM UTC

Hi Emil,

Thank you for using Syncfusion products.

We were able to reproduce the reported issue "Application enters deadlock state while typing number after decimal separator" in SfNumericUpDown control and we have confirmed it as a defect. Please followup the support incident for SfNumericUpDown control under your account to track the status of this issue.

The fix for this issue will be included in our 2017 volume 3 service pack 1 release which is expected to be out in the end of August 2017.

Regards,
Jessie

Loader.
Live Chat Icon For mobile
Up arrow icon