Quantcast
Viewing all articles
Browse latest Browse all 18858

Clean value of RibbonCombobox

get 2 RibbonCombobox, the first FiltreEtatPays and the second FiltreEtatType, the selected value of the fisrt RibbonCombobox is driving content of the second. So I would like to clean the displayed value of the second RibbonCombobox when the selectedItem of the first RibbonCombobox changed.

I get the following xaml

<ribbon:RibbonComboBox x:Name="FiltreEtatPays"Label="Pays"Grid.Column="1"Grid.Row="0"><ribbon:RibbonGalleryName="GallEtatPays"SelectionChanged="GallEtatPays_SelectionChanged"><ribbon:RibbonGalleryCategoryName="GalEtatPays"ItemsSource="{Binding}"/></ribbon:RibbonGallery></ribbon:RibbonComboBox><ribbon:RibbonComboBox x:Name="FiltreEtatType"Label="Type"Grid.Column="1"Grid.Row="1"><ribbon:RibbonGalleryName="GallEtatType"><ribbon:RibbonGalleryCategoryName="GalEtatType"ItemsSource="{Binding}"/></ribbon:RibbonGallery></ribbon:RibbonComboBox>

I tried this code on event SelectionChanged from ribbon:RibbonGallery of the first RibbonCombobox but the displayed text not changed

FiltreEtatType.Text="";GallEtatType.SelectedItem=null;

How can I do ?



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>