Click here to Skip to main content
15,915,740 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Silverlight App versus Silverlight Busines App Pin
Abhinav S25-Jan-12 0:45
Abhinav S25-Jan-12 0:45 
Questiondynamicaly open elements from a xaml resource Pin
Giorgi Nistor23-Jan-12 22:37
Giorgi Nistor23-Jan-12 22:37 
AnswerRe: dynamicaly open elements from a xaml resource Pin
Giorgi Nistor23-Jan-12 23:50
Giorgi Nistor23-Jan-12 23:50 
GeneralRe: dynamicaly open elements from a xaml resource Pin
Giorgi Nistor25-Jan-12 4:07
Giorgi Nistor25-Jan-12 4:07 
QuestionMVVM architecture Pin
mi_n22-Jan-12 21:18
mi_n22-Jan-12 21:18 
AnswerRe: MVVM architecture Pin
Wayne Gaylard22-Jan-12 21:59
professionalWayne Gaylard22-Jan-12 21:59 
GeneralRe: MVVM architecture Pin
mi_n23-Jan-12 8:51
mi_n23-Jan-12 8:51 
GeneralRe: MVVM architecture Pin
Dean Oliver23-Jan-12 18:35
Dean Oliver23-Jan-12 18:35 
GeneralRe: MVVM architecture Pin
mi_n24-Jan-12 21:03
mi_n24-Jan-12 21:03 
AnswerRe: MVVM architecture Pin
Dean Oliver25-Jan-12 19:35
Dean Oliver25-Jan-12 19:35 
Questionconnectionstring Pin
arkiboys20-Jan-12 1:10
arkiboys20-Jan-12 1:10 
SuggestionRe: connectionstring Pin
Dean Oliver27-Jan-12 22:33
Dean Oliver27-Jan-12 22:33 
GeneralRe: connectionstring Pin
arkiboys28-Jan-12 20:19
arkiboys28-Jan-12 20:19 
QuestionWPF Listbox items Pin
programmervb.netc++19-Jan-12 7:22
programmervb.netc++19-Jan-12 7:22 
AnswerRe: WPF Listbox items Pin
Dean Oliver23-Jan-12 19:02
Dean Oliver23-Jan-12 19:02 
QuestionHow to refer ViewModel from user-control code behind? Pin
sbkk16-Jan-12 11:54
sbkk16-Jan-12 11:54 
AnswerRe: How to refer ViewModel from user-control code behind? Pin
Mycroft Holmes16-Jan-12 13:07
professionalMycroft Holmes16-Jan-12 13:07 
AnswerRe: How to refer ViewModel from user-control code behind? Pin
Pete O'Hanlon16-Jan-12 22:29
mvePete O'Hanlon16-Jan-12 22:29 
GeneralRe: How to refer ViewModel from user-control code behind? Pin
sbkk17-Jan-12 4:59
sbkk17-Jan-12 4:59 
GeneralRe: How to refer ViewModel from user-control code behind? Pin
Pete O'Hanlon17-Jan-12 5:21
mvePete O'Hanlon17-Jan-12 5:21 
JokeRe: How to refer ViewModel from user-control code behind? Pin
Tom Delany24-Jan-12 11:25
Tom Delany24-Jan-12 11:25 
GeneralRe: How to refer ViewModel from user-control code behind? Pin
Pete O'Hanlon24-Jan-12 12:22
mvePete O'Hanlon24-Jan-12 12:22 
GeneralRe: How to refer ViewModel from user-control code behind? Pin
sbkk19-Jan-12 5:20
sbkk19-Jan-12 5:20 
Thank you very much Collin. This solution worked very well for me.
Can you please help me with one more problem? A listbox in the user control is not displaying any data. Here are the details :
The user control (ucPlane) datacontext is set to PlaneListViewModel. The PlaneListViewModel is having
a public property that provides an ObservableCollection of PlaneViewModel objects. This property is called PlaneList.
The listbox itemsource is set as follows :

HTML
<ListBox x:Name="lstPlane" 
                         ItemsSource="{Binding Path=PlaneList}"
                         >
</ListBox>


A Datatemplate defined in the
HTML
<UserControl.Resources>
section is defined as follows :
HTML
<DataTemplate DataType="{x:Type viewModel:PlaneViewModel}">
......
</DataTemplate>


Can you please provide an example or link to an appropriate example that does what I want to do? I searched on the net for a solution but they seem to be too complex for me. I just want to bind a listbox to an ObservableCollection by using 2 view models - PlaneListViewModel and PlaneViewModel.
GeneralRe: How to refer ViewModel from user-control code behind? Pin
sbkk25-Jan-12 3:44
sbkk25-Jan-12 3:44 
QuestionI wanna retrieve value from the hidden column in datagrid in silverlight 4 Pin
mdrizwan_115-Jan-12 18:35
mdrizwan_115-Jan-12 18: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.