问题绑定Devexpress DXRibbon RibbonPage IsEnable属性

时间:2022-03-11 19:24:48

I know this can be a bug not yet reported by Devexpress, but is there anyone who can help me with a workaround?

我知道这可能是一个尚未被Devexpress报告的错误,但是有谁可以帮助我解决这个问题吗?

My Ribbon page in Xaml is as following:

我在Xaml中的丝带页面如下:

...
<dxr:RibbonPage Name="Home" Caption="Home"  IsEnabled="{Binding ElementName=checkBox1, Path=IsChecked}">
...

I'm using Devexpress 2011 v1.4 Thanks in advance.

我提前使用了Devexpress 2011 v1.4,谢谢。

2 个解决方案

#1


0  

I would suggest that you use the IsVisible property instead of IsEnabled. The latter one is not currently supported and you see it just because it comes from the ancestor class.

我建议您使用IsVisible属性而不是IsEnabled。后者目前不受支持,您看到它仅仅是因为它来自于祖先类。

#2


0  

Is checkBox1 a standard checkbox? I'm pretty sure the Path you want is "Checked" (not "IsChecked").

checkBox1是一个标准的复选框吗?我很确定您想要的路径是“已检查”(而不是“已检查”)。

#1


0  

I would suggest that you use the IsVisible property instead of IsEnabled. The latter one is not currently supported and you see it just because it comes from the ancestor class.

我建议您使用IsVisible属性而不是IsEnabled。后者目前不受支持,您看到它仅仅是因为它来自于祖先类。

#2


0  

Is checkBox1 a standard checkbox? I'm pretty sure the Path you want is "Checked" (not "IsChecked").

checkBox1是一个标准的复选框吗?我很确定您想要的路径是“已检查”(而不是“已检查”)。