Tuesday 10 September 2013

Silverlight infragistics remove styling on combobox when it is disabled

Silverlight infragistics remove styling on combobox when it is disabled

Im having real trouble removing the styling on infragistics combobox
(NetAdvantage 2012.2) under silverlight. In its current state its barely
visible with the opacity set down which makes the text light grey. See the
difference between a combobox and a regular textbox below.
Every styling change I make just does not effect the opacity on the
combobox when it is disabled.

below is the styling im trying to set at the moment. I have tried a
hundred different combos of code but this where im trying to make the
changes. I have changed the opacity on disabled to 0 hoping that would
remove whatever item sits over the top of combobox. Please let me know if
im way off course here.
<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>

No comments:

Post a Comment