Click here to Skip to main content
15,892,697 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Why WPF Sucks For Me Today Pin
snorkie18-Feb-16 6:14
professionalsnorkie18-Feb-16 6:14 
GeneralRe: Why WPF Sucks For Me Today Pin
#realJSOP18-Feb-16 6:44
mve#realJSOP18-Feb-16 6:44 
GeneralRe: Why WPF Sucks For Me Today Pin
Cornelius Henning18-Feb-16 6:43
professionalCornelius Henning18-Feb-16 6:43 
GeneralRe: Why WPF Sucks For Me Today Pin
#realJSOP18-Feb-16 6:45
mve#realJSOP18-Feb-16 6:45 
GeneralRe: Why WPF Sucks For Me Today Pin
Cornelius Henning18-Feb-16 7:17
professionalCornelius Henning18-Feb-16 7:17 
GeneralRe: Why WPF Sucks For Me Today Pin
#realJSOP18-Feb-16 7:32
mve#realJSOP18-Feb-16 7:32 
GeneralRe: Why WPF Sucks For Me Today Pin
Cornelius Henning18-Feb-16 7:41
professionalCornelius Henning18-Feb-16 7:41 
GeneralRe: Why WPF Sucks For Me Today Pin
Ian Shlasko18-Feb-16 6:47
Ian Shlasko18-Feb-16 6:47 
Well, it's relatively easy to at least get the window's handle...
C#
new System.Windows.Interop.WindowInteropHelper(Window.GetWindow(depObj)).Handle

And you could always make an extension method with whatever signature you need...
C#
public static IntPtr GetHwnd(this DependencyObject depObj)
{
   return new System.Windows.Interop.WindowInteropHelper(Window.GetWindow(depObj)).Handle;
}

Shove that in a static class somewhere, and you're set... Bit easier than adding a base class to the tree.

EDIT: Oh, and don't whine to me about VS2013... I'm still on VS2010 for almost three years now... Expecting to get VS2015 soon, though Smile | :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Why WPF Sucks For Me Today Pin
#realJSOP18-Feb-16 7:19
mve#realJSOP18-Feb-16 7:19 
GeneralRe: Why WPF Sucks For Me Today Pin
Ian Shlasko18-Feb-16 7:55
Ian Shlasko18-Feb-16 7:55 
Generallatest Internet Explorer rage quit Pin
charlieg18-Feb-16 2:09
charlieg18-Feb-16 2:09 
JokeRe: latest Internet Explorer rage quit Pin
908236518-Feb-16 2:14
908236518-Feb-16 2:14 
GeneralRe: latest Internet Explorer rage quit Pin
RTek2318-Feb-16 2:15
professionalRTek2318-Feb-16 2:15 
GeneralRe: latest Internet Explorer rage quit Pin
OriginalGriff18-Feb-16 2:31
mveOriginalGriff18-Feb-16 2:31 
GeneralRe: latest Internet Explorer rage quit Pin
charlieg18-Feb-16 2:36
charlieg18-Feb-16 2:36 
GeneralRe: latest Internet Explorer rage quit Pin
W Balboos, GHB18-Feb-16 2:49
W Balboos, GHB18-Feb-16 2:49 
GeneralRe: latest Internet Explorer rage quit Pin
charlieg18-Feb-16 2:33
charlieg18-Feb-16 2:33 
GeneralRe: latest Internet Explorer rage quit Pin
Basildane18-Feb-16 2:37
Basildane18-Feb-16 2:37 
GeneralRe: latest Internet Explorer rage quit Pin
charlieg18-Feb-16 3:36
charlieg18-Feb-16 3:36 
GeneralRe: latest Internet Explorer rage quit Pin
Mike Hankey18-Feb-16 2:44
mveMike Hankey18-Feb-16 2:44 
GeneralRe: latest Internet Explorer rage quit Pin
Marc Clifton18-Feb-16 3:06
mvaMarc Clifton18-Feb-16 3:06 
GeneralRe: latest Internet Explorer rage quit Pin
charlieg18-Feb-16 3:37
charlieg18-Feb-16 3:37 
GeneralRe: latest Internet Explorer rage quit Pin
dandy7218-Feb-16 3:52
dandy7218-Feb-16 3:52 
GeneralRe: latest Internet Explorer rage quit Pin
dandy7218-Feb-16 3:48
dandy7218-Feb-16 3:48 
QuestionRe: latest Internet Explorer rage quit Pin
David Crow18-Feb-16 4:59
David Crow18-Feb-16 4:59 

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.