Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckListBox : SelectedValue not updated on SelectedItems.Add/Remove

$
0
0
I cannot reproduce the bug. Can you submit a sample ?
Here's one that works :
<StackPanel>
        <xctk:CheckListBox x:Name="_checkListBox"/>
       <TextBlock Text="{Binding SelectedValue, ElementName=_checkListBox}"/>
       <Button Content="ADD" Click="Button_Click"/>
    </StackPanel>
 public MainWindow()
    {
      InitializeComponent();

      _checkListBox.ItemsSource = new ObservableCollection<string>()
      {
         "Price",
        "Subban",
        "Galchenyuk",
      };
    }

    private void Button_Click( object sender, RoutedEventArgs e )
    {
      _checkListBox.SelectedItems.Add( "Subban" );
    }

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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