Skip to content

TextBox with textboxhelper cleartextbtn doesnt work after visibilty change #1268

@gil-mak

Description

@gil-mak

Hi,
I have a grid with 2 columns.
col 0 is visible and have a button that change the visibility col 1 visible.
in col 0 the textbox which works fine:

                <TextBox Grid.Col="0" VerticalAlignment="Center"
                         Text="{Binding Model.ComputerName, Delay=2500,
                                        UpdateSourceTrigger=PropertyChanged,
                                        Mode=TwoWay}"
                         controls:TextboxHelper.ClearTextButton="True"
                         controls:TextboxHelper.Watermark="{Binding Path=Model.TotalCount,
                                                                    StringFormat='{} Any ({0})'}" />

and in col 1 i have the same text box (with different text binding property).
the problame is that in col 1 (after visibilty of the grid change to visible) the cleartextbutton doesnt work (it appears but not clearing the text).
if i remove the visibility binding from the grid so both columns will be visible it works.
any ideas for a solution?
thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions