UpdateSourceTrigger=PropertyChanged Problem

4 posts, 0 answers
  1. Md.Hasanuzzaman
    Md.Hasanuzzaman avatar
    31 posts
    Member since:
    Apr 2011

    Posted 09 Jul 2011 Link to this post

    i need to Trigger my methord when Change Value of RadNumericUpDown  Where is My Code :

    <telerik:RadNumericUpDown x:Name="tv" HorizontalAlignment="Left" Margin="80,26,0,0" VerticalAlignment="Top" Width="183" IsInteger="True" Value="{Binding MethodParameters[0], BindsDirectlyToSource=True, Mode=OneWayToSource,  Source={StaticResource totalAmountIs},Converter ={StaticResource doubleToString}, UpdateSourceTrigger=PropertyChanged}" UpdateValueEvent="PropertyChanged"/>

    But it Doesn`t work. if Bind a textbox with this same code it work fine. here were i am wrong ?? it well be best if give a example

    Thank`s for lelp.
  2. Md.Hasanuzzaman
    Md.Hasanuzzaman avatar
    31 posts
    Member since:
    Apr 2011

    Posted 09 Jul 2011 Link to this post

    This Problem is Sloved. It was Problem in my value Converter.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Aicha
    Aicha avatar
    4 posts
    Member since:
    Jan 2013

    Posted 23 Jan 2013 Link to this post

    Hello,

    Can you please tell me how do you set 

    Source={StaticResource totalAmountIs} ?

    can you provide me a little code about it ?

    I have a problem in working with this property :(

    Thanks a lot !
    Aicha
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Jan 2013 Link to this post

    Hi Aisha,

    It seems from the provided code that the ViewModel is set as a Resource in the XAML file. You can check the following links for more details on this approach:

    http://stackoverflow.com/questions/8153949/wpf-binding-static-resource-cannot-be-resolved
    http://msdn.microsoft.com/en-us/magazine/cc163299.aspx

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top