Click here to Skip to main content

Silverlight / WPF

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Generic.xaml location PinmvpMark Salsbery9:02 22 Nov '09  
GeneralRe: Generic.xaml location PinmemberMikey_H15:15 23 Nov '09  
QuestionWPF Combo box PinmemberMember 34300140:40 20 Nov '09  
AnswerRe: WPF Combo box Pinmembersagar sali3:05 20 Nov '09  
GeneralRe: WPF Combo box Pinmemberrangana peiris5:24 20 Nov '09  
QuestionDataGrid binding to different enums in column Pinmemberreibor21:13 18 Nov '09  
AnswerRe: DataGrid binding to different enums in column PinmemberEslam Afifi11:42 19 Nov '09  
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 Pinmemberreibor7:28 22 Nov '09  
GeneralRe: DataGrid binding to different enums in column [modified] PinmemberEslam Afifi11:11 22 Nov '09  
QuestionHow to traverse through items inside ListBox in WPF? Pinmemberdilipms2:18 18 Nov '09  
AnswerRe: How to traverse through items inside ListBox in WPF? PinmemberEslam Afifi14:33 19 Nov '09  
Questionssrs report(RDL) using silverlight Pinmembersundaramoorthy.b2:14 18 Nov '09  
AnswerRe: ssrs report(RDL) using silverlight PinmvpMark Salsbery8:57 22 Nov '09  
QuestionThe Best Chart Tool for WPF Pinmemberwpftester0:10 18 Nov '09  
AnswerRe: The Best Chart Tool for WPF Pinmemberdaniel radford0:54 19 Nov '09  
QuestionBinding to a Database in WPF using LINQ-SQL PinmemberManinandan22:29 17 Nov '09  
QuestionOutofBrowser concept PinmemberGopal_Kanchana19:37 17 Nov '09  
AnswerRe: OutofBrowser concept PinmemberRavi Bhavnani20:06 17 Nov '09  
GeneralRe: OutofBrowser concept PinmemberGopal_Kanchana20:26 17 Nov '09  
QuestionWPF UserControl MouseEvents to Winform PinmemberMember 68348119:09 17 Nov '09  
AnswerRe: WPF UserControl MouseEvents to Winform PinmvpMark Salsbery21:04 17 Nov '09  
GeneralRe: WPF UserControl MouseEvents to Winform Pinmemberecklerpa5:10 18 Nov '09  
QuestionSilver Light Application Pinmemberrag_Singh0:03 17 Nov '09  
AnswerRe: Silver Light Application PinmemberKunalChowdhury4:57 11 Dec '09  
QuestionDrawing graphics like in a rectangle or image. PinmemberCaptainSeeSharp9:49 16 Nov '09  

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.5.120210.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid