void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((WpfApp1.TelerikWindow)(target));
                return;

            case 4:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:

            #line 153 "..\..\TelerikWindow.xaml"
                ((Telerik.Windows.Controls.RadButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 154 "..\..\TelerikWindow.xaml"
                ((Telerik.Windows.Controls.RadButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RadButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            //var uri = new Uri("/PresentationFramework.Royale,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35;component/themes/royale.normalcolor.xaml", UriKind.Relative);
            //App.Current.Resources.Source = uri;
            //base.OnStartup(e);


            //Random rand = new Random(DateTime.Now.GetHashCode());
            //int no = rand.Next(0, ThemeManager.StandardThemeNames.Count);
            //string key = ThemeManager.StandardThemeNames[no];
            //StyleManager.ApplicationTheme = ThemeManager.StandardThemes[key];

            //StyleManager.ApplicationTheme = ThemeManager.StandardThemes["Windows8"];
            ////var rootVisual = Application.Current.RootVisual as Grid;



            ThemeManager.StandardThemes.Add("Default", new Themes.DefaultTheme()
            {
            });

            Telerik.Windows.Controls.StyleManager.ApplicationTheme = ThemeManager.StandardThemes["Default"];

            var window = new TelerikWindow();

            window.Show();

            //var window = new Window5();
            //window.Show();



            //App.Current.Resources.FindName("");
            //MaterialDesignThemes.Wpf.ColorZone
            //Win8(AeroLite):  / PresentationFramework.AeroLite, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / aerolite.normalcolor.xaml
            //Win7 (Aero):  / PresentationFramework.Aero, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / aero.normalcolor.xaml
            //WinXP 亮蓝(Royale):  / PresentationFramework.Royale, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / royale.normalcolor.xaml
            //WinXP蓝色(Luna):  / PresentationFramework.Luna, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / luna.normalcolor.xaml
            //WinXP银色(Luna):  / PresentationFramework.Luna, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / luna.metallic.xaml
            //WinXP橄榄色(Luna):  / PresentationFramework.Luna, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / luna.homestead.xaml
            //Win98(Classic):  / PresentationFramework.Classic, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35; component / themes / classic.xaml
        }