Click here to Skip to main content

Silverlight / WPF

 
AnswerRe: Get File Path from ListView PinmemberMycroft Holmes31-Mar-13 13:39 
GeneralRe: Get File Path from ListView PinmemberMumbleB1-Apr-13 1:34 
GeneralRe: Get File Path from ListView PinmemberMycroft Holmes1-Apr-13 2:23 
GeneralRe: Get File Path from ListView PinmemberMumbleB2-Apr-13 10:10 
GeneralRe: Get File Path from ListView PinmemberMycroft Holmes2-Apr-13 13:15 
GeneralRe: Get File Path from ListView [modified] PinmemberMumbleB3-Apr-13 8:27 
QuestionCollection of User Controls PinmemberMycroft Holmes30-Mar-13 23:44 
AnswerRe: Collection of User Controls PinmemberSledgeHammer0131-Mar-13 15: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 PinmemberMycroft Holmes31-Mar-13 15:55 
GeneralRe: Collection of User Controls PinmemberSledgeHammer0131-Mar-13 16:13 
GeneralRe: Collection of User Controls PinmemberMycroft Holmes31-Mar-13 16:30 
GeneralRe: Collection of User Controls PinmemberSledgeHammer0131-Mar-13 16:43 
GeneralRe: Collection of User Controls PinmemberMycroft Holmes31-Mar-13 16:59 
GeneralRe: Collection of User Controls PinmemberSledgeHammer0131-Mar-13 17:20 
GeneralRe: Collection of User Controls PinmemberMycroft Holmes31-Mar-13 19:02 
QuestionWPF ComboBox With User Control PinmemberKevin Marois30-Mar-13 11:24 
AnswerRe: WPF ComboBox With User Control(This may not work.) Pinmemberfrazzle-me30-Mar-13 11:52 
GeneralRe: WPF ComboBox With User Control(This may not work.) PinmemberKevin Marois30-Mar-13 12:09 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pinmemberfrazzle-me30-Mar-13 12:24 
AnswerRe: WPF ComboBox With User Control PinmemberSledgeHammer0130-Mar-13 14:19 
GeneralWindows 8 WPF Theme? Pinmemberavenger1928-Mar-13 18:20 
AnswerRe: Windows 8 WPF Theme? PinmemberCollin Jasnoch3-Apr-13 9:59 
GeneralRe: Windows 8 WPF Theme? PinmvpMeshack Musundi4-Apr-13 8:48 
QuestionC# WPF Accessing parameter of chosen data grid row Pinmemberjohnyjj228-Mar-13 10:55 
QuestionExtending WPF WebBrowser Control [modified] PinmemberCoxianuk28-Mar-13 7:48 

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
Web04 | 2.8.150326.1 | Last Updated 25 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid