使用WPF / C#复选框内的Radcombobox [英] Radcombobox inside checkbox using WPF/C#

查看:211
本文介绍了使用WPF / C#复选框内的Radcombobox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i要求RadComboBox内部显示复选框项目。当选中/取消选中复选框项目时,RadComboBox显示测试需要相应更改。请帮帮我在这个。



我尝试了什么:



< telerik :radcombobox horizo​​ntalalignment =Leftxmlns:telerik =#unknown>

x:Name =cmbCategory

Width =350

ItemsSource ={Binding ProcessNames,Mode = TwoWay}SelectedIndex =0

Grid.Column =1>

< telerik:radcombobox。 itemtemplate>

< datatemplate>

< stackpanel orientation =Horizo​​ntal>

< checkbox name =BusinessProcessNamecontent ={Binding CheckProcessNames,Mode = TwoWay}ischecked ={Binding IsSelected,Mode = TwoWay} >
















Hi All,

i have requirement that inside RadComboBox showing checkbox items.when checkbox items are checked/unchecked then RadComboBox display test need to change accordingly.Please help me on this.

What I have tried:

<telerik:radcombobox horizontalalignment="Left" xmlns:telerik="#unknown">
x:Name="cmbCategory"
Width="350"
ItemsSource="{Binding ProcessNames,Mode=TwoWay}" SelectedIndex="0"
Grid.Column="1" >
<telerik:radcombobox.itemtemplate>
<datatemplate>
<stackpanel orientation="Horizontal">
<checkbox name="BusinessProcessName" content="{Binding CheckProcessNames,Mode=TwoWay}" ischecked="{Binding IsSelected,Mode=TwoWay}">








推荐答案





请在Telerik radcombobox中设置属性
Hi,

Please set property
CheckBoxes="True" 

并检查选择索引更改的值以使selecteditem进行进一步编码。



如果有帮助,请标记答案。

in Telerik radcombobox and check value on selection index change to get selecteditem to do further coding.

Please mark answer if it's helpful.


这篇关于使用WPF / C#复选框内的Radcombobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆