Click here to Skip to main content
15,892,517 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Navigation in Window Pin
GomathiR11-Mar-09 1:49
GomathiR11-Mar-09 1:49 
GeneralRe: Navigation in Window Pin
Pete O'Hanlon11-Mar-09 2:15
mvePete O'Hanlon11-Mar-09 2:15 
QuestionRole-Based Authorization(urgent) Pin
Ramkumar_S9-Mar-09 19:37
Ramkumar_S9-Mar-09 19:37 
AnswerRe: Role-Based Authorization(urgent) Pin
Braulio Dez13-Mar-09 21:28
Braulio Dez13-Mar-09 21:28 
QuestionMultibinding Validation Pin
Jammer9-Mar-09 5:27
Jammer9-Mar-09 5:27 
AnswerRe: Multibinding Validation Pin
ABitSmart9-Mar-09 7:34
ABitSmart9-Mar-09 7:34 
GeneralRe: Multibinding Validation Pin
Jammer9-Mar-09 23:14
Jammer9-Mar-09 23:14 
QuestionHow to make the forground of the selected item in the ListView? Pin
inkfish9-Mar-09 4:28
inkfish9-Mar-09 4:28 
I'm writing a listview:
<StackPanel Margin="8">
  <ListView Name="listView" ItemsSource="{Binding}">
    <ListView.View>
      <GridView>
        <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" />
        <GridViewColumn Header="Age" DisplayMemberBinding="{Binding Age}" />
        <GridViewColumn Header="Grade">
          <GridViewColumn.CellTemplate>
            <DataTemplate>
              <TextBlock Text="{Binding Grade}" Foreground="{Binding GradeColor}"/>
            </DataTemplate>
          </GridViewColumn.CellTemplate>
        </GridViewColumn>
      </GridView>
    </ListView.View>
  </ListView>
</StackPanel>

The foreground color of column 'Grade' is decided by the property GradeColor. It can be Green, Yello and Red.

When I select an item in the listview, the background color of the selected item turned to blue, and the foreground color of the first two column turned to white, but the foreground of the 'Grade' column didn't change to white, which cause the text is unreadable when the item is selected.

Is there any way that I can make the foreground of the 'Grade' column to be white like the other columns when the item is selected? Thx!
AnswerRe: How to make the forground of the selected item in the ListView? Pin
Ray Cassick9-Mar-09 5:42
Ray Cassick9-Mar-09 5:42 
GeneralRe: How to make the forground of the selected item in the ListView? Pin
inkfish9-Mar-09 15:10
inkfish9-Mar-09 15:10 
QuestionCan i change button color on mouse over in the xaml ? Pin
Yanshof9-Mar-09 0:30
Yanshof9-Mar-09 0:30 
AnswerRe: Can i change button color on mouse over in the xaml ? Pin
ABitSmart9-Mar-09 0:48
ABitSmart9-Mar-09 0:48 
QuestionThe format string which put into textbox Pin
Archy_Yu9-Mar-09 0:26
Archy_Yu9-Mar-09 0:26 
AnswerRe: The format string which put into textbox Pin
Mark Salsbery9-Mar-09 6:06
Mark Salsbery9-Mar-09 6:06 
AnswerRe: The format string which put into textbox Pin
johnsontroye12-Mar-09 13:52
johnsontroye12-Mar-09 13:52 
Generalsilverlight vs2005 [modified] Pin
Ramkumar_S9-Mar-09 0:15
Ramkumar_S9-Mar-09 0:15 
GeneralRe: silverlight vs2005 Pin
Mark Salsbery9-Mar-09 6:04
Mark Salsbery9-Mar-09 6:04 
Question1DateEdit control in WPF application Pin
jaylinuxguru8-Mar-09 18:53
jaylinuxguru8-Mar-09 18:53 
AnswerRe: 1DateEdit control in WPF application Pin
ABitSmart8-Mar-09 19:34
ABitSmart8-Mar-09 19:34 
AnswerRe: 1DateEdit control in WPF application Pin
Pete O'Hanlon8-Mar-09 22:22
mvePete O'Hanlon8-Mar-09 22:22 
QuestionIsEnabled binding in contextmenu does not work. Pin
Pauwels Bart7-Mar-09 21:25
Pauwels Bart7-Mar-09 21:25 
AnswerRe: IsEnabled binding in contextmenu does not work. Pin
ABitSmart8-Mar-09 0:23
ABitSmart8-Mar-09 0:23 
QuestionBinding To A Collection Within A Collection Pin
BlitzPackage6-Mar-09 14:04
BlitzPackage6-Mar-09 14:04 
AnswerRe: Binding To A Collection Within A Collection Pin
ABitSmart6-Mar-09 18:02
ABitSmart6-Mar-09 18:02 
QuestionWPF vs. Pentaho Pin
puromtec16-Mar-09 10:13
puromtec16-Mar-09 10:13 

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.