Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect ElementName in XAML Binding at TimeSpanPicker control #730

Closed
mindball opened this issue Dec 14, 2023 · 1 comment
Closed

Incorrect ElementName in XAML Binding at TimeSpanPicker control #730

mindball opened this issue Dec 14, 2023 · 1 comment
Labels
Milestone

Comments

@mindball
Copy link

The XAML code provided has a Border element with a Visibility property that is bound to the IsVisible property of an element named PART_NumericTBEditorContainer. However, the error message suggests that the ElementName should be PART_NumericTBEditorContainerBorder. To resolve this issue, you should change the ElementName in the Visibility binding of the Border element from PART_NumericTBEditorContainer to PART_NumericTBEditorContainerBorder. Here’s the corrected code:

<ControlTemplate` TargetType="{x:Type controls:TimeSpanPicker}">
    <Grid VerticalAlignment="Stretch">
        <Border x:Name="PART_MainContainer"
        Margin="0"
        Padding="{TemplateBinding Padding}"
        BorderThickness="1" 
        Visibility="{Binding ElementName=PART_NumericTBEditorContainerBorder, Path=IsVisible, Converter={catel:BooleanToCollapsingVisibilityConverter SupportInversionUsingCommandParameter=True}, ConverterParameter=True}"
        Style="{DynamicResource TimeSpanBorderStyle}">
    </Grid>
</ControlTemplate>
@GeertvanHorrik
Copy link
Member

Thanks for reporting, releasing hotfix 5.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants