Member_2_1348041
asked on
WPF "defaults"? - Display issues
Hi there...
I designed a ListView using WPF, and - for example - for the selected Items I have a nice looking background gradient:
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="ListBoxItem.IsSe lected" Value="True"/>
</MultiTrigger.Conditions>
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="1,0">
<GradientStop Color="#FFFFD1FF" Offset="0.986"/>
<GradientStop Color="#FFF8B2F8" Offset="0.5"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</MultiTrigger>
However, when I run this application on a Windows Server Standard edition it reverts back to the standard look and feel for a ListView, so the selected item has black text on a dark blue background.
First of all... is there anything I can do to stop this? To make the listview behave the same across the board.
Failing that, can I change the "fallback" scheme for the ListView. So basically I'd be instructing the system to use the LinearGradientBrush IF IT CAN, but if not, then at least use a paler solid background brush instead?
Cheers
Pino
I designed a ListView using WPF, and - for example - for the selected Items I have a nice looking background gradient:
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="ListBoxItem.IsSe
</MultiTrigger.Conditions>
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="1,0">
<GradientStop Color="#FFFFD1FF" Offset="0.986"/>
<GradientStop Color="#FFF8B2F8" Offset="0.5"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</MultiTrigger>
However, when I run this application on a Windows Server Standard edition it reverts back to the standard look and feel for a ListView, so the selected item has black text on a dark blue background.
First of all... is there anything I can do to stop this? To make the listview behave the same across the board.
Failing that, can I change the "fallback" scheme for the ListView. So basically I'd be instructing the system to use the LinearGradientBrush IF IT CAN, but if not, then at least use a paler solid background brush instead?
Cheers
Pino
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Et voilá
ASKER