WPF-AutoComplete-TextBox icon indicating copy to clipboard operation
WPF-AutoComplete-TextBox copied to clipboard

Add ability to include non-selectable rows

Open clawfrank opened this issue 6 years ago • 1 comments

It would be nice to add header and/or footer rows, e.g. an item that shows up at the start of the results that says "X results" or maybe section splitters, e.g. categorize things by the first letter. They would have different formatting (this can be done now using the template selector), but more importantly, cannot be selected. I have spent a little time trying to do this myself in the ListBoxItem style in Generic.xaml, but have not been successful. Example:

<DataTrigger Binding="{Binding Content.IsEnabled}" Value="false">
    <Setter Property="Focusable" Value="False" />
</DataTrigger>

<Trigger SourceName="Content" Property="IsEnabled" Value="false">
    <Setter Property="Focusable" Value="False" />
</Trigger>

clawfrank avatar Mar 05 '18 17:03 clawfrank

I'll check this weekend

quicoli avatar Mar 06 '18 07:03 quicoli