Click here to Skip to main content
16,006,738 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon25-Apr-11 23:36
mvePete O'Hanlon25-Apr-11 23:36 
GeneralRe: DATAGRID - WPF c# 2010 Pin
arkiboys26-Apr-11 0:08
arkiboys26-Apr-11 0:08 
GeneralRe: DATAGRID - WPF c# 2010 Pin
Pete O'Hanlon26-Apr-11 0:31
mvePete O'Hanlon26-Apr-11 0:31 
QuestionNewbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 1:31
Lee Reid25-Apr-11 1:31 
AnswerRe: Newbie problem: laying out grid issues in silverlight Pin
Pete O'Hanlon25-Apr-11 4:15
mvePete O'Hanlon25-Apr-11 4:15 
AnswerRe: Newbie problem: laying out grid issues in silverlight Pin
SledgeHammer0125-Apr-11 6:33
SledgeHammer0125-Apr-11 6:33 
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 14:14
Lee Reid25-Apr-11 14:14 
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
SledgeHammer0125-Apr-11 14:45
SledgeHammer0125-Apr-11 14:45 
GeneralRe: Newbie problem: laying out grid issues in silverlight Pin
Lee Reid25-Apr-11 16:02
Lee Reid25-Apr-11 16:02 
QuestionAny trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:32
SledgeHammer0121-Apr-11 8:32 
AnswerRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 8:46
Ian Shlasko21-Apr-11 8:46 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:48
SledgeHammer0121-Apr-11 8:48 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 8:48
Ian Shlasko21-Apr-11 8:48 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 8:59
SledgeHammer0121-Apr-11 8:59 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 9:10
Ian Shlasko21-Apr-11 9:10 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 9:33
SledgeHammer0121-Apr-11 9:33 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 10:00
Ian Shlasko21-Apr-11 10:00 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 11:29
SledgeHammer0121-Apr-11 11:29 
Yeah, I ended up having an ApplicationEx.StartupEx method (lol, you can totally tell I come from the MFC / Win32 world with all the "Ex" names) that takes the type for the user application class along with the args and then it creates the application and/or manages the single instance stuff. It does require the user to stub out a Main() and forward the call to my DLL though. I was trying to avoid that. Oh well.

Now I'm just having a bit of trouble figuring out a common place to process the command line for the first and subsequent instances since some of the WPF start up code is syncronous (Application.Run()). I've got it working for the second instance though. It does forward the args to the first instance.

I'm using the WindowsFormsApplicationBase technique to do the singleton app stuff. It does have the different entry points for the first / subsequent start ups (OnStartup / OnStartupNextInstance).

2nd+ instance is going through OnStartupNextInstance and calling a virtual method in ApplicationEx, but 1st instance is a bit trickier since I haven't quite convinced myself if that case should be passed in before the main window is created, but I'm thinking it probably should.

Its weird though... popping up a message box before the main window is created somehow creates the main window...
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 15:27
Ian Shlasko21-Apr-11 15:27 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0121-Apr-11 17:06
SledgeHammer0121-Apr-11 17:06 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Ian Shlasko21-Apr-11 17:22
Ian Shlasko21-Apr-11 17:22 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Pete O'Hanlon22-Apr-11 9:25
mvePete O'Hanlon22-Apr-11 9:25 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
SledgeHammer0122-Apr-11 9:52
SledgeHammer0122-Apr-11 9:52 
GeneralRe: Any trick for *REUSABLE* "Application" class? Pin
Pete O'Hanlon22-Apr-11 9:56
mvePete O'Hanlon22-Apr-11 9:56 
QuestionHmm ...MVVM ... Is this Bad? I can't decide Pin
Jammer21-Apr-11 4:26
Jammer21-Apr-11 4:26 

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.