Skip to content

Explanation #250

Answered by lpeyr
andylupu asked this question in Q&A
Jun 22, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The search box is a ComboBox with the IsEditable property set to true. A method adds in its Items each game of the user. To not only display the name of the game, but also its icon, I used the SearchItem UserControl. For the search function, it's the default autocompletion of the ComboBox. I just had to override the ToString() method of the SearchItem. I also used a custom style for the ComboBox.

You can check the code implementation here:

SearchItem

XAML

<UserControl x:Class="Gavilya.UserControls.SearchItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andylupu
Comment options

Answer selected by lpeyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants