Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inheriting a template class Pin
Richard MacCutchan18-Aug-11 9:25
mveRichard MacCutchan18-Aug-11 9:25 
GeneralRe: Inheriting a template class Pin
BobJanova18-Aug-11 1:32
BobJanova18-Aug-11 1:32 
GeneralRe: Inheriting a template class Pin
#realJSOP18-Aug-11 8:16
professional#realJSOP18-Aug-11 8:16 
GeneralRe: Inheriting a template class [modified] Pin
Subin Mavunkal18-Aug-11 19:49
Subin Mavunkal18-Aug-11 19:49 
QuestionGeneric framework or pattern for adding colomns to a WPF ListView Pin
Vincent Beek17-Aug-11 0:28
Vincent Beek17-Aug-11 0:28 
AnswerRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 4:54
BobJanova17-Aug-11 4:54 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
Vincent Beek17-Aug-11 7:19
Vincent Beek17-Aug-11 7:19 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 8:02
SledgeHammer0117-Aug-11 8:02 
I'm not really sure what Bob's response has to do with your question. Nothing at all from what I can tell Smile | :) . This is really a WPF question and not a C# question, but I read both boards and just dealt with this issue myself recently, so I'll help you out Smile | :) .

1) The WPF ListView doesn't support data binding on the GridViewColumnCollection out of the box. You can add support for this, not too difficult, but a little bit of work.
2) Once you have a WPF ListView that can support data binding on the GridViewColumnCollection, its just a matter of having your VM return a collection of columns.
3) Some gotcha's you'll run into:
a) a GridViewColumn can only be owned by one GridViewColumnCollection at a time, so you can't return a GridViewColumnCollection from your VM, you need to return an ObservableCollection<GridViewColumn>.
b) defining a GridViewColumn in code with bindings is a major PITA, so you should devise a way to load them out of a XAML file where you'll again run into "issue a" where you can't share GridViewColumn's.

All these issues are overcomeable... basically what I ended up with was a GridViewEx class that supported two-way binding on the column collection. Remember, you are going to need to save column widths and column order Smile | :) .
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 9:04
BobJanova17-Aug-11 9:04 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 9:36
SledgeHammer0117-Aug-11 9:36 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 9:44
BobJanova17-Aug-11 9:44 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 9:48
SledgeHammer0117-Aug-11 9:48 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova18-Aug-11 1:24
BobJanova18-Aug-11 1:24 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0118-Aug-11 5:04
SledgeHammer0118-Aug-11 5:04 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova18-Aug-11 5:35
BobJanova18-Aug-11 5:35 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0118-Aug-11 5:43
SledgeHammer0118-Aug-11 5:43 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova18-Aug-11 6:16
BobJanova18-Aug-11 6:16 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
Vincent Beek17-Aug-11 20:19
Vincent Beek17-Aug-11 20:19 
QuestionRemove Water Mark frm existing PDF Pin
satish chary garu 16-Aug-11 23:45
satish chary garu 16-Aug-11 23:45 
AnswerRe: Remove Water Mark frm existing PDF PinPopular
Richard MacCutchan17-Aug-11 0:03
mveRichard MacCutchan17-Aug-11 0:03 
AnswerRe: Remove Water Mark frm existing PDF Pin
Hari Om Prakash Sharma17-Aug-11 0:04
Hari Om Prakash Sharma17-Aug-11 0:04 
GeneralRe: Remove Water Mark frm existing PDF Pin
satish chary garu 17-Aug-11 0:08
satish chary garu 17-Aug-11 0:08 
GeneralRe: Remove Water Mark frm existing PDF PinPopular
Dave Kreskowiak17-Aug-11 1:51
mveDave Kreskowiak17-Aug-11 1:51 
GeneralRe: Remove Water Mark frm existing PDF Pin
Simon Bang Terkildsen17-Aug-11 5:51
Simon Bang Terkildsen17-Aug-11 5:51 
AnswerRe: Remove Water Mark frm existing PDF PinPopular
BobJanova17-Aug-11 0:07
BobJanova17-Aug-11 0:07 

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.