Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
XamNumericEditor binding problem inside control template
posted

Hi,

We have binding problem with our user control that uses XamNumericEditor. The problem occurs when we try simple binding with XamNumericEditor that is inside a usercontrol and which is styled through a control template.

The problem does not occur when we use editors which do not use storyboards (which we assume) such as XamTextEditor. However, the problem occurs with controls such as XamMaskedEditor, XamNumericEditor.

As you can see with the attached sample Project, we can not bind our usercontrol  that uses XamNumericEditor, to our Amount property.

You can open the attached project and run the sample. Notice, that the NumericEditor which contains XamNumericEditor has a binding problem in control template. The one outside the control template works fine.

InfraNumericEditorControlTemplateBindingProblem.zip
Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    Hello,

    You can try binding the Value property to the root's Text property rather than the Text like this:

            <igEditors:XamNumericEditor Grid.Row="0" Grid.Column="1" x:Name="ControlEditor" Value="{Binding ElementName = root, Path = Text}" Width="100" ></igEditors:XamNumericEditor>

    A Developer Support Engineer is also handling your support case on this issue.

Children
No Data