fix searchbar

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent b414cd9a92
commit 0b97741f7c

@ -20,6 +20,6 @@
<CollectionView ItemsSource="{Binding}" SelectionMode="Single" SelectionChanged="OnClickGameList" ItemsLayout="VerticalGrid, 5" Grid.Column="1" Grid.Row="1" ItemTemplate="{StaticResource gameTemplate}"/> <CollectionView ItemsSource="{Binding}" SelectionMode="Single" SelectionChanged="OnClickGameList" ItemsLayout="VerticalGrid, 5" Grid.Column="1" Grid.Row="1" ItemTemplate="{StaticResource gameTemplate}"/>
</Grid> </Grid>
</ScrollView> </ScrollView>
<ImageButton Style="{StaticResource addButton}" Clicked="GoToAddGamePage"/> <ImageButton Style="{StaticResource addButton}" Clicked="Addgame"/>
</Grid> </Grid>
</ContentPage> </ContentPage>

@ -36,8 +36,12 @@ public partial class MainPage : ContentPage
BindingContext=((App)App.Current).Manager.FilterGames(GameText, Tag1Text, Tag2Text); BindingContext=((App)App.Current).Manager.FilterGames(GameText, Tag1Text, Tag2Text);
} }
protected override void OnAppearing() protected override void OnAppearing()
{ {
Game.Text = "";
Tag1.Text = "";
Tag2.Text = "";
SearchBar_GameChanged(null, null); SearchBar_GameChanged(null, null);
base.OnAppearing(); base.OnAppearing();
} }

Loading…
Cancel
Save