Skip to content

Version 5.3.0 generates XAML Binding error for some controls (like DatePicker) - wrong Style #3995

@DrCQ

Description

@DrCQ

Bug explanation

New Styles for the version 5.3.0 (compared to 5.2.1) contains the following line:

<Setter Property="AutomationProperties.Name" Value="{Binding Path=(wpf:HintAssist.Hint), RelativeSource={RelativeSource Self}, Converter={x:Static convertersInternal:AutomationPropertiesNameConverter.Instance}}" />

which cause the following XAML Binding error:

Error 4 DatePicker.(AutomationProperties.Name) Value 'null' cannot be assigned to property DatePicker.Name (type String).

In my opinion, the converter returns the wrong value type. I temporally fixed this problem while adding the following line to my Style definition:

<Setter Property="AutomationProperties.Name" Value=""/>

Version

5.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugevaluation requiredItems is pending review or evaluation by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions