Click here to Skip to main content
15,031,550 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Communicating Between ViewModels Pin
Pete O'Hanlon18-Aug-16 3:24
mvePete O'Hanlon18-Aug-16 3:24 
SuggestionRe: Communicating Between ViewModels Pin
AlexaGrey8628-Aug-16 2:43
MemberAlexaGrey8628-Aug-16 2:43 
AnswerRe: Communicating Between ViewModels Pin
Kenneth Haugland18-Aug-16 5:07
professionalKenneth Haugland18-Aug-16 5:07 
QuestionWPF / Prism: Design decision with different views for same region Pin
SutterA17-Aug-16 2:12
MemberSutterA17-Aug-16 2:12 
AnswerRe: WPF / Prism: Design decision with different views for same region Pin
Gerry Schmitz17-Aug-16 6:22
mveGerry Schmitz17-Aug-16 6:22 
GeneralRe: WPF / Prism: Design decision with different views for same region Pin
SutterA18-Aug-16 20:05
MemberSutterA18-Aug-16 20:05 
GeneralRe: WPF / Prism: Design decision with different views for same region Pin
Gerry Schmitz19-Aug-16 4:44
mveGerry Schmitz19-Aug-16 4:44 
AnswerRe: WPF / Prism: Design decision with different views for same region Pin
Mycroft Holmes17-Aug-16 14:31
professionalMycroft Holmes17-Aug-16 14:31 
I have a logon DLL that has a form which needs to be displayed in the main applications main windows navigation Frame. There is no mucking about with app domains but it is a PITA to put it together.
App.xaml - get the arguments passed into the start up exe and pass them to the main window VM.

MainVM has a reference to the main view (I know breaks the MVVM model) and the logon DLL. It gets the URL for the logon view from the DLL code>@"pack://application:,,,/LogonDLLName;component/Views/Logon.xaml and puts it into the frame in the main window.

It subscribes to the LoadCompleted method of the view to get the datacontext of the Logon view. And the PropertyChanged event in the Logon DLL VM.

PropertyChanged gets the content from the logon event and proceeds with the application.

As I said this is a PITA but it does work and we can relatively easily use the same logon DLL for all the applications. I hesitate to put this out there as I'm bloody certain there is a better way to do it.
Never underestimate the power of human stupidity
RAH

AnswerRe: WPF / Prism: Design decision with different views for same region Pin
Pete O'Hanlon19-Aug-16 0:31
mvePete O'Hanlon19-Aug-16 0:31 
QuestionSignalR Project Problem Revisited Pin
Kevin Marois14-Aug-16 17:58
professionalKevin Marois14-Aug-16 17:58 
QuestionBasic WPF binding to collection in combobox. Pin
wind te10-Aug-16 11:48
Memberwind te10-Aug-16 11:48 
AnswerRe: Basic WPF binding to collection in combobox. Pin
Pete O'Hanlon10-Aug-16 12:20
mvePete O'Hanlon10-Aug-16 12:20 
GeneralRe: Basic WPF binding to collection in combobox. Pin
wind te10-Aug-16 18:41
Memberwind te10-Aug-16 18:41 
GeneralRe: Basic WPF binding to collection in combobox. Pin
Pete O'Hanlon10-Aug-16 21:21
mvePete O'Hanlon10-Aug-16 21:21 
AnswerMessage Closed Pin
10-Aug-16 16:19
professionalBeginner Luck10-Aug-16 16:19 
GeneralRe: Basic WPF binding to collection in combobox. Pin
Mycroft Holmes10-Aug-16 17:01
professionalMycroft Holmes10-Aug-16 17:01 
Questionwpf gridview does not have a row selected event Pin
holdorf9-Aug-16 4:26
Memberholdorf9-Aug-16 4:26 
AnswerRe: wpf gridview does not have a row selected event Pin
Richard Deeming9-Aug-16 5:10
mveRichard Deeming9-Aug-16 5:10 
GeneralRe: wpf gridview does not have a row selected event Pin
holdorf9-Aug-16 9:57
Memberholdorf9-Aug-16 9:57 
GeneralRe: wpf gridview does not have a row selected event Pin
Richard Deeming9-Aug-16 10:09
mveRichard Deeming9-Aug-16 10:09 
GeneralRe: wpf gridview does not have a row selected event Pin
holdorf10-Aug-16 2:24
Memberholdorf10-Aug-16 2:24 
QuestionCopy directory with progress bar in WPF Pin
Dadou557-Aug-16 20:12
MemberDadou557-Aug-16 20:12 
AnswerRe: Copy directory with progress bar in WPF Pin
Richard MacCutchan7-Aug-16 21:14
mveRichard MacCutchan7-Aug-16 21:14 
GeneralRe: Copy directory with progress bar in WPF Pin
Dadou557-Aug-16 21:50
MemberDadou557-Aug-16 21:50 
GeneralRe: Copy directory with progress bar in WPF Pin
Pete O'Hanlon7-Aug-16 22:06
mvePete O'Hanlon7-Aug-16 22:06 

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.