Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

            using (FileStream fs = new FileStream("tema.xaml", FileMode.Open))
            {
                // Read in ResourceDictionary File
                ResourceDictionary dic =
                   (ResourceDictionary)XamlReader.Load(fs);
                // Clear any previous dictionaries loaded
                Resources.MergedDictionaries.Clear();
                // Add in newly loaded Resource Dictionary
                Resources.MergedDictionaries.Add(dic);
            }

            SolidColorBrush mySolidColorBrush = new SolidColorBrush();
            mySolidColorBrush.Color = Color.FromArgb(255, 47, 47, 47);
            this.Background = mySolidColorBrush;

            this.tmo = RenEditors.Tmo.CreateTmo();

            RenEditors.TmoEditor tmo_ed = new RenEditors.TmoEditor();
            tmo_ed.set_target(this.tmo);

            StackPanel sp = new StackPanel();
            sp.Orientation = Orientation.Vertical;
            sp.Children.Add(tmo_ed);

            Grid.SetColumn(sp, 1);
            Grid.SetRow(sp, 1);
            this.mw_grid.Children.Add(sp);
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

            using (FileStream fs = new FileStream("tema.xaml", FileMode.Open))
            {
                // Read in ResourceDictionary File
                ResourceDictionary dic =
                    (ResourceDictionary)XamlReader.Load(fs);
                // Clear any previous dictionaries loaded
                Resources.MergedDictionaries.Clear();
                // Add in newly loaded Resource Dictionary
                Resources.MergedDictionaries.Add(dic);
            }

            SolidColorBrush mySolidColorBrush = new SolidColorBrush();

            mySolidColorBrush.Color = Color.FromArgb(255, 47, 47, 47);
            this.Background         = mySolidColorBrush;


            this.tmo = RenEditors.Tmo.CreateTmo();

            RenEditors.TmoEditor tmo_ed = new RenEditors.TmoEditor();
            tmo_ed.set_target(this.tmo);

            StackPanel sp = new StackPanel();

            sp.Orientation = Orientation.Vertical;
            sp.Children.Add(tmo_ed);

            Grid.SetColumn(sp, 1);
            Grid.SetRow(sp, 1);
            this.mw_grid.Children.Add(sp);
        }