c# - WPF combobox selected item -


I have a combobox with some items shown in the form of image and text (edge ​​of each item ). Now when I select an item from the combobox list, I want to display something else (instead of a single image and text) to display any other text or other image on the Cubblox selected area.

Is there any way I can get this?

The easiest way to add isSelected Triggers to the DataTemplate (ItemScriptplate) of Combobox, I think your Two groups of close visual elements are the second for another selected sequence for regular data display, when IsSelected properties are set to ComboboxItem, you need to hide regular scenes and create another show. Find Finding the actual move here FindAncestor Using ComboBoxItem immediately Confirms to find.

  & gt; Datamapplet x: Key = "yourDataTemplate" & gt; & Lt; Grid X: Name = "Regular Regulations" & gt; ... & lt; / Grid & gt; & Lt; Grid X: Name = "SelectedView" visibility = "Brief" & gt; ... & lt; / Grid & gt; & Lt; DataTemplate.Triggers & gt; & Lt; DataTrigger binding = "{binding relative source = {relative resource mode = search installer, instant type = {x: type combobox}}, path = ischeated}" value = "true" & gt; & Lt; Setter TargetName = "Regular Visiels" property = "visibility" value = "view" /> & Lt; Setter TargetName = "SelectedVijay" property = "visibility" value = "abbreviated" /> & Lt; / DataTrigger & gt; & Lt; /DataTemplate.Triggers>  


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -