Click here to Skip to main content
11,576,993 members (58,450 online)

Silverlight / WPF

 
QuestionComboBox in a DataGrid, Binding Problem Pin
shakilahmad1232-Apr-13 1:23
membershakilahmad1232-Apr-13 1:23 
QuestionHello All. Pin
caradri1-Apr-13 23:08
membercaradri1-Apr-13 23:08 
AnswerRe: Hello All. Pin
Kenneth Haugland2-Apr-13 9:21
memberKenneth Haugland2-Apr-13 9:21 
QuestionData display issue with combo box in wpf data grid Pin
ukraju1-Apr-13 7:31
memberukraju1-Apr-13 7:31 
AnswerRe: Data display issue with combo box in wpf data grid Pin
Richard MacCutchan1-Apr-13 21:48
mvpRichard MacCutchan1-Apr-13 21:48 
QuestionGet File Path from ListView Pin
MumbleB31-Mar-13 3:44
memberMumbleB31-Mar-13 3:44 
AnswerRe: Get File Path from ListView Pin
Mycroft Holmes31-Mar-13 12:39
memberMycroft Holmes31-Mar-13 12:39 
GeneralRe: Get File Path from ListView Pin
MumbleB1-Apr-13 0:34
memberMumbleB1-Apr-13 0:34 
GeneralRe: Get File Path from ListView Pin
Mycroft Holmes1-Apr-13 1:23
memberMycroft Holmes1-Apr-13 1:23 
GeneralRe: Get File Path from ListView Pin
MumbleB2-Apr-13 9:10
memberMumbleB2-Apr-13 9:10 
GeneralRe: Get File Path from ListView Pin
Mycroft Holmes2-Apr-13 12:15
memberMycroft Holmes2-Apr-13 12:15 
GeneralRe: Get File Path from ListView Pin
MumbleB3-Apr-13 7:27
memberMumbleB3-Apr-13 7:27 
QuestionCollection of User Controls Pin
Mycroft Holmes30-Mar-13 22:44
memberMycroft Holmes30-Mar-13 22:44 
AnswerRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 14:48
memberSledgeHammer0131-Mar-13 14:48 
You should not expose a collection of user controls, or any control for that matter. Define a class called Section (whatever the hell that is) that contains all the data for a section. Then define an ObservableCollection<Section> and expose that from your VM and bind it to the ListBox ItemsSource. Then simply define the ItemTemplate for the ListBox and you are good to go.

Your ItemTemplate would define the controls and their layout and bind them to the Section object which will be the ListBoxItem content.
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 14:55
memberMycroft Holmes31-Mar-13 14:55 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 15:13
memberSledgeHammer0131-Mar-13 15:13 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 15:30
memberMycroft Holmes31-Mar-13 15:30 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 15:43
memberSledgeHammer0131-Mar-13 15:43 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 15:59
memberMycroft Holmes31-Mar-13 15:59 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 16:20
memberSledgeHammer0131-Mar-13 16:20 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 18:02
memberMycroft Holmes31-Mar-13 18:02 
QuestionWPF ComboBox With User Control Pin
Kevin Marois30-Mar-13 10:24
memberKevin Marois30-Mar-13 10:24 
AnswerRe: WPF ComboBox With User Control(This may not work.) Pin
frazzle-me30-Mar-13 10:52
memberfrazzle-me30-Mar-13 10:52 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
Kevin Marois30-Mar-13 11:09
memberKevin Marois30-Mar-13 11:09 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
frazzle-me30-Mar-13 11:24
memberfrazzle-me30-Mar-13 11:24 
AnswerRe: WPF ComboBox With User Control Pin
SledgeHammer0130-Mar-13 13:19
memberSledgeHammer0130-Mar-13 13:19 
GeneralWindows 8 WPF Theme? Pin
avenger1928-Mar-13 17:20
memberavenger1928-Mar-13 17:20 
AnswerRe: Windows 8 WPF Theme? Pin
Collin Jasnoch3-Apr-13 8:59
memberCollin Jasnoch3-Apr-13 8:59 
GeneralRe: Windows 8 WPF Theme? Pin
Meshack Musundi4-Apr-13 7:48
mvpMeshack Musundi4-Apr-13 7:48 
QuestionC# WPF Accessing parameter of chosen data grid row Pin
johnyjj228-Mar-13 9:55
memberjohnyjj228-Mar-13 9:55 
QuestionExtending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 6:48
memberCoxianuk28-Mar-13 6:48 
AnswerRe: Extending WPF WebBrowser Control Pin
Richard Deeming28-Mar-13 9:19
memberRichard Deeming28-Mar-13 9:19 
GeneralRe: Extending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 10:26
memberCoxianuk28-Mar-13 10:26 
GeneralRe: Extending WPF WebBrowser Control Pin
frazzle-me28-Mar-13 10:52
memberfrazzle-me28-Mar-13 10:52 
QuestionWindows Phone App Development using C# 2010 Pin
TwiztedFreek26-Mar-13 18:16
memberTwiztedFreek26-Mar-13 18:16 
QuestionRe: Windows Phone App Development using C# 2010 Pin
Richard MacCutchan26-Mar-13 23:00
mvpRichard MacCutchan26-Mar-13 23:00 
AnswerRe: Windows Phone App Development using C# 2010 Pin
Abhinav S27-Mar-13 18:02
mvpAbhinav S27-Mar-13 18:02 
QuestionLooking for a windows phone 7.1 XNA programmer Pin
Member 955005525-Mar-13 23:09
memberMember 955005525-Mar-13 23:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Richard MacCutchan26-Mar-13 0:09
mvpRichard MacCutchan26-Mar-13 0:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Marco Bertschi26-Mar-13 1:15
memberMarco Bertschi26-Mar-13 1:15 
QuestionCode-generated buttons in Stackpanel: how to handle events? Pin
Dirk.Bock22-Mar-13 12:24
memberDirk.Bock22-Mar-13 12:24 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Mycroft Holmes22-Mar-13 14:14
memberMycroft Holmes22-Mar-13 14:14 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Gerry Schmitz22-Mar-13 14:51
memberGerry Schmitz22-Mar-13 14:51 
QuestionMVVM Tasks and UI Updating Pin
cjb11022-Mar-13 1:44
membercjb11022-Mar-13 1:44 
AnswerRe: MVVM Tasks and UI Updating Pin
Matt T Heffron22-Mar-13 10:25
memberMatt T Heffron22-Mar-13 10:25 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11024-Mar-13 22:37
membercjb11024-Mar-13 22:37 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11025-Mar-13 1:56
membercjb11025-Mar-13 1:56 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11025-Mar-13 4:45
membercjb11025-Mar-13 4:45 
AnswerRe: MVVM Tasks and UI Updating Pin
Abhinav S25-Mar-13 7:26
mvpAbhinav S25-Mar-13 7:26 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11025-Mar-13 7:36
membercjb11025-Mar-13 7:36 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 2 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid