Click here to Skip to main content
15,914,500 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: ObservableCollection Pin
Pete O'Hanlon11-May-09 4:26
mvePete O'Hanlon11-May-09 4:26 
GeneralRe: ObservableCollection Pin
mark_w_11-May-09 4:41
mark_w_11-May-09 4:41 
GeneralRe: ObservableCollection [modified] Pin
RugbyLeague11-May-09 5:02
RugbyLeague11-May-09 5:02 
AnswerRe: ObservableCollection Pin
Niladri_Biswas13-Jun-09 4:09
Niladri_Biswas13-Jun-09 4:09 
QuestionWPF - Namespaces Pin
mark_w_11-May-09 0:18
mark_w_11-May-09 0:18 
AnswerRe: WPF - Namespaces Pin
mark_w_11-May-09 5:33
mark_w_11-May-09 5:33 
AnswerRe: WPF - Namespaces Pin
Niladri_Biswas13-Jun-09 4:13
Niladri_Biswas13-Jun-09 4:13 
QuestionWPF performance problems in planning application Pin
h_c_d10-May-09 23:39
h_c_d10-May-09 23:39 
QuestionSize of a custom shape (DesiredSize) Pin
Pauwels Bart10-May-09 18:15
Pauwels Bart10-May-09 18:15 
AnswerRe: Size of a custom shape (DesiredSize) Pin
Pauwels Bart13-May-09 1:21
Pauwels Bart13-May-09 1:21 
QuestionQuick TextBox Question Pin
BlitzPackage10-May-09 11:46
BlitzPackage10-May-09 11:46 
AnswerRe: Quick TextBox Question Pin
Pete O'Hanlon10-May-09 21:38
mvePete O'Hanlon10-May-09 21:38 
GeneralRe: Quick TextBox Question Pin
BlitzPackage10-May-09 23:26
BlitzPackage10-May-09 23:26 
QuestionHow can I change a StaticResource by code behind Pin
existenc9-May-09 21:44
existenc9-May-09 21:44 
AnswerRe: How can I change a StaticResource by code behind Pin
Philipp Sumi9-May-09 23:19
Philipp Sumi9-May-09 23:19 
GeneralRe: How can I change a StaticResource by code behind Pin
ravikiran_ch23-Sep-11 8:56
ravikiran_ch23-Sep-11 8:56 
AnswerRe: How can I change a StaticResource by code behind Pin
Pete O'Hanlon10-May-09 8:50
mvePete O'Hanlon10-May-09 8:50 
AnswerRe: How can I change a StaticResource by code behind Pin
Niladri_Biswas13-Jun-09 4:24
Niladri_Biswas13-Jun-09 4:24 
AnswerRe: How can I change a StaticResource by code behind Pin
BernalF18-Aug-10 4:42
BernalF18-Aug-10 4:42 
QuestionWPF newbie in it with some problems arround formatting a ListView Pin
existenc9-May-09 8:56
existenc9-May-09 8:56 
AnswerRe: WPF newbie in it with some problems arround formatting a ListView [modified] Pin
Mark Salsbery9-May-09 11:11
Mark Salsbery9-May-09 11:11 
You could probably dig into the ListView style and template to get what you want,
but I personally would use the DataGrid control from the WPF toolkit (assuming you're
using the Grid view on your ListView).

Using the DataGrid, getting your desired look and feel (single cell select, no resizing
columns, no header mouseover effect) would be as simple as something like this:
<wpftk:DataGrid x:Name="dataGrid1" AutoGenerateColumns="True" SelectionUnit="Cell" SelectionMode="Single"
                     CanUserResizeColumns="False" CanUserSortColumns="False"
                     ItemsSource="..." GridLinesVisibility="All" VerticalGridLinesBrush="Black" HeadersVisibility="Column"
                     AlternatingRowBackground="LightSteelBlue" Height="300" >
    <wpftk:DataGrid.ColumnHeaderStyle>
        <Style TargetType="{x:Type wpftk:DataGridColumnHeader}" BasedOn="{StaticResource {x:Type wpftk:DataGridColumnHeader}}">
            <Setter Property="Background" Value="SteelBlue" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
        </Style>
    </wpftk:DataGrid.ColumnHeaderStyle>
</wpftk:DataGrid>


*edit* Also, see Jaime Rodriguez's three part article on the DataGrid:

Dabbling Around the New WPF DataGrid[^]

It's a little "old" but covers the basics well Smile | :)

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

modified on Saturday, May 9, 2009 5:17 PM

GeneralRe: WPF newbie in it with some problems arround formatting a ListView Pin
existenc9-May-09 21:36
existenc9-May-09 21:36 
QuestionIs there a way to run wpfbrowser application in linux? Pin
Krishnraj9-May-09 0:28
Krishnraj9-May-09 0:28 
AnswerRe: Is there a way to run wpfbrowser application in linux? Pin
Philipp Sumi9-May-09 0:47
Philipp Sumi9-May-09 0:47 
QuestionEvent Handling Pin
#realJSOP8-May-09 5:35
professional#realJSOP8-May-09 5:35 

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.