Click here to Skip to main content
15,115,261 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Richard Deeming7-Oct-21 22:47
mveRichard Deeming7-Oct-21 22:47 
AnswerRe: (xaml, wpf) ScrollViewer Binding confusion (beginner) Pin
Gerry Schmitz8-Oct-21 10:57
mveGerry Schmitz8-Oct-21 10:57 
QuestionCurrency Entry Issue Pin
Kevin Marois7-Oct-21 8:23
professionalKevin Marois7-Oct-21 8:23 
AnswerRe: Currency Entry Issue Pin
Richard Deeming7-Oct-21 22:44
mveRichard Deeming7-Oct-21 22:44 
GeneralRe: Currency Entry Issue Pin
Kevin Marois8-Oct-21 7:03
professionalKevin Marois8-Oct-21 7:03 
QuestionQuick MVVM Design Question Pin
Kevin Marois5-Oct-21 8:34
professionalKevin Marois5-Oct-21 8:34 
AnswerRe: Quick MVVM Design Question Pin
Mycroft Holmes5-Oct-21 14:39
professionalMycroft Holmes5-Oct-21 14:39 
AnswerRe: Quick MVVM Design Question Pin
Pete O'Hanlon5-Oct-21 21:26
mvePete O'Hanlon5-Oct-21 21: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 22:34
mveRichard Deeming5-Oct-21 22:34 
GeneralRe: Quick MVVM Design Question Pin
Gerry Schmitz6-Oct-21 10:52
mveGerry Schmitz6-Oct-21 10:52 
AnswerRe: Quick MVVM Design Question Pin
#realJSOP10-Nov-21 0:37
mva#realJSOP10-Nov-21 0:37 
QuestionPage/Frame Pin
michaelbarb23-Sep-21 11:12
Membermichaelbarb23-Sep-21 11:12 
AnswerRe: Page/Frame Pin
Gerry Schmitz24-Sep-21 13:48
mveGerry Schmitz24-Sep-21 13:48 
GeneralRe: Page/Frame Pin
michaelbarb24-Sep-21 14:24
Membermichaelbarb24-Sep-21 14:24 
QuestionStuck with Weird Exceptions Pin
Kevin Marois7-Sep-21 14:51
professionalKevin Marois7-Sep-21 14:51 
AnswerRe: Stuck with Weird Exceptions Pin
Richard Deeming7-Sep-21 22:28
mveRichard Deeming7-Sep-21 22:28 
GeneralRe: Stuck with Weird Exceptions Pin
Kevin Marois8-Sep-21 5:58
professionalKevin Marois8-Sep-21 5:58 
QuestionDisable ComboBox Hyperlinks Pin
Kevin Marois19-Aug-21 13:43
professionalKevin Marois19-Aug-21 13:43 
AnswerRe: Disable ComboBox Hyperlinks Pin
Richard Deeming19-Aug-21 22:35
mveRichard Deeming19-Aug-21 22:35 
GeneralRe: Disable ComboBox Hyperlinks Pin
Kevin Marois20-Aug-21 5:36
professionalKevin Marois20-Aug-21 5:36 
AnswerRe: Disable ComboBox Hyperlinks Pin
Matt T Heffron25-Aug-21 12:08
professionalMatt T Heffron25-Aug-21 12:08 
QuestionWPF DataGrid - Stretch Row Details Vertically Pin
Kevin Marois29-Jul-21 8:39
professionalKevin Marois29-Jul-21 8:39 
QuestionGet MainWindow from Executing Assembly Pin
Kevin Marois23-Jul-21 9:59
professionalKevin Marois23-Jul-21 9:59 
AnswerRe: Get MainWindow from Executing Assembly Pin
Richard Deeming28-Jul-21 0:18
mveRichard Deeming28-Jul-21 0:18 
GeneralRe: Get MainWindow from Executing Assembly Pin
Kevin Marois28-Jul-21 11:04
professionalKevin Marois28-Jul-21 11: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.