Click here to Skip to main content
15,921,279 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Treeview in expander Pin
pc.rajesh.singh17-Apr-09 5:03
pc.rajesh.singh17-Apr-09 5:03 
Last selected Item of treeview control will display the gray color, on expand of expander for the reason it represent disabled selection.
Select an item in treeviewcontrol, and then click outside the preview of treeviewcontrol to trigger lost focus of treeviewcontrol, the selected item will be gray.
<Style x:Key="TreeViewItemItemTemplateStyle" TargetType="{x:Type TreeViewItem}">
<Style.Resources>
<!-- Background of selected item when focussed -->
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Blue" />
<!-- Background of selected item when not focussed -->
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="LightGray" />
</Style.Resources>
</Style>

you can override the gray color by applying the color you want for not focussed style.
QuestionResource dls Pin
Christian Graus16-Apr-09 15:56
protectorChristian Graus16-Apr-09 15:56 
AnswerRe: Resource dls Pin
Eslam Afifi16-Apr-09 17:06
Eslam Afifi16-Apr-09 17:06 
GeneralRe: Resource dls Pin
Christian Graus16-Apr-09 19:55
protectorChristian Graus16-Apr-09 19:55 
AnswerRe: Resource dls [modified] Pin
Eslam Afifi17-Apr-09 2:20
Eslam Afifi17-Apr-09 2:20 
AnswerRe: Resource dls Pin
Oleg V. Polikarpotchkin16-Apr-09 17:41
Oleg V. Polikarpotchkin16-Apr-09 17:41 
GeneralRe: Resource dls Pin
Christian Graus16-Apr-09 19:54
protectorChristian Graus16-Apr-09 19:54 
GeneralRe: Resource dls Pin
Oleg V. Polikarpotchkin16-Apr-09 23:13
Oleg V. Polikarpotchkin16-Apr-09 23:13 
AnswerRe: Resource dls Pin
Mark Salsbery17-Apr-09 9:02
Mark Salsbery17-Apr-09 9:02 
QuestionHow bind 3 level master-detail scenario into datagrid? Pin
enochenoch2k16-Apr-09 14:51
enochenoch2k16-Apr-09 14:51 
QuestionWCF Issue Pin
Tauseef A16-Apr-09 8:31
Tauseef A16-Apr-09 8:31 
AnswerRe: WCF Issue Pin
Wes Aday16-Apr-09 9:23
professionalWes Aday16-Apr-09 9:23 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 11:06
Tauseef A16-Apr-09 11:06 
AnswerRe: WCF Issue Pin
Wes Aday16-Apr-09 12:08
professionalWes Aday16-Apr-09 12:08 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 14:30
Tauseef A16-Apr-09 14:30 
AnswerRe: WCF Issue Pin
Wes Aday17-Apr-09 3:18
professionalWes Aday17-Apr-09 3:18 
AnswerRe: WCF Issue Pin
Pete O'Hanlon16-Apr-09 12:18
mvePete O'Hanlon16-Apr-09 12:18 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 14:32
Tauseef A16-Apr-09 14:32 
Questiondata contract issu Pin
Tauseef A16-Apr-09 4:26
Tauseef A16-Apr-09 4:26 
Questionsilverlight made website slow very much Pin
Gaurav Mahajan16-Apr-09 1:32
Gaurav Mahajan16-Apr-09 1:32 
AnswerRe: silverlight made website slow very much Pin
Mark Salsbery16-Apr-09 9:46
Mark Salsbery16-Apr-09 9:46 
GeneralRe: silverlight made website slow very much Pin
Gaurav Mahajan16-Apr-09 16:44
Gaurav Mahajan16-Apr-09 16:44 
GeneralRe: silverlight made website slow very much Pin
Mark Salsbery17-Apr-09 8:56
Mark Salsbery17-Apr-09 8:56 
GeneralRe: silverlight made website slow very much Pin
ToddHileHoffer22-Apr-09 14:28
ToddHileHoffer22-Apr-09 14:28 
AnswerRe: silverlight made website slow very much Pin
Braulio Dez18-Apr-09 9:15
Braulio Dez18-Apr-09 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.