Click here to Skip to main content
15,355,944 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Better way to access ViewModels Pin
#realJSOP9-Jan-21 1:03
mva#realJSOP9-Jan-21 1:03 
If you have a viewmodel for each user control, why is the setup performed in the main window anything more than adding the user control to the parent content control (a grid?)? The view should do all of its own setup, and should betotally self-contained at that point. Sure, you may have some sort of global data, but in the end, the user control and its viewmodel should really be completely self-contained, and the main window shouldn't even be involved.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Better way to access ViewModels Pin
michaelbarb10-Jan-21 8:20
Membermichaelbarb10-Jan-21 8:20 
GeneralRe: Better way to access ViewModels Pin
#realJSOP10-Jan-21 11:15
mva#realJSOP10-Jan-21 11:15 
AnswerRe: Better way to access ViewModels Pin
#realJSOP21-Feb-21 0:42
mva#realJSOP21-Feb-21 0:42 
QuestionIDataErrorInfo Pin
#realJSOP28-Dec-20 4:15
mva#realJSOP28-Dec-20 4:15 
AnswerRe: IDataErrorInfo Pin
Gerry Schmitz28-Dec-20 6:24
mveGerry Schmitz28-Dec-20 6:24 
GeneralRe: IDataErrorInfo Pin
#realJSOP28-Dec-20 8:13
mva#realJSOP28-Dec-20 8:13 
GeneralRe: IDataErrorInfo Pin
#realJSOP29-Dec-20 1:56
mva#realJSOP29-Dec-20 1:56 
QuestionDesktop Push Notifications on multiple devices in WPF Desktop Application Pin
Member 1495324013-Dec-20 4:47
MemberMember 1495324013-Dec-20 4:47 
AnswerRe: Desktop Push Notifications on multiple devices in WPF Desktop Application Pin
Gerry Schmitz13-Dec-20 5:32
mveGerry Schmitz13-Dec-20 5:32 
GeneralRe: Desktop Push Notifications on multiple devices in WPF Desktop Application Pin
Member 1495324013-Dec-20 7:09
MemberMember 1495324013-Dec-20 7:09 
GeneralRe: Desktop Push Notifications on multiple devices in WPF Desktop Application Pin
Gerry Schmitz13-Dec-20 19:18
mveGerry Schmitz13-Dec-20 19:18 
AnswerRe: Desktop Push Notifications on multiple devices in WPF Desktop Application Pin
Dave Kreskowiak13-Dec-20 10:20
mveDave Kreskowiak13-Dec-20 10:20 
QuestionDispatcherTimer Pin
michaelbarb8-Dec-20 3:55
Membermichaelbarb8-Dec-20 3:55 
AnswerRe: DispatcherTimer Pin
michaelbarb8-Dec-20 4:12
Membermichaelbarb8-Dec-20 4:12 
AnswerRe: DispatcherTimer Pin
Dave Kreskowiak8-Dec-20 4:15
mveDave Kreskowiak8-Dec-20 4:15 
GeneralRe: DispatcherTimer Pin
michaelbarb8-Dec-20 4:24
Membermichaelbarb8-Dec-20 4:24 
AnswerRe: DispatcherTimer Pin
Gerry Schmitz8-Dec-20 6:30
mveGerry Schmitz8-Dec-20 6:30 
GeneralRe: DispatcherTimer Pin
michaelbarb8-Dec-20 6:37
Membermichaelbarb8-Dec-20 6:37 
QuestionDifferences Pin
michaelbarb30-Nov-20 6:36
Membermichaelbarb30-Nov-20 6:36 
AnswerRe: Differences Pin
Richard MacCutchan30-Nov-20 6:45
mveRichard MacCutchan30-Nov-20 6:45 
QuestionDependencyProperty Binding Problem Pin
Kevin Marois2-Oct-20 6:02
professionalKevin Marois2-Oct-20 6:02 
QuestionReuseable Triggers? Pin
Kevin Marois18-Sep-20 9:07
professionalKevin Marois18-Sep-20 9:07 
Questionload usercontrol in background worker Pin
Rusdy Perkasa8-Sep-20 21:31
MemberRusdy Perkasa8-Sep-20 21:31 
AnswerRe: load usercontrol in background worker Pin
Gerry Schmitz9-Sep-20 4:22
mveGerry Schmitz9-Sep-20 4:22 

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.