[英]Silverlight infragistics remove styling on combobox when it is disabled
我在使用Silverlight下的infragistics組合框(NetAdvantage 2012.2)上刪除樣式時遇到了麻煩。 在當前狀態下,幾乎不可見,不透明度設置使文本淺灰色。 查看下面的組合框和常規文本框之間的區別。
我做的每個樣式更改都不會影響組合框在禁用時的不透明度。
下面是我試圖設置的樣式。 我已經嘗試了一百種不同的代碼組合,但是我試圖進行更改。 我已將禁用的不透明度更改為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事件並獲得負責文本模糊的Border和Rectangle,並將它們的Opacity設置為0.此外,Infragistics還有一個重復的帖子。論壇,上傳樣本:
http://www.infragistics.com/community/forums/t/83793.aspx
在將來,我建議您在那里發布與Infragistics控件相關的問題,因為您將從Infragistics專家那里得到答案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.