Click here to Skip to main content
12,075,542 members (65,359 online)

Silverlight / WPF

 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 0:52
memberKishoreUHG22-Apr-13 0:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 0:59
professionalMycroft Holmes22-Apr-13 0:59 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 1:08
memberKishoreUHG22-Apr-13 1:08 
AnswerRe: WPF Login in MVVM Issue Pin
Wayne Gaylard22-Apr-13 2:44
mentorWayne Gaylard22-Apr-13 2:44 
I generally override the OnStartup method on my App class and then call my Login View modally, which returns a bool indicating whether login was successful. Something like this (very simplified):-
LoginView login = new LoginView(); //instantiate new login view
login.ShowDialog();
if(login.LoginSuccess)
{
    Mainwindow window = new Mainwindow();
}
else
{
    //do something if login not successful
}
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

AnswerRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 3:52
memberKishoreUHG22-Apr-13 3:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 13:59
professionalMycroft Holmes22-Apr-13 13:59 
QuestionWPF Simular to tree view Pin
Saksida Bojan21-Apr-13 10:52
memberSaksida Bojan21-Apr-13 10:52 
AnswerRe: WPF Simular to tree view Pin
Richard MacCutchan21-Apr-13 23:39
mvpRichard MacCutchan21-Apr-13 23:39 
GeneralRe: WPF Simular to tree view Pin
Saksida Bojan2-May-13 8:41
memberSaksida Bojan2-May-13 8:41 
QuestionWPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 6:10
memberKevin Marois19-Apr-13 6:10 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 9 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid