3GS & WPF Apps in the System Tray
http://gizmodo.com/5307693/iphone-3gs-unlocked-with-purplera1n-%252B-ultrasn0w
http://tippu.blog.co.in/2009/03/09/wpf-placing-your-wpf-application-on-the-system-tray/
First, I just learned that the 3GS is now jailbreakable with publically accessable tools for both Windows and Mac. I don’t have one, but this is great news. The iPhone Dev-Team Blog also has a post regarding the release of their own version of the jailbreak. There’s more to it than this but if you wanna know more: Google.
Second, I was wondering how you could put your Windows Presentaiton Foundation C# Application in the system tray. I found a good tutorail (second down link at the top) but it had some places where it needed fixing (or at least one).
C# had a problem with the Window_Closing event. First “Window” needs to be the name of your window. Mine was “Tray” so it would be “Tray_Closing”. Next, in your xaml file (in my case, “Tray.xaml”) you need to add this to the end of your opening <Window> tag: Closing="Tray_Closing" again, you need to change “Tray” accordingly. So it might end up looking like this:
<Window x:Class="myApp.Tray"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Tray" Height="300" Width="300" Name="winTray"
Closing="Tray_Closing">
For any of you guys that wanna do this, it’s here.
Hope I could help somebody!
