I'm using the header of the listview to filter item inside it.
What I'd want, would be, to have the TextBox Collapsed by default and on PointerReleased on the TextBlock to put it Visible.
When SearchParametrageList_TextChanged is called if Textbox is empty it's Collapsed again.
<ItemsRepeater Grid.Column="0" ItemsSource="{Binding ListViewColonnes, Mode=TwoWay}" VerticalAlignment="Center" HorizontalAlignment="Stretch">
<ItemsRepeater.Layout>
<UniformGridLayout Orientation="Horizontal" MinItemWidth="200" MinColumnSpacing="20" ItemsJustification="SpaceAround"/>
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="x:String">
<StackPanel Orientation="Vertical">
<TextBlock x:Name="ColonneParametrageList" Height="20" Text="{x:Bind}" Style="{StaticResource Text_ListViewTitle}" PointerReleased="ColonneParametrageList_PointerReleased"/>
<TextBox x:Name="FiltreParametrageList" Tag="{x:Bind}" Height="25" TextChanged="SearchParametrageList_TextChanged" Visibility="Collapsed"/>
</StackPanel>
</DataTemplate>
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
Case all TextBox open
Case any TextBox is Collapsed other than the first
Case ListView Column 1 Collapsed and everything not shown

I'm thinking of managing myself the items in the header so I can have the hand on the logic behind it but maybe i'm missing something in the initiation of the ItemsRepeater.
Do you have a suggestion on how to manage the Header of this listview?


TextBox?