我一直在試用Ribbon控件並遇到了一個可能的錯誤(或者我可能做錯了事情)。如果我對一個RibbonTab
RibbonTextBox
,並設置在代碼中的IsEnabled到假或真後面,我只能將它設置爲false,但不是真正的。 RibbonTextBox
仍然有待禁用。無法設置RibbonTextBox isEnable爲False
/* 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