相关疑难解决方法(0)

无法将RibbonTextBox isEnable设置为False

我一直在尝试使用Ribbon控件并遇到可能的错误(或者我可能做错了).如果我有一个RibbonTextBoxon RibbonTab,并在后面的代码中将isEnabled设置为FalseTrue,我只能将其设置为false而不是true.在RibbonTextBox仍然被禁用.

/* in my XAML */
<ribbon:RibbonTextBox x:Name="rtb" Label="Button1" />

/* in my code behind */
rtb.IsEnabled = false;  // RibbonTextBox is disabled and grayed out
... some other code ...
rtb.IsEnabled = true;   // RibbonTextBox remain disabled and grayed out
Run Code Online (Sandbox Code Playgroud)

c# wpf ribbon-control isenabled

3
推荐指数
1
解决办法
612
查看次数

标签 统计

c# ×1

isenabled ×1

ribbon-control ×1

wpf ×1