Skip to content

Instantly share code, notes, and snippets.

@curtismitchell
Created May 22, 2011 20:57
Show Gist options
  • Save curtismitchell/985887 to your computer and use it in GitHub Desktop.
Save curtismitchell/985887 to your computer and use it in GitHub Desktop.
Boo/WPF application that loads external xaml
import System
import System.Windows from PresentationFramework
import System.Windows.Markup from PresentationFramework
import System.IO
class XamlWindow(Window):
def constructor(name):
load_xaml(name)
def load_xaml(name):
xaml_file = File.OpenRead(Path.GetFullPath(name))
self.Content = XamlReader.Load(xaml_file)
Application().Run(XamlWindow("mainui.xaml"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment