Open AndrzejKl opened 8 years ago
Should we go for something close to the AutoCompleteBox of WPF Toolkit or close to the UWP AutoSuggestBox?
@Evangelink Thanks for the reply. In my opinion we need use best things from both of them:
Is it necessary to make a new control or can we add this functionality through attached properties? After all, an AutoCompleteBox
/AutoSuggestBox
is just a glorified TextBox
.
I would like to add some thoughts on this topic as I find it not to be trivial: I think there should be two controls instead of just one, serving different scenarios:
AutoCompleteBox
and its basically a ComboBox
in non-edit mode (and thus it should also derive from Selector
and use its given properties). I've already tried to adopt the existing WPF Combo Box for this purpose but I couldn't get it to work (can't override the popup logic).AutoSuggestBox
and it basically derives from TextBox
or TextBoxBase
(or maybe we could also solve this issue with a new TextBox
template and some attached properties).Anyway, here are some issues that we have in both cases:
SearchMemberPath
which works similar to DisplayMemberPath
? What do we do if the user does not specify this property? Call ToString
on every item?I would like to contribute these controls to the project - what's your opinion on these thoughts?
In my case I use it only as an pop up - it means that it suggest but without obligation to select it (like textbox, but with validation - is empty or not). Filtering combinations are important. I use it also for an objects (DisplayMemberPath) together with validation (item is an object or not). So what I missing in wpfToolkit AutoCompleteBox is MahApps features (watermarks, etc.). That's why I was asking about control - to look the same with other MahApps controls.
I think, it will be nice to have here AutoCompleteBox like in WPF Toolkit (with SelectedItem, Delay, FilterMode) and all others features, combining with watermark, FloatingWatermark, etc, to keep same style everywhere... What do you think, it's possible?