Silverlight infragistics在禁用时删除组合框上的样式

问题描述:

Im在Silverlight下删除infragistics组合框(NetAdvantage 2012.2)上的样式时遇到了麻烦。在目前的状态下,它几乎不可见,不透明度设置使文本变灰。查看下面的组合框和常规文本框之间的区别。Silverlight infragistics在禁用时删除组合框上的样式

我所做的每个样式更改都不会影响组合框禁用时的不透明度。下面

comboboxdisabled

是造型我尝试设置的时刻。我尝试了一百个不同的代码组合,但是我试图进行更改。我已将残疾人的不透明度更改为0,希望能删除组合框顶部的任何物品。请让我知道,如果我在这里路程。

<VisualStateGroup x:Name="CommonStates"> 
          <VisualState x:Name="Normal"/> 
          <VisualState x:Name="MouseOver"/> 
          <VisualState x:Name="Disabled"> 
           <Storyboard> 
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)"> 
             <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> 
            </DoubleAnimationUsingKeyFrames> 
           </Storyboard> 
          </VisualState> 
         </VisualStateGroup> 
         <VisualStateGroup x:Name="FocusStates"> 
          <VisualState x:Name="Focused"> 
           <Storyboard> 
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)"> 
             <SplineDoubleKeyFrame KeyTime="00:00:00"> 
              <SplineDoubleKeyFrame.Value> 
               <System:Double>1</System:Double> 
              </SplineDoubleKeyFrame.Value> 
             </SplineDoubleKeyFrame> 
            </DoubleAnimationUsingKeyFrames> 
           </Storyboard> 
          </VisualState> 
          <VisualState x:Name="Unfocused"/> 
         </VisualStateGroup> 

我一直在寻找到你的问题,我可以建议你处理XamComboEditor的Loaded事件,并得到了负责文字的模糊,并设置其不透明度为0。还有就是边框和矩形复制后在Infragistics的论坛,其中一个样本上传:

http://www.infragistics.com/community/forums/t/83793.aspx

在未来,我会建议您发布相关Infragistics的问题控制在那里,becasue你会从Infragistics的专家得到答案。