xaml - Default Style ListBox / ListView / ComboBox SelectedItem -
I would like to know that when you select an item in any of the collections, to remove the default style, which of the XAML Setters need to be changed (listview / listbox / combobox).
By default this is blue, but I do not want any visual aspect because objects in my list box have a stapple panel and I do not want a blue background around the item if the user clicks next to the stackpanel .
I hope someone can help me.
You can check this post: and this MSDN blog post:
If you want to change the style of the selected items, then just define this style, and you can set the same style for the selected items and other items:
style target type = "Catalogboxime" & gt; & Lt; Style.Resources & gt; & Lt; Solid collar brush x: key = "{x: static system calculators. Highlights brush}" color = "transparent" /> & Lt; Solid Colors Brush x: Key = "{x: Static System Colors. Highlight Textbrushing}" Color = "Black" /> & Lt; Solid colored brush x: key = "{x: static system calculators.ControlBrishisk}" color = "transparent" /> & Lt; Solid colored brush x: key = "{x: Static system calculators.Controltextbrush's}" color = "black" /> & Lt; /Style.Resources> & Lt; / Style & gt;
Highlight brush and highlight textbrush styles occur when there are Focus, ControlBrisks and ControlTextBooks in the list view, when the second control is focused.
Comments
Post a Comment