Click here to Skip to main content
15,867,594 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: AvalonDock using AvalonDock.ManagedContent not present in Dirkster.AvalonDock package Pin
Gerry Schmitz4-Mar-21 8:24
mveGerry Schmitz4-Mar-21 8:24 
GeneralRe: AvalonDock using AvalonDock.ManagedContent not present in Dirkster.AvalonDock package Pin
sinagot4-Mar-21 10:50
sinagot4-Mar-21 10:50 
QuestionDataGrid Columnm Header Style Pin
Kevin Marois16-Feb-21 14:44
professionalKevin Marois16-Feb-21 14:44 
AnswerRe: DataGrid Columnm Header Style Pin
Gerry Schmitz17-Feb-21 6:14
mveGerry Schmitz17-Feb-21 6:14 
QuestionGridView CellTemplate Pin
#realJSOP13-Feb-21 10:42
mve#realJSOP13-Feb-21 10:42 
AnswerRe: GridView CellTemplate Pin
Gerry Schmitz13-Feb-21 12:50
mveGerry Schmitz13-Feb-21 12:50 
GeneralRe: GridView CellTemplate Pin
#realJSOP13-Feb-21 13:13
mve#realJSOP13-Feb-21 13:13 
AnswerRe: GridView CellTemplate Pin
#realJSOP14-Feb-21 4:49
mve#realJSOP14-Feb-21 4:49 
I found the problem. This is the code that was creating the GridViewColumn:

C#
DataTemplate cellTemplate = // code to create cell template, which binds to the itemsource property

Binding binding = new Binding()...

GridViewColumn column = new GridViewColumn()
{
    Header = "...",
    DisplayMemberBinding = binding,
    CellTemplate = cellTemplate,
};


I had to change it to NOT set the DisplayMemberBinding property:
C#
GridViewColumn column = new GridViewColumn()
{
    Header = "...",
    DisplayMemberBinding = (celltable == null) ? binding : null,
    CellTemplate = cellTemplate,
};


And now it does exactly what I want it to do.
Smile | :)
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: GridView CellTemplate Pin
Gerry Schmitz14-Feb-21 5:53
mveGerry Schmitz14-Feb-21 5:53 
GeneralRe: GridView CellTemplate Pin
#realJSOP14-Feb-21 8:41
mve#realJSOP14-Feb-21 8:41 
GeneralRe: GridView CellTemplate Pin
Gerry Schmitz14-Feb-21 10:48
mveGerry Schmitz14-Feb-21 10:48 
QuestionIcon Strangeness Pin
#realJSOP2-Feb-21 23:36
mve#realJSOP2-Feb-21 23:36 
AnswerRe: Icon Strangeness Pin
Richard Deeming3-Feb-21 0:12
mveRichard Deeming3-Feb-21 0:12 
GeneralRe: Icon Strangeness Pin
#realJSOP3-Feb-21 1:25
mve#realJSOP3-Feb-21 1:25 
AnswerRe: Icon Strangeness Pin
Gerry Schmitz3-Feb-21 7:25
mveGerry Schmitz3-Feb-21 7:25 
QuestionDispatcherTimer Pin
michaelbarb14-Jan-21 6:29
michaelbarb14-Jan-21 6:29 
AnswerRe: DispatcherTimer Pin
Mycroft Holmes14-Jan-21 11:06
professionalMycroft Holmes14-Jan-21 11:06 
GeneralRe: DispatcherTimer Pin
michaelbarb14-Jan-21 11:52
michaelbarb14-Jan-21 11:52 
GeneralRe: DispatcherTimer Pin
Mycroft Holmes14-Jan-21 12:15
professionalMycroft Holmes14-Jan-21 12:15 
GeneralRe: DispatcherTimer Pin
michaelbarb14-Jan-21 13:23
michaelbarb14-Jan-21 13:23 
AnswerRe: DispatcherTimer Pin
Gerry Schmitz15-Jan-21 2:31
mveGerry Schmitz15-Jan-21 2:31 
QuestionBetter way to access ViewModels Pin
Mc_Topaz5-Jan-21 4:11
Mc_Topaz5-Jan-21 4:11 
AnswerRe: Better way to access ViewModels Pin
Gerry Schmitz5-Jan-21 21:01
mveGerry Schmitz5-Jan-21 21:01 
AnswerRe: Better way to access ViewModels Pin
#realJSOP9-Jan-21 1:03
mve#realJSOP9-Jan-21 1:03 
GeneralRe: Better way to access ViewModels Pin
michaelbarb10-Jan-21 8:20
michaelbarb10-Jan-21 8:20 

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.