Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8686299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:48:33+00:00 2026-06-12T22:48:33+00:00

Ok, I thought this would be a no-brainer, but evidently I’m doing something wrong.

  • 0

Ok, I thought this would be a no-brainer, but evidently I’m doing something wrong. The problem is that when clicking on the “Up” and “Down” buttons of the Extended WPF toolkit DoubleUpDown control, the values do not get updated correctly. When I click Up, the value in the control changes, but the view model does not get updated. Only when I change from clicking Up to clicking Down, does the model get updated, but with the then previous value.

To reproduce, I used a simple view model like so:

public class ViewModel : INotifyPropertyChanged
{

    public ViewModel()
    {
        MyValue = 0.5;
    }

    private double _myValue;
    public double MyValue
    {
        get { return _myValue; }
        set
        {

            _myValue = value;
            PropertyChanged(this, new PropertyChangedEventArgs("MyValue"));

        }
    }

    public event PropertyChangedEventHandler PropertyChanged = delegate { };
}

And my MainWindow.xaml looks like the code below, where the DoubleUpDown control and the label are both bound in TwoWay fashion to the ViewModel’s MyValue property:

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="MainWindow" Height="100" Width="200">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <xctk:DoubleUpDown
            Value="{Binding MyValue, Mode=TwoWay}"
            Increment="0.5"
            Minimum="0.0"
            Maximum="10"
            ValueChanged="DoubleUpDown_ValueChanged"
            />
        <Label Grid.Column="1" Content="{Binding MyValue, Mode=TwoWay}"/>
    </Grid>
</Window>

And in the code-behind, I set the DataContext in the MainWindow constructor to be an instance of ViewModel:

    public MainWindow()
    {
        DataContext = new ViewModel();
        InitializeComponent();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:48:35+00:00Added an answer on June 12, 2026 at 10:48 pm

    Default binding update logic for DoubleUpDown control is LostFocus. Try setting explicitly UpdateSourceTrigger=PropertyChanged in your binding like this –

    <xctk:DoubleUpDown
          Value="{Binding MyValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
          Increment="0.5"
          Minimum="0.0"
          Maximum="10"
          ValueChanged="DoubleUpDown_ValueChanged"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought this would be something that's fairly common - but cant find it
Ok, I thought this would be simpler but I was probably wrong.. My parser
I thought this would be simple enough but somethings wrong. The only Bootstrap gem
I thought this would be relatively easy but running it, gives wrong result. It
I thought this would be a relatively simple task with something like FMOD, but
I thought this would be quite simple but then realised that I couldnt find
I thought this would be something I could easily google, but maybe I'm not
I thought this would be fairly simple but it turns out not to work
I thought this would be fairly easy, but I'm totally baffled. I want one
I thought this would be pretty easy but I'm running into all sorts of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.