Click here to Skip to main content
15,867,308 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Richard Deeming7-Oct-21 21:47
mveRichard Deeming7-Oct-21 21:47 
AnswerRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Gerry Schmitz8-Oct-21 9:57
mveGerry Schmitz8-Oct-21 9:57 
QuestionCurrency Entry Issue Pin
Kevin Marois7-Oct-21 7:23
professionalKevin Marois7-Oct-21 7:23 
AnswerRe: Currency Entry Issue Pin
Richard Deeming7-Oct-21 21:44
mveRichard Deeming7-Oct-21 21:44 
GeneralRe: Currency Entry Issue Pin
Kevin Marois8-Oct-21 6:03
professionalKevin Marois8-Oct-21 6:03 
QuestionQuick MVVM Design Question Pin
Kevin Marois5-Oct-21 7:34
professionalKevin Marois5-Oct-21 7:34 
AnswerRe: Quick MVVM Design Question Pin
Mycroft Holmes5-Oct-21 13:39
professionalMycroft Holmes5-Oct-21 13:39 
AnswerRe: Quick MVVM Design Question Pin
Pete O'Hanlon5-Oct-21 20:26
subeditorPete O'Hanlon5-Oct-21 20:26 
The first approach is really a "cheating" MVVM approach. You might as well not bother having the VM in there at this point because your view is almost binding directly to the model with only the thinnest of abstractions sitting on top. One of the purposes of the VM is that it is there to act as a guard for your model; suppose that I have a requirement that a model can only be saved if field_A is set and then field_B contains a value from 0 to 10, but if field_A isn't set then field_B can accept anything from 0 to 30. The VM is the place to ensure that this guardrail is enabled; it ensures the model is always pure before you attempt to save it.

GeneralRe: Quick MVVM Design Question Pin
Richard Deeming5-Oct-21 21:34
mveRichard Deeming5-Oct-21 21:34 
GeneralRe: Quick MVVM Design Question Pin
Gerry Schmitz6-Oct-21 9:52
mveGerry Schmitz6-Oct-21 9:52 
AnswerRe: Quick MVVM Design Question Pin
#realJSOP9-Nov-21 23:37
mve#realJSOP9-Nov-21 23:37 
QuestionPage/Frame Pin
michaelbarb23-Sep-21 10:12
michaelbarb23-Sep-21 10:12 
AnswerRe: Page/Frame Pin
Gerry Schmitz24-Sep-21 12:48
mveGerry Schmitz24-Sep-21 12:48 
GeneralRe: Page/Frame Pin
michaelbarb24-Sep-21 13:24
michaelbarb24-Sep-21 13:24 
QuestionStuck with Weird Exceptions Pin
Kevin Marois7-Sep-21 13:51
professionalKevin Marois7-Sep-21 13:51 
AnswerRe: Stuck with Weird Exceptions Pin
Richard Deeming7-Sep-21 21:28
mveRichard Deeming7-Sep-21 21:28 
GeneralRe: Stuck with Weird Exceptions Pin
Kevin Marois8-Sep-21 4:58
professionalKevin Marois8-Sep-21 4:58 
QuestionDisable ComboBox Hyperlinks Pin
Kevin Marois19-Aug-21 12:43
professionalKevin Marois19-Aug-21 12:43 
AnswerRe: Disable ComboBox Hyperlinks Pin
Richard Deeming19-Aug-21 21:35
mveRichard Deeming19-Aug-21 21:35 
GeneralRe: Disable ComboBox Hyperlinks Pin
Kevin Marois20-Aug-21 4:36
professionalKevin Marois20-Aug-21 4:36 
AnswerRe: Disable ComboBox Hyperlinks Pin
Matt T Heffron25-Aug-21 11:08
professionalMatt T Heffron25-Aug-21 11:08 
QuestionWPF DataGrid - Stretch Row Details Vertically Pin
Kevin Marois29-Jul-21 7:39
professionalKevin Marois29-Jul-21 7:39 
QuestionGet MainWindow from Executing Assembly Pin
Kevin Marois23-Jul-21 8:59
professionalKevin Marois23-Jul-21 8:59 
AnswerRe: Get MainWindow from Executing Assembly Pin
Richard Deeming27-Jul-21 23:18
mveRichard Deeming27-Jul-21 23:18 
GeneralRe: Get MainWindow from Executing Assembly Pin
Kevin Marois28-Jul-21 10:04
professionalKevin Marois28-Jul-21 10:04 

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.