我一直在尝试使用Ribbon控件并遇到可能的错误(或者我可能做错了).如果我有一个RibbonTextBoxon RibbonTab,并在后面的代码中将isEnabled设置为False或True,我只能将其设置为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)