Click here to Skip to main content
15,892,746 members
Home / Discussions / WPF
   

WPF

 
QuestionGeneric.xaml location Pin
Mikey_H20-Nov-09 19:04
Mikey_H20-Nov-09 19:04 
AnswerRe: Generic.xaml location Pin
Mark Salsbery22-Nov-09 8:02
Mark Salsbery22-Nov-09 8:02 
GeneralRe: Generic.xaml location Pin
Mikey_H23-Nov-09 14:15
Mikey_H23-Nov-09 14:15 
QuestionWPF Combo box Pin
Member 343001419-Nov-09 23:40
Member 343001419-Nov-09 23:40 
AnswerRe: WPF Combo box Pin
sagar sali20-Nov-09 2:05
sagar sali20-Nov-09 2:05 
GeneralRe: WPF Combo box Pin
rangana peiris20-Nov-09 4:24
rangana peiris20-Nov-09 4:24 
QuestionDataGrid binding to different enums in column Pin
reibor18-Nov-09 20:13
reibor18-Nov-09 20:13 
AnswerRe: DataGrid binding to different enums in column Pin
Eslam Afifi19-Nov-09 10:42
Eslam Afifi19-Nov-09 10:42 
Well, you're not using the MVVM pattern. You should implement the MVVM pattern when you're using WPF (although you sometimes can take shortcuts and not implement the necessary parts to get the job done).
You can learn about MVVM from the links I posted here[^].
So I suggest you create a class PhysicalPropertyViewModel that has the following main properties
- a property AvailableUnits that returns the available enum values for the property (to feed the combobox)
- and a property SelectedUnit that is bound to the SelectedItem of the combobox
when is set, it changes the DisplayValue property value accordingly
- a property DisplayValue which is the value to display according to the selected measurement unit
The TreeView article is how I initially understood most of the MVVM concept. Go read it and then read the MSDN Magazine article. Then read this reply again. After this, if you don't understand what I mean, tell me and I'll try to be more clear. Have a nice day.

Eslam Afifi

GeneralRe: DataGrid binding to different enums in column Pin
reibor22-Nov-09 6:28
reibor22-Nov-09 6:28 
GeneralRe: DataGrid binding to different enums in column [modified] Pin
Eslam Afifi22-Nov-09 10:11
Eslam Afifi22-Nov-09 10:11 
QuestionHow to traverse through items inside ListBox in WPF? Pin
dilipms18-Nov-09 1:18
dilipms18-Nov-09 1:18 
AnswerRe: How to traverse through items inside ListBox in WPF? Pin
Eslam Afifi19-Nov-09 13:33
Eslam Afifi19-Nov-09 13:33 
Questionssrs report(RDL) using silverlight Pin
sundaramoorthy.b18-Nov-09 1:14
sundaramoorthy.b18-Nov-09 1:14 
AnswerRe: ssrs report(RDL) using silverlight Pin
Mark Salsbery22-Nov-09 7:57
Mark Salsbery22-Nov-09 7:57 
QuestionThe Best Chart Tool for WPF Pin
wpftester17-Nov-09 23:10
wpftester17-Nov-09 23:10 
AnswerRe: The Best Chart Tool for WPF Pin
daniel radford18-Nov-09 23:54
daniel radford18-Nov-09 23:54 
QuestionBinding to a Database in WPF using LINQ-SQL Pin
Maninandan17-Nov-09 21:29
Maninandan17-Nov-09 21:29 
QuestionOutofBrowser concept Pin
Gopal_Kanchana17-Nov-09 18:37
Gopal_Kanchana17-Nov-09 18:37 
AnswerRe: OutofBrowser concept Pin
Ravi Bhavnani17-Nov-09 19:06
professionalRavi Bhavnani17-Nov-09 19:06 
GeneralRe: OutofBrowser concept Pin
Gopal_Kanchana17-Nov-09 19:26
Gopal_Kanchana17-Nov-09 19:26 
QuestionWPF UserControl MouseEvents to Winform Pin
EcklerPa 217-Nov-09 18:09
EcklerPa 217-Nov-09 18:09 
AnswerRe: WPF UserControl MouseEvents to Winform Pin
Mark Salsbery17-Nov-09 20:04
Mark Salsbery17-Nov-09 20:04 
GeneralRe: WPF UserControl MouseEvents to Winform Pin
Patrick Eckler18-Nov-09 4:10
Patrick Eckler18-Nov-09 4:10 
QuestionSilver Light Application Pin
rag_Singh16-Nov-09 23:03
rag_Singh16-Nov-09 23:03 
AnswerRe: Silver Light Application Pin
Kunal Chowdhury «IN»11-Dec-09 3:57
professionalKunal Chowdhury «IN»11-Dec-09 3:57 

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.