Thank you Matt and everyone who responded!
This was exactly what I was looking for!
Cheers,
Jackie
From: Matt Ward [ward.m...@gmail.com]
Sent: December 10, 2012 1:44 PM
To: Jackie Sproat
Cc: ironpython-users@python.org
Subject: Re: [Ironpython-users] FW
Hi,
The Window_Loaded event handler is not being run since it is missing
two parameters. This is causing wpf.LoadComponent to not wire it up
for you. If you change the code to the following then the event
handler will run and you will be able to access the window handle.
def Window_Loaded(sel
Hmm. Perhaps you should have a look at the WPF example here:
http://www.ironpython.info/index.php/WPF_Example. That one doesn't try to
load its UI out of an XML file.
There appear to be some tricks applicable to XAML with WPF, relating to
where you can load the XML from:
http://stackoverflow.com
I am simply trying to get the handle to a WPF window, but it doesn't seem to be
working.
I am as new to WPF as I am to IronPython so please forgive me :)
>From what I have read I believe the handle is not getting set in __init__
>because it is only available at run_time(?)
Therefore, have to ad