Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Mutually exclusive checkbox in WPF-DataTemplate

$
0
0

Hi all,

Am very new to WPF and I need some help in one implementation. I have a DataTemplate which has few controls and a checkbox. Inside a listbox control, I would bind this data template as ItemTemplate and a uniform grid as ItemsPanel. During runtime, I will create a collection of data and bind it to list box item source, So multiple such controls from data template will be generated dynamically.

 

I want the checkbox in this data bound control to be mutually exclusive.

For instance, at a time only one checkbox should be allowed to be checked irrespective of how many repetitive controls are generated out of the data template. 

How can I achieve that? Someone please help me on this.


-------------kings--------------


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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