Skip to content

Binding Errors on AutomationProperty.Name #3945

Closed

Description

@Keboo

Bug explanation

In 5.3.0 release, create a new NumericUpDown control with the default style.

Observered: Binding Error on the AutomationProperties.Name property

Expected: No binding errors

I think the correct solution here is to create a value converter that can be applied to the binding. If the value is a string returning it, otherwise simply return empty string.

Version

5.3.0

Activity

  1. added this to the 5.3.1 milestone on Oct 10, 2025
  2. added
    evaluation required
    on Oct 10, 2025
  3. added theissue type on Oct 10, 2025
  4. removed
    evaluation required
    on Oct 10, 2025
  5. DrCQ commented on Oct 19, 2025

    @DrCQ

    Similar problem occurres for the TextBox control. If the HintAssist.Hint property isn't defined an XAML binding error occurres.
    The second problem is raised if Style is used. If the HintAssist.Hint property is specified in the Style Setter statement the Binding error occurres again.

    <TextBox Text="{Binding SourceText, Mode=TwoWay}" matD:HintAssist.Hint="Source"/> is working without XAML Binding error.
    But

    <Style x:Key="SourceTextBoxStyle" TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignTextBox}">
        <Setter Property="matD:HintAssist.Hint" Value="Source"/>
    </Style>
    

    is generating the XAMl Binding error:
    Value produced by BindingExpression is not valid for target property. null BindingExpression:Path=(0); DataItem='TextBox' (Name=''); target element is 'TextBox' (Name=''); target property is 'Name' (type 'String')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions