/// <summary>
        /// Gets the sounds.
        /// </summary>
        /// <param name="obj">The object.</param>
        /// <returns></returns>
        public static SoundSourceCollection GetSounds(DependencyObject obj)
        {
            var collection = (SoundSourceCollection)obj.GetValue(SoundsProperty);
            if (collection == null)
            {
                collection = new SoundSourceCollection();
                obj.SetValue(SoundsProperty, collection);
            }

            return collection;
        }
        private void InitializeResources()
        {
            // Resource - [Sounds] SoundSourceCollection
            var r_0_sounds = new SoundSourceCollection();

            SoundManager.Instance.AddSound("Click");
            r_0_sounds.Add(new SoundSource {
                SoundType = SoundType.ButtonsClick, SoundAsset = "Click", Volume = 1f
            });
            SoundManager.Instance.AddSound("KeyPress");
            r_0_sounds.Add(new SoundSource {
                SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress", Volume = 1f
            });
            SoundManager.Instance.AddSound("Move");
            r_0_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlMove, SoundAsset = "Move", Volume = 1f
            });
            SoundManager.Instance.AddSound("Select");
            r_0_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlSelect, SoundAsset = "Select", Volume = 1f
            });
            this.Add("Sounds", r_0_sounds);
        }
 private void InitializeResources()
 {
     // Resource - [ToolTipText] String
     this.Add("ToolTipText", "Click to open message box");
     // Resource - [TitleResource] String
     this.Add("TitleResource", "Basic UI Example");
     // Resource - [logoSunburn] BitmapImage
     BitmapImage r_2_bm = new BitmapImage();
     r_2_bm.TextureAsset = "Images/SunBurn";
     this.Add("logoSunburn", r_2_bm);
     // Resource - [buttonStyle] Style
     var r_3_s_bo = this[typeof(Button)];
     Style r_3_s = new Style(typeof(Button), r_3_s_bo as Style);
     Setter r_3_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255)));
     r_3_s.Setters.Add(r_3_s_S_0);
     Setter r_3_s_S_1 = new Setter(Button.WidthProperty, 200F);
     r_3_s.Setters.Add(r_3_s_S_1);
     Setter r_3_s_S_2 = new Setter(Button.PaddingProperty, new Thickness(2F));
     r_3_s.Setters.Add(r_3_s_S_2);
     this.Add("buttonStyle", r_3_s);
     // Resource - [logoEmptyKeys] BitmapImage
     BitmapImage r_4_bm = new BitmapImage();
     r_4_bm.TextureAsset = "Images/EmptyKeysLogoTextSmall";
     this.Add("logoEmptyKeys", r_4_bm);
     // Resource - [buttonAnimStyle] Style
     var r_5_s_bo = this[typeof(Button)];
     Style r_5_s = new Style(typeof(Button), r_5_s_bo as Style);
     Setter r_5_s_S_0 = new Setter(Button.WidthProperty, 200F);
     r_5_s.Setters.Add(r_5_s_S_0);
     Setter r_5_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F));
     r_5_s.Setters.Add(r_5_s_S_1);
     Setter r_5_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false);
     r_5_s.Setters.Add(r_5_s_S_2);
     EventTrigger r_5_s_ET_0 = new EventTrigger(Button.MouseEnterEvent);
     r_5_s.Triggers.Add(r_5_s_ET_0);
     BeginStoryboard r_5_s_ET_0_AC_0 = new BeginStoryboard();
     r_5_s_ET_0_AC_0.Name = "r_5_s_ET_0_AC_0";
     r_5_s_ET_0.AddAction(r_5_s_ET_0_AC_0);
     Storyboard r_5_s_ET_0_AC_0_SB = new Storyboard();
     r_5_s_ET_0_AC_0.Storyboard = r_5_s_ET_0_AC_0_SB;
     r_5_s_ET_0_AC_0_SB.Name = "r_5_s_ET_0_AC_0_SB";
     ThicknessAnimation r_5_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_5_s_ET_0_AC_0_SB_TL_0.Name = "r_5_s_ET_0_AC_0_SB_TL_0";
     r_5_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_5_s_ET_0_AC_0_SB_TL_0.From = new Thickness(0F, 1F, 0F, 1F);
     r_5_s_ET_0_AC_0_SB_TL_0.To = new Thickness(0F, 5F, 0F, 5F);
     SineEase r_5_s_ET_0_AC_0_SB_TL_0_EA = new SineEase();
     r_5_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_5_s_ET_0_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_5_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty);
     r_5_s_ET_0_AC_0_SB.Children.Add(r_5_s_ET_0_AC_0_SB_TL_0);
     FloatAnimation r_5_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation();
     r_5_s_ET_0_AC_0_SB_TL_1.Name = "r_5_s_ET_0_AC_0_SB_TL_1";
     r_5_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_5_s_ET_0_AC_0_SB_TL_1.To = 220F;
     SineEase r_5_s_ET_0_AC_0_SB_TL_1_EA = new SineEase();
     r_5_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_5_s_ET_0_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_5_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty);
     r_5_s_ET_0_AC_0_SB.Children.Add(r_5_s_ET_0_AC_0_SB_TL_1);
     EventTrigger r_5_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent);
     r_5_s.Triggers.Add(r_5_s_ET_1);
     BeginStoryboard r_5_s_ET_1_AC_0 = new BeginStoryboard();
     r_5_s_ET_1_AC_0.Name = "r_5_s_ET_1_AC_0";
     r_5_s_ET_1.AddAction(r_5_s_ET_1_AC_0);
     Storyboard r_5_s_ET_1_AC_0_SB = new Storyboard();
     r_5_s_ET_1_AC_0.Storyboard = r_5_s_ET_1_AC_0_SB;
     r_5_s_ET_1_AC_0_SB.Name = "r_5_s_ET_1_AC_0_SB";
     ThicknessAnimation r_5_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_5_s_ET_1_AC_0_SB_TL_0.Name = "r_5_s_ET_1_AC_0_SB_TL_0";
     r_5_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_5_s_ET_1_AC_0_SB_TL_0.From = new Thickness(0F, 5F, 0F, 5F);
     r_5_s_ET_1_AC_0_SB_TL_0.To = new Thickness(0F, 1F, 0F, 1F);
     SineEase r_5_s_ET_1_AC_0_SB_TL_0_EA = new SineEase();
     r_5_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_5_s_ET_1_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_5_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty);
     r_5_s_ET_1_AC_0_SB.Children.Add(r_5_s_ET_1_AC_0_SB_TL_0);
     FloatAnimation r_5_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation();
     r_5_s_ET_1_AC_0_SB_TL_1.Name = "r_5_s_ET_1_AC_0_SB_TL_1";
     r_5_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_5_s_ET_1_AC_0_SB_TL_1.To = 200F;
     SineEase r_5_s_ET_1_AC_0_SB_TL_1_EA = new SineEase();
     r_5_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_5_s_ET_1_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_5_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty);
     r_5_s_ET_1_AC_0_SB.Children.Add(r_5_s_ET_1_AC_0_SB_TL_1);
     this.Add("buttonAnimStyle", r_5_s);
     // Resource - [MessageBoxButtonYes] String
     this.Add("MessageBoxButtonYes", "Yes!");
     // Resource - [Sounds] SoundSourceCollection
     var r_7_sounds = new SoundSourceCollection();
     r_7_sounds.Add(new SoundSource { SoundType = SoundType.ButtonsClick, SoundAsset = "Click" });
     SoundManager.Instance.AddSound("Click");
     r_7_sounds.Add(new SoundSource { SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress" });
     SoundManager.Instance.AddSound("KeyPress");
     r_7_sounds.Add(new SoundSource { SoundType = SoundType.TabControlMove, SoundAsset = "Move" });
     SoundManager.Instance.AddSound("Move");
     r_7_sounds.Add(new SoundSource { SoundType = SoundType.TabControlSelect, SoundAsset = "Select" });
     SoundManager.Instance.AddSound("Select");
     this.Add("Sounds", r_7_sounds);
     ImageManager.Instance.AddImage("Images/SunBurn");
     ImageManager.Instance.AddImage("Images/EmptyKeysLogoTextSmall");
     FontManager.Instance.AddFont("Segoe UI", 13.33333F, FontStyle.Regular, "Segoe_UI_10_Regular");
     FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold");
     FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
 }
 private void InitializeResources() {
     // Resource - [HydrogenIcon] BitmapImage
     BitmapImage r_0_bm = new BitmapImage();
     r_0_bm.TextureAsset = "ImagesUI/hydrogen_res";
     this.Add("HydrogenIcon", r_0_bm);
     // Resource - [BiomassIcon] BitmapImage
     BitmapImage r_1_bm = new BitmapImage();
     r_1_bm.TextureAsset = "ImagesUI/biomass_res";
     this.Add("BiomassIcon", r_1_bm);
     // Resource - [CopperIcon] BitmapImage
     BitmapImage r_2_bm = new BitmapImage();
     r_2_bm.TextureAsset = "ImagesUI/copper_res";
     this.Add("CopperIcon", r_2_bm);
     // Resource - [LeadIcon] BitmapImage
     BitmapImage r_3_bm = new BitmapImage();
     r_3_bm.TextureAsset = "ImagesUI/lead_res";
     this.Add("LeadIcon", r_3_bm);
     // Resource - [AluminiumIcon] BitmapImage
     BitmapImage r_4_bm = new BitmapImage();
     r_4_bm.TextureAsset = "ImagesUI/aluminium_res";
     this.Add("AluminiumIcon", r_4_bm);
     // Resource - [NaturalGasIcon] BitmapImage
     BitmapImage r_5_bm = new BitmapImage();
     r_5_bm.TextureAsset = "ImagesUI/gas_res";
     this.Add("NaturalGasIcon", r_5_bm);
     // Resource - [PropaneIcon] BitmapImage
     BitmapImage r_6_bm = new BitmapImage();
     r_6_bm.TextureAsset = "ImagesUI/propane_res";
     this.Add("PropaneIcon", r_6_bm);
     // Resource - [DiamondIcon] BitmapImage
     BitmapImage r_7_bm = new BitmapImage();
     r_7_bm.TextureAsset = "ImagesUI/diamond_res";
     this.Add("DiamondIcon", r_7_bm);
     // Resource - [MonoGameLogo] BitmapImage
     BitmapImage r_8_bm = new BitmapImage();
     r_8_bm.TextureAsset = "Images/MonogameLogo";
     this.Add("MonoGameLogo", r_8_bm);
     // Resource - [MiningIcon] BitmapImage
     BitmapImage r_9_bm = new BitmapImage();
     r_9_bm.TextureAsset = "ImagesUI/mine_build";
     this.Add("MiningIcon", r_9_bm);
     // Resource - [TimberIcon] BitmapImage
     BitmapImage r_10_bm = new BitmapImage();
     r_10_bm.TextureAsset = "ImagesUI/timber_res";
     this.Add("TimberIcon", r_10_bm);
     // Resource - [TitaniumIcon] BitmapImage
     BitmapImage r_11_bm = new BitmapImage();
     r_11_bm.TextureAsset = "ImagesUI/titanium_res";
     this.Add("TitaniumIcon", r_11_bm);
     // Resource - [Building2] BitmapImage
     BitmapImage r_12_bm = new BitmapImage();
     r_12_bm.TextureAsset = "ImagesUI/building2";
     this.Add("Building2", r_12_bm);
     // Resource - [Building1] BitmapImage
     BitmapImage r_13_bm = new BitmapImage();
     r_13_bm.TextureAsset = "ImagesUI/building1";
     this.Add("Building1", r_13_bm);
     // Resource - [Sounds] SoundSourceCollection
     var r_14_sounds = new SoundSourceCollection();
     r_14_sounds.Add(new SoundSource { SoundType = SoundType.ButtonsClick, SoundAsset = "Click" });
     SoundManager.Instance.AddSound("Click");
     r_14_sounds.Add(new SoundSource { SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress" });
     SoundManager.Instance.AddSound("KeyPress");
     r_14_sounds.Add(new SoundSource { SoundType = SoundType.TabControlMove, SoundAsset = "Move" });
     SoundManager.Instance.AddSound("Move");
     r_14_sounds.Add(new SoundSource { SoundType = SoundType.TabControlSelect, SoundAsset = "Select" });
     SoundManager.Instance.AddSound("Select");
     this.Add("Sounds", r_14_sounds);
     // Resource - [buttonAnimStyle] Style
     var r_15_s_bo = this[typeof(Button)];
     Style r_15_s = new Style(typeof(Button), r_15_s_bo as Style);
     Setter r_15_s_S_0 = new Setter(Button.WidthProperty, 200F);
     r_15_s.Setters.Add(r_15_s_S_0);
     Setter r_15_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F));
     r_15_s.Setters.Add(r_15_s_S_1);
     Setter r_15_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false);
     r_15_s.Setters.Add(r_15_s_S_2);
     EventTrigger r_15_s_ET_0 = new EventTrigger(Button.MouseEnterEvent);
     r_15_s.Triggers.Add(r_15_s_ET_0);
     BeginStoryboard r_15_s_ET_0_AC_0 = new BeginStoryboard();
     r_15_s_ET_0_AC_0.Name = "r_15_s_ET_0_AC_0";
     r_15_s_ET_0.AddAction(r_15_s_ET_0_AC_0);
     Storyboard r_15_s_ET_0_AC_0_SB = new Storyboard();
     r_15_s_ET_0_AC_0.Storyboard = r_15_s_ET_0_AC_0_SB;
     r_15_s_ET_0_AC_0_SB.Name = "r_15_s_ET_0_AC_0_SB";
     ThicknessAnimation r_15_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_15_s_ET_0_AC_0_SB_TL_0.Name = "r_15_s_ET_0_AC_0_SB_TL_0";
     r_15_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_15_s_ET_0_AC_0_SB_TL_0.From = new Thickness(0F, 1F, 0F, 1F);
     r_15_s_ET_0_AC_0_SB_TL_0.To = new Thickness(0F, 5F, 0F, 5F);
     SineEase r_15_s_ET_0_AC_0_SB_TL_0_EA = new SineEase();
     r_15_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_15_s_ET_0_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_15_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty);
     r_15_s_ET_0_AC_0_SB.Children.Add(r_15_s_ET_0_AC_0_SB_TL_0);
     FloatAnimation r_15_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation();
     r_15_s_ET_0_AC_0_SB_TL_1.Name = "r_15_s_ET_0_AC_0_SB_TL_1";
     r_15_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_15_s_ET_0_AC_0_SB_TL_1.To = 220F;
     SineEase r_15_s_ET_0_AC_0_SB_TL_1_EA = new SineEase();
     r_15_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_15_s_ET_0_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_15_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty);
     r_15_s_ET_0_AC_0_SB.Children.Add(r_15_s_ET_0_AC_0_SB_TL_1);
     EventTrigger r_15_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent);
     r_15_s.Triggers.Add(r_15_s_ET_1);
     BeginStoryboard r_15_s_ET_1_AC_0 = new BeginStoryboard();
     r_15_s_ET_1_AC_0.Name = "r_15_s_ET_1_AC_0";
     r_15_s_ET_1.AddAction(r_15_s_ET_1_AC_0);
     Storyboard r_15_s_ET_1_AC_0_SB = new Storyboard();
     r_15_s_ET_1_AC_0.Storyboard = r_15_s_ET_1_AC_0_SB;
     r_15_s_ET_1_AC_0_SB.Name = "r_15_s_ET_1_AC_0_SB";
     ThicknessAnimation r_15_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_15_s_ET_1_AC_0_SB_TL_0.Name = "r_15_s_ET_1_AC_0_SB_TL_0";
     r_15_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_15_s_ET_1_AC_0_SB_TL_0.From = new Thickness(0F, 5F, 0F, 5F);
     r_15_s_ET_1_AC_0_SB_TL_0.To = new Thickness(0F, 1F, 0F, 1F);
     SineEase r_15_s_ET_1_AC_0_SB_TL_0_EA = new SineEase();
     r_15_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_15_s_ET_1_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_15_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty);
     r_15_s_ET_1_AC_0_SB.Children.Add(r_15_s_ET_1_AC_0_SB_TL_0);
     FloatAnimation r_15_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation();
     r_15_s_ET_1_AC_0_SB_TL_1.Name = "r_15_s_ET_1_AC_0_SB_TL_1";
     r_15_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_15_s_ET_1_AC_0_SB_TL_1.To = 200F;
     SineEase r_15_s_ET_1_AC_0_SB_TL_1_EA = new SineEase();
     r_15_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_15_s_ET_1_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_15_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty);
     r_15_s_ET_1_AC_0_SB.Children.Add(r_15_s_ET_1_AC_0_SB_TL_1);
     this.Add("buttonAnimStyle", r_15_s);
     // Resource - [ZincIcon] BitmapImage
     BitmapImage r_16_bm = new BitmapImage();
     r_16_bm.TextureAsset = "ImagesUI/zinc_res";
     this.Add("ZincIcon", r_16_bm);
     // Resource - [SunBurnLogo] BitmapImage
     BitmapImage r_17_bm = new BitmapImage();
     r_17_bm.TextureAsset = "Images/SunBurn";
     this.Add("SunBurnLogo", r_17_bm);
     // Resource - [buttonStyle] Style
     var r_18_s_bo = this[typeof(Button)];
     Style r_18_s = new Style(typeof(Button), r_18_s_bo as Style);
     Setter r_18_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255)));
     r_18_s.Setters.Add(r_18_s_S_0);
     this.Add("buttonStyle", r_18_s);
     // Resource - [GoldIcon] BitmapImage
     BitmapImage r_19_bm = new BitmapImage();
     r_19_bm.TextureAsset = "ImagesUI/gold_res";
     this.Add("GoldIcon", r_19_bm);
     // Resource - [IronIcon] BitmapImage
     BitmapImage r_20_bm = new BitmapImage();
     r_20_bm.TextureAsset = "ImagesUI/iron_res";
     this.Add("IronIcon", r_20_bm);
     // Resource - [CoalIcon] BitmapImage
     BitmapImage r_21_bm = new BitmapImage();
     r_21_bm.TextureAsset = "ImagesUI/coal_res";
     this.Add("CoalIcon", r_21_bm);
     // Resource - [OilIcon] BitmapImage
     BitmapImage r_22_bm = new BitmapImage();
     r_22_bm.TextureAsset = "ImagesUI/oil_res";
     this.Add("OilIcon", r_22_bm);
     // Resource - [ThoriumIcon] BitmapImage
     BitmapImage r_23_bm = new BitmapImage();
     r_23_bm.TextureAsset = "ImagesUI/thorium_res";
     this.Add("ThoriumIcon", r_23_bm);
     // Resource - [UraniumIcon] BitmapImage
     BitmapImage r_24_bm = new BitmapImage();
     r_24_bm.TextureAsset = "ImagesUI/uranium_res";
     this.Add("UraniumIcon", r_24_bm);
     // Resource - [SilverIcon] BitmapImage
     BitmapImage r_25_bm = new BitmapImage();
     r_25_bm.TextureAsset = "ImagesUI/silver_res";
     this.Add("SilverIcon", r_25_bm);
     // Resource - [MagnesiumIcon] BitmapImage
     BitmapImage r_26_bm = new BitmapImage();
     r_26_bm.TextureAsset = "ImagesUI/magnesium_res";
     this.Add("MagnesiumIcon", r_26_bm);
     // Resource - [LivestockIcon] BitmapImage
     BitmapImage r_27_bm = new BitmapImage();
     r_27_bm.TextureAsset = "ImagesUI/livestock_res";
     this.Add("LivestockIcon", r_27_bm);
     // Resource - [WaterIcon] BitmapImage
     BitmapImage r_28_bm = new BitmapImage();
     r_28_bm.TextureAsset = "ImagesUI/water_res";
     this.Add("WaterIcon", r_28_bm);
     // Resource - [PlatinumIcon] BitmapImage
     BitmapImage r_29_bm = new BitmapImage();
     r_29_bm.TextureAsset = "ImagesUI/platinum_res";
     this.Add("PlatinumIcon", r_29_bm);
     ImageManager.Instance.AddImage("ImagesUI/hydrogen_res");
     ImageManager.Instance.AddImage("ImagesUI/biomass_res");
     ImageManager.Instance.AddImage("ImagesUI/copper_res");
     ImageManager.Instance.AddImage("ImagesUI/lead_res");
     ImageManager.Instance.AddImage("ImagesUI/aluminium_res");
     ImageManager.Instance.AddImage("ImagesUI/gas_res");
     ImageManager.Instance.AddImage("ImagesUI/propane_res");
     ImageManager.Instance.AddImage("ImagesUI/diamond_res");
     ImageManager.Instance.AddImage("Images/MonogameLogo");
     ImageManager.Instance.AddImage("ImagesUI/mine_build");
     ImageManager.Instance.AddImage("ImagesUI/timber_res");
     ImageManager.Instance.AddImage("ImagesUI/titanium_res");
     ImageManager.Instance.AddImage("ImagesUI/building2");
     ImageManager.Instance.AddImage("ImagesUI/building1");
     ImageManager.Instance.AddImage("ImagesUI/zinc_res");
     ImageManager.Instance.AddImage("Images/SunBurn");
     ImageManager.Instance.AddImage("ImagesUI/gold_res");
     ImageManager.Instance.AddImage("ImagesUI/iron_res");
     ImageManager.Instance.AddImage("ImagesUI/coal_res");
     ImageManager.Instance.AddImage("ImagesUI/oil_res");
     ImageManager.Instance.AddImage("ImagesUI/thorium_res");
     ImageManager.Instance.AddImage("ImagesUI/uranium_res");
     ImageManager.Instance.AddImage("ImagesUI/silver_res");
     ImageManager.Instance.AddImage("ImagesUI/magnesium_res");
     ImageManager.Instance.AddImage("ImagesUI/livestock_res");
     ImageManager.Instance.AddImage("ImagesUI/water_res");
     ImageManager.Instance.AddImage("ImagesUI/platinum_res");
 }
 private void InitializeResources()
 {
     // Resource - [buttonStyle] Style
     var r_0_s_bo = this[typeof(Button)];
     Style r_0_s = new Style(typeof(Button), r_0_s_bo as Style);
     Setter r_0_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255)));
     r_0_s.Setters.Add(r_0_s_S_0);
     this.Add("buttonStyle", r_0_s);
     // Resource - [Image] BitmapImage
     BitmapImage r_1_bm = new BitmapImage();
     r_1_bm.TextureAsset = "Images/MonoGameLogo";
     this.Add("Image", r_1_bm);
     // Resource - [TetrisWindowBackground] SolidColorBrush
     this.Add("TetrisWindowBackground", new SolidColorBrush(new ColorW(0, 0, 0, 255)));
     // Resource - [TetrisForeground] SolidColorBrush
     this.Add("TetrisForeground", new SolidColorBrush(new ColorW(255, 255, 255, 255)));
     // Resource - [TitleResource] String
     this.Add("TitleResource", "Basic UI Example");
     // Resource - [TetrisBorderStyle] Style
     Style r_5_s = new Style(typeof(Border));
     Setter r_5_s_S_0 = new Setter(Border.SnapsToDevicePixelsProperty, true);
     r_5_s.Setters.Add(r_5_s_S_0);
     Setter r_5_s_S_1 = new Setter(Border.BackgroundProperty, new ResourceReferenceExpression("TetrisWindowBackground"));
     r_5_s.Setters.Add(r_5_s_S_1);
     Setter r_5_s_S_2 = new Setter(Border.BorderBrushProperty, new ResourceReferenceExpression("TetrisBorderBrush"));
     r_5_s.Setters.Add(r_5_s_S_2);
     Setter r_5_s_S_3 = new Setter(Border.BorderThicknessProperty, new Thickness(1F));
     r_5_s.Setters.Add(r_5_s_S_3);
     Setter r_5_s_S_4 = new Setter(Border.OpacityProperty, 0.9F);
     r_5_s.Setters.Add(r_5_s_S_4);
     this.Add("TetrisBorderStyle", r_5_s);
     // Resource - [DataTemplateKey(GameData.TestTreeDataItem)] DataTemplate
     Func<UIElement, UIElement> r_6_dtFunc = r_6_dtMethod;
     this.Add(typeof(GameData.TestTreeDataItem), new DataTemplate(typeof(GameData.TestTreeDataItem), r_6_dtFunc));
     // Resource - [CustomWindowTemplate] ControlTemplate
     Func<UIElement, UIElement> r_7_ctFunc = r_7_ctMethod;
     ControlTemplate r_7_ct = new ControlTemplate(r_7_ctFunc);
     this.Add("CustomWindowTemplate", r_7_ct);
     // Resource - [buttonAnimStyle] Style
     var r_8_s_bo = this[typeof(Button)];
     Style r_8_s = new Style(typeof(Button), r_8_s_bo as Style);
     Setter r_8_s_S_0 = new Setter(Button.WidthProperty, 200F);
     r_8_s.Setters.Add(r_8_s_S_0);
     Setter r_8_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F));
     r_8_s.Setters.Add(r_8_s_S_1);
     Setter r_8_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false);
     r_8_s.Setters.Add(r_8_s_S_2);
     EventTrigger r_8_s_ET_0 = new EventTrigger(Button.MouseEnterEvent);
     r_8_s.Triggers.Add(r_8_s_ET_0);
     BeginStoryboard r_8_s_ET_0_AC_0 = new BeginStoryboard();
     r_8_s_ET_0_AC_0.Name = "r_8_s_ET_0_AC_0";
     r_8_s_ET_0.AddAction(r_8_s_ET_0_AC_0);
     Storyboard r_8_s_ET_0_AC_0_SB = new Storyboard();
     r_8_s_ET_0_AC_0.Storyboard = r_8_s_ET_0_AC_0_SB;
     r_8_s_ET_0_AC_0_SB.Name = "r_8_s_ET_0_AC_0_SB";
     ThicknessAnimation r_8_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_8_s_ET_0_AC_0_SB_TL_0.Name = "r_8_s_ET_0_AC_0_SB_TL_0";
     r_8_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_8_s_ET_0_AC_0_SB_TL_0.From = new Thickness(0F, 1F, 0F, 1F);
     r_8_s_ET_0_AC_0_SB_TL_0.To = new Thickness(0F, 5F, 0F, 5F);
     SineEase r_8_s_ET_0_AC_0_SB_TL_0_EA = new SineEase();
     r_8_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_8_s_ET_0_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_8_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty);
     r_8_s_ET_0_AC_0_SB.Children.Add(r_8_s_ET_0_AC_0_SB_TL_0);
     FloatAnimation r_8_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation();
     r_8_s_ET_0_AC_0_SB_TL_1.Name = "r_8_s_ET_0_AC_0_SB_TL_1";
     r_8_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_8_s_ET_0_AC_0_SB_TL_1.To = 220F;
     SineEase r_8_s_ET_0_AC_0_SB_TL_1_EA = new SineEase();
     r_8_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_8_s_ET_0_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_8_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty);
     r_8_s_ET_0_AC_0_SB.Children.Add(r_8_s_ET_0_AC_0_SB_TL_1);
     EventTrigger r_8_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent);
     r_8_s.Triggers.Add(r_8_s_ET_1);
     BeginStoryboard r_8_s_ET_1_AC_0 = new BeginStoryboard();
     r_8_s_ET_1_AC_0.Name = "r_8_s_ET_1_AC_0";
     r_8_s_ET_1.AddAction(r_8_s_ET_1_AC_0);
     Storyboard r_8_s_ET_1_AC_0_SB = new Storyboard();
     r_8_s_ET_1_AC_0.Storyboard = r_8_s_ET_1_AC_0_SB;
     r_8_s_ET_1_AC_0_SB.Name = "r_8_s_ET_1_AC_0_SB";
     ThicknessAnimation r_8_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation();
     r_8_s_ET_1_AC_0_SB_TL_0.Name = "r_8_s_ET_1_AC_0_SB_TL_0";
     r_8_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_8_s_ET_1_AC_0_SB_TL_0.From = new Thickness(0F, 5F, 0F, 5F);
     r_8_s_ET_1_AC_0_SB_TL_0.To = new Thickness(0F, 1F, 0F, 1F);
     SineEase r_8_s_ET_1_AC_0_SB_TL_0_EA = new SineEase();
     r_8_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_8_s_ET_1_AC_0_SB_TL_0_EA;
     Storyboard.SetTargetProperty(r_8_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty);
     r_8_s_ET_1_AC_0_SB.Children.Add(r_8_s_ET_1_AC_0_SB_TL_0);
     FloatAnimation r_8_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation();
     r_8_s_ET_1_AC_0_SB_TL_1.Name = "r_8_s_ET_1_AC_0_SB_TL_1";
     r_8_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
     r_8_s_ET_1_AC_0_SB_TL_1.To = 200F;
     SineEase r_8_s_ET_1_AC_0_SB_TL_1_EA = new SineEase();
     r_8_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_8_s_ET_1_AC_0_SB_TL_1_EA;
     Storyboard.SetTargetProperty(r_8_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty);
     r_8_s_ET_1_AC_0_SB.Children.Add(r_8_s_ET_1_AC_0_SB_TL_1);
     this.Add("buttonAnimStyle", r_8_s);
     // Resource - [Sounds] SoundSourceCollection
     var r_9_sounds = new SoundSourceCollection();
     r_9_sounds.Add(new SoundSource { SoundType = SoundType.ButtonsClick, SoundAsset = "Click" });
     SoundManager.Instance.AddSound("Click");
     r_9_sounds.Add(new SoundSource { SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress" });
     SoundManager.Instance.AddSound("KeyPress");
     r_9_sounds.Add(new SoundSource { SoundType = SoundType.TabControlMove, SoundAsset = "Move" });
     SoundManager.Instance.AddSound("Move");
     r_9_sounds.Add(new SoundSource { SoundType = SoundType.TabControlSelect, SoundAsset = "Select" });
     SoundManager.Instance.AddSound("Select");
     this.Add("Sounds", r_9_sounds);
     // Resource - [TetrisBorderBrush] SolidColorBrush
     this.Add("TetrisBorderBrush", new SolidColorBrush(new ColorW(114, 176, 218, 255)));
     // Resource - [DataTemplateKey(GameData.CustomWindow)] DataTemplate
     Func<UIElement, UIElement> r_11_dtFunc = r_11_dtMethod;
     this.Add(typeof(GameData.CustomWindow), new DataTemplate(typeof(GameData.CustomWindow), r_11_dtFunc));
     ImageManager.Instance.AddImage("Images/MonoGameLogo");
     FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
     FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold");
 }
 /// <summary>
 /// Sets the sounds.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <param name="value">The value.</param>
 public static void SetSounds(DependencyObject obj, SoundSourceCollection value)
 {
     obj.SetValue(SoundsProperty, value);
 }
Beispiel #7
0
        private void InitializeResources()
        {
            // Resource - [buttonAnimStyle] Style
            var    r_0_s_bo  = this[typeof(Button)];
            Style  r_0_s     = new Style(typeof(Button), r_0_s_bo as Style);
            Setter r_0_s_S_0 = new Setter(Button.WidthProperty, 200F);

            r_0_s.Setters.Add(r_0_s_S_0);
            Setter r_0_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F));

            r_0_s.Setters.Add(r_0_s_S_1);
            Setter r_0_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false);

            r_0_s.Setters.Add(r_0_s_S_2);
            EventTrigger r_0_s_ET_0 = new EventTrigger(Button.MouseEnterEvent);

            r_0_s.Triggers.Add(r_0_s_ET_0);
            BeginStoryboard r_0_s_ET_0_AC_0 = new BeginStoryboard();

            r_0_s_ET_0_AC_0.Name = "r_0_s_ET_0_AC_0";
            r_0_s_ET_0.AddAction(r_0_s_ET_0_AC_0);
            Storyboard r_0_s_ET_0_AC_0_SB = new Storyboard();

            r_0_s_ET_0_AC_0.Storyboard = r_0_s_ET_0_AC_0_SB;
            r_0_s_ET_0_AC_0_SB.Name    = "r_0_s_ET_0_AC_0_SB";
            ThicknessAnimation r_0_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation();

            r_0_s_ET_0_AC_0_SB_TL_0.Name     = "r_0_s_ET_0_AC_0_SB_TL_0";
            r_0_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_0_AC_0_SB_TL_0.From     = new Thickness(0F, 1F, 0F, 1F);
            r_0_s_ET_0_AC_0_SB_TL_0.To       = new Thickness(0F, 5F, 0F, 5F);
            SineEase r_0_s_ET_0_AC_0_SB_TL_0_EA = new SineEase();

            r_0_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_0_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty);
            r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_0);
            FloatAnimation r_0_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation();

            r_0_s_ET_0_AC_0_SB_TL_1.Name     = "r_0_s_ET_0_AC_0_SB_TL_1";
            r_0_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_0_AC_0_SB_TL_1.To       = 220F;
            SineEase r_0_s_ET_0_AC_0_SB_TL_1_EA = new SineEase();

            r_0_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_1_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty);
            r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_1);
            EventTrigger r_0_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent);

            r_0_s.Triggers.Add(r_0_s_ET_1);
            BeginStoryboard r_0_s_ET_1_AC_0 = new BeginStoryboard();

            r_0_s_ET_1_AC_0.Name = "r_0_s_ET_1_AC_0";
            r_0_s_ET_1.AddAction(r_0_s_ET_1_AC_0);
            Storyboard r_0_s_ET_1_AC_0_SB = new Storyboard();

            r_0_s_ET_1_AC_0.Storyboard = r_0_s_ET_1_AC_0_SB;
            r_0_s_ET_1_AC_0_SB.Name    = "r_0_s_ET_1_AC_0_SB";
            ThicknessAnimation r_0_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation();

            r_0_s_ET_1_AC_0_SB_TL_0.Name     = "r_0_s_ET_1_AC_0_SB_TL_0";
            r_0_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_1_AC_0_SB_TL_0.From     = new Thickness(0F, 5F, 0F, 5F);
            r_0_s_ET_1_AC_0_SB_TL_0.To       = new Thickness(0F, 1F, 0F, 1F);
            SineEase r_0_s_ET_1_AC_0_SB_TL_0_EA = new SineEase();

            r_0_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_0_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty);
            r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_0);
            FloatAnimation r_0_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation();

            r_0_s_ET_1_AC_0_SB_TL_1.Name     = "r_0_s_ET_1_AC_0_SB_TL_1";
            r_0_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_1_AC_0_SB_TL_1.To       = 200F;
            SineEase r_0_s_ET_1_AC_0_SB_TL_1_EA = new SineEase();

            r_0_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_1_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty);
            r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_1);
            this.Add("buttonAnimStyle", r_0_s);
            // Resource - [buttonStyle] Style
            var    r_1_s_bo  = this[typeof(Button)];
            Style  r_1_s     = new Style(typeof(Button), r_1_s_bo as Style);
            Setter r_1_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255)));

            r_1_s.Setters.Add(r_1_s_S_0);
            this.Add("buttonStyle", r_1_s);
            // Resource - [CustomWindowTemplate] ControlTemplate
            Func <UIElement, UIElement> r_2_ctFunc = r_2_ctMethod;
            ControlTemplate             r_2_ct     = new ControlTemplate(r_2_ctFunc);

            this.Add("CustomWindowTemplate", r_2_ct);
            // Resource - [DataTemplateKey(GameData.CustomWindow)] DataTemplate
            Func <UIElement, UIElement> r_3_dtFunc = r_3_dtMethod;

            this.Add(typeof(GameData.CustomWindow), new DataTemplate(typeof(GameData.CustomWindow), r_3_dtFunc));
            // Resource - [DataTemplateKey(GameData.DragDropItem)] DataTemplate
            Func <UIElement, UIElement> r_4_dtFunc = r_4_dtMethod;

            this.Add(typeof(GameData.DragDropItem), new DataTemplate(typeof(GameData.DragDropItem), r_4_dtFunc));
            // Resource - [DataTemplateKey(GameData.TestTreeDataItem)] DataTemplate
            Func <UIElement, UIElement> r_5_dtFunc = r_5_dtMethod;

            this.Add(typeof(GameData.TestTreeDataItem), new DataTemplate(typeof(GameData.TestTreeDataItem), r_5_dtFunc));
            // Resource - [Image] BitmapImage
            BitmapImage r_6_bm = new BitmapImage();

            r_6_bm.TextureAsset = "Images/MonoGameLogo";
            this.Add("Image", r_6_bm);
            // Resource - [Sounds] SoundSourceCollection
            var r_7_sounds = new SoundSourceCollection();

            SoundManager.Instance.AddSound("Click");
            r_7_sounds.Add(new SoundSource {
                SoundType = SoundType.ButtonsClick, SoundAsset = "Click", Volume = 1f
            });
            SoundManager.Instance.AddSound("KeyPress");
            r_7_sounds.Add(new SoundSource {
                SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress", Volume = 1f
            });
            SoundManager.Instance.AddSound("Move");
            r_7_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlMove, SoundAsset = "Move", Volume = 1f
            });
            SoundManager.Instance.AddSound("Select");
            r_7_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlSelect, SoundAsset = "Select", Volume = 1f
            });
            this.Add("Sounds", r_7_sounds);
            // Resource - [TetrisBorderBrush] SolidColorBrush
            this.Add("TetrisBorderBrush", new SolidColorBrush(new ColorW(114, 176, 218, 255)));
            // Resource - [TetrisBorderStyle] Style
            Style  r_9_s     = new Style(typeof(Border));
            Setter r_9_s_S_0 = new Setter(Border.SnapsToDevicePixelsProperty, true);

            r_9_s.Setters.Add(r_9_s_S_0);
            Setter r_9_s_S_1 = new Setter(Border.BackgroundProperty, new ResourceReferenceExpression("TetrisWindowBackground"));

            r_9_s.Setters.Add(r_9_s_S_1);
            Setter r_9_s_S_2 = new Setter(Border.BorderBrushProperty, new ResourceReferenceExpression("TetrisBorderBrush"));

            r_9_s.Setters.Add(r_9_s_S_2);
            Setter r_9_s_S_3 = new Setter(Border.BorderThicknessProperty, new Thickness(1F));

            r_9_s.Setters.Add(r_9_s_S_3);
            Setter r_9_s_S_4 = new Setter(Border.OpacityProperty, 0.9F);

            r_9_s.Setters.Add(r_9_s_S_4);
            this.Add("TetrisBorderStyle", r_9_s);
            // Resource - [TetrisForeground] SolidColorBrush
            this.Add("TetrisForeground", new SolidColorBrush(new ColorW(255, 255, 255, 255)));
            // Resource - [TetrisWindowBackground] SolidColorBrush
            this.Add("TetrisWindowBackground", new SolidColorBrush(new ColorW(0, 0, 0, 255)));
            // Resource - [TitleResource] String
            this.Add("TitleResource", "Basic UI Example");
            ImageManager.Instance.AddImage("Images/MonoGameLogo");
            GeneratedPropertyInfo.RegisterGeneratedProperty(typeof(GameData.CustomWindow), "TextData", typeof(EmptyKeys.UserInterface.Generated.Dictionary_Bindings.CustomWindow_TextData_PropertyInfo));
            GeneratedPropertyInfo.RegisterGeneratedProperty(typeof(GameData.CustomWindow), "HideCommand", typeof(EmptyKeys.UserInterface.Generated.Dictionary_Bindings.CustomWindow_HideCommand_PropertyInfo));
            GeneratedPropertyInfo.RegisterGeneratedProperty(typeof(GameData.DragDropItem), "Name", typeof(EmptyKeys.UserInterface.Generated.Dictionary_Bindings.DragDropItem_Name_PropertyInfo));
            GeneratedPropertyInfo.RegisterGeneratedProperty(typeof(GameData.TestTreeDataItem), "Name", typeof(EmptyKeys.UserInterface.Generated.Dictionary_Bindings.TestTreeDataItem_Name_PropertyInfo));
        }
Beispiel #8
0
        private void InitializeResources()
        {
            // Resource - [textSelectionHighlight1] SolidColorBrush
            this.Add("textSelectionHighlight1", new SolidColorBrush(new ColorW(68, 68, 68, 255)));
            // Resource - [highlightTextColor] Color
            this.Add("highlightTextColor", new ColorW(17, 17, 17, 255));
            // Resource - [alertColor] Color
            this.Add("alertColor", new ColorW(187, 68, 68, 255));
            // Resource - [Sounds] SoundSourceCollection
            var r_3_sounds = new SoundSourceCollection();

            r_3_sounds.Add(new SoundSource {
                SoundType = SoundType.ButtonsClick, SoundAsset = "Click"
            });
            SoundManager.Instance.AddSound("Click");
            r_3_sounds.Add(new SoundSource {
                SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress"
            });
            SoundManager.Instance.AddSound("KeyPress");
            r_3_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlMove, SoundAsset = "Move"
            });
            SoundManager.Instance.AddSound("Move");
            r_3_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlSelect, SoundAsset = "Select"
            });
            SoundManager.Instance.AddSound("Select");
            this.Add("Sounds", r_3_sounds);
            // Resource - [textSelectionHighlightColor] Color
            this.Add("textSelectionHighlightColor", new ColorW(68, 68, 68, 255));
            // Resource - [hyperlink1] SolidColorBrush
            this.Add("hyperlink1", new SolidColorBrush(new ColorW(85, 153, 255, 255)));
            // Resource - [caretBrush] SolidColorBrush
            this.Add("caretBrush", new SolidColorBrush(new ColorW(221, 221, 221, 255)));
            // Resource - [border1] SolidColorBrush
            this.Add("border1", new SolidColorBrush(new ColorW(85, 85, 85, 255)));
            // Resource - [highlight1] SolidColorBrush
            this.Add("highlight1", new SolidColorBrush(new ColorW(138, 198, 49, 255)));
            // Resource - [highlightText1] SolidColorBrush
            this.Add("highlightText1", new SolidColorBrush(new ColorW(17, 17, 17, 255)));
            // Resource - [DataTemplateKey(EmptyKeys.GearsetModel.TreeNode)] DataTemplate
            Func <UIElement, UIElement> r_10_dtFunc = r_10_dtMethod;

            this.Add(typeof(EmptyKeys.GearsetModel.TreeNode), new DataTemplate(typeof(EmptyKeys.GearsetModel.TreeNode), r_10_dtFunc));
            // Resource - [alert1] SolidColorBrush
            this.Add("alert1", new SolidColorBrush(new ColorW(187, 68, 68, 255)));
            // Resource - [textSelection1] SolidColorBrush
            this.Add("textSelection1", new SolidColorBrush(new ColorW(119, 119, 119, 255)));
            // Resource - [translucidColor] Color
            this.Add("translucidColor", new ColorW(119, 119, 119, 170));
            // Resource - [translucid1] SolidColorBrush
            this.Add("translucid1", new SolidColorBrush(new ColorW(119, 119, 119, 170)));
            // Resource - [subtleColor] Color
            this.Add("subtleColor", new ColorW(119, 119, 119, 255));
            // Resource - [normalText1] SolidColorBrush
            this.Add("normalText1", new SolidColorBrush(new ColorW(221, 221, 221, 255)));
            // Resource - [backgroundColor] Color
            this.Add("backgroundColor", new ColorW(0, 0, 0, 0));
            // Resource - [normalTextMouseOverColor] Color
            this.Add("normalTextMouseOverColor", new ColorW(255, 255, 255, 255));
            // Resource - [subtle1] SolidColorBrush
            this.Add("subtle1", new SolidColorBrush(new ColorW(119, 119, 119, 255)));
            // Resource - [hyperlinkColor] Color
            this.Add("hyperlinkColor", new ColorW(85, 153, 255, 255));
            // Resource - [normal1] SolidColorBrush
            this.Add("normal1", new SolidColorBrush(new ColorW(64, 64, 64, 255)));
            // Resource - [background1] SolidColorBrush
            this.Add("background1", new SolidColorBrush(new ColorW(0, 0, 0, 0)));
            // Resource - [textSelectionColor] Color
            this.Add("textSelectionColor", new ColorW(119, 119, 119, 255));
            // Resource - [normalTextMouseOver1] SolidColorBrush
            this.Add("normalTextMouseOver1", new SolidColorBrush(new ColorW(255, 255, 255, 255)));
            // Resource - [highlightColor] Color
            this.Add("highlightColor", new ColorW(138, 198, 49, 255));
            // Resource - [normalTextColor] Color
            this.Add("normalTextColor", new ColorW(221, 221, 221, 255));
            // Resource - [normalColor] Color
            this.Add("normalColor", new ColorW(64, 64, 64, 255));
            // Resource - [borderColor] Color
            this.Add("borderColor", new ColorW(85, 85, 85, 255));
            FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
        }
        private void InitializeResources()
        {
            // Resource - [buttonAnimStyle] Style
            var    r_0_s_bo  = this[typeof(Button)];
            Style  r_0_s     = new Style(typeof(Button), r_0_s_bo as Style);
            Setter r_0_s_S_0 = new Setter(Button.WidthProperty, 200F);

            r_0_s.Setters.Add(r_0_s_S_0);
            Setter r_0_s_S_1 = new Setter(Button.MarginProperty, new Thickness(0F, 1F, 0F, 1F));

            r_0_s.Setters.Add(r_0_s_S_1);
            Setter r_0_s_S_2 = new Setter(Button.SnapsToDevicePixelsProperty, false);

            r_0_s.Setters.Add(r_0_s_S_2);
            EventTrigger r_0_s_ET_0 = new EventTrigger(Button.MouseEnterEvent);

            r_0_s.Triggers.Add(r_0_s_ET_0);
            BeginStoryboard r_0_s_ET_0_AC_0 = new BeginStoryboard();

            r_0_s_ET_0_AC_0.Name = "r_0_s_ET_0_AC_0";
            r_0_s_ET_0.AddAction(r_0_s_ET_0_AC_0);
            Storyboard r_0_s_ET_0_AC_0_SB = new Storyboard();

            r_0_s_ET_0_AC_0.Storyboard = r_0_s_ET_0_AC_0_SB;
            r_0_s_ET_0_AC_0_SB.Name    = "r_0_s_ET_0_AC_0_SB";
            ThicknessAnimation r_0_s_ET_0_AC_0_SB_TL_0 = new ThicknessAnimation();

            r_0_s_ET_0_AC_0_SB_TL_0.Name     = "r_0_s_ET_0_AC_0_SB_TL_0";
            r_0_s_ET_0_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_0_AC_0_SB_TL_0.From     = new Thickness(0F, 1F, 0F, 1F);
            r_0_s_ET_0_AC_0_SB_TL_0.To       = new Thickness(0F, 5F, 0F, 5F);
            SineEase r_0_s_ET_0_AC_0_SB_TL_0_EA = new SineEase();

            r_0_s_ET_0_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_0_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_0, Button.MarginProperty);
            r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_0);
            FloatAnimation r_0_s_ET_0_AC_0_SB_TL_1 = new FloatAnimation();

            r_0_s_ET_0_AC_0_SB_TL_1.Name     = "r_0_s_ET_0_AC_0_SB_TL_1";
            r_0_s_ET_0_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_0_AC_0_SB_TL_1.To       = 220F;
            SineEase r_0_s_ET_0_AC_0_SB_TL_1_EA = new SineEase();

            r_0_s_ET_0_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_0_AC_0_SB_TL_1_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_0_AC_0_SB_TL_1, Button.WidthProperty);
            r_0_s_ET_0_AC_0_SB.Children.Add(r_0_s_ET_0_AC_0_SB_TL_1);
            EventTrigger r_0_s_ET_1 = new EventTrigger(Button.MouseLeaveEvent);

            r_0_s.Triggers.Add(r_0_s_ET_1);
            BeginStoryboard r_0_s_ET_1_AC_0 = new BeginStoryboard();

            r_0_s_ET_1_AC_0.Name = "r_0_s_ET_1_AC_0";
            r_0_s_ET_1.AddAction(r_0_s_ET_1_AC_0);
            Storyboard r_0_s_ET_1_AC_0_SB = new Storyboard();

            r_0_s_ET_1_AC_0.Storyboard = r_0_s_ET_1_AC_0_SB;
            r_0_s_ET_1_AC_0_SB.Name    = "r_0_s_ET_1_AC_0_SB";
            ThicknessAnimation r_0_s_ET_1_AC_0_SB_TL_0 = new ThicknessAnimation();

            r_0_s_ET_1_AC_0_SB_TL_0.Name     = "r_0_s_ET_1_AC_0_SB_TL_0";
            r_0_s_ET_1_AC_0_SB_TL_0.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_1_AC_0_SB_TL_0.From     = new Thickness(0F, 5F, 0F, 5F);
            r_0_s_ET_1_AC_0_SB_TL_0.To       = new Thickness(0F, 1F, 0F, 1F);
            SineEase r_0_s_ET_1_AC_0_SB_TL_0_EA = new SineEase();

            r_0_s_ET_1_AC_0_SB_TL_0.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_0_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_0, Button.MarginProperty);
            r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_0);
            FloatAnimation r_0_s_ET_1_AC_0_SB_TL_1 = new FloatAnimation();

            r_0_s_ET_1_AC_0_SB_TL_1.Name     = "r_0_s_ET_1_AC_0_SB_TL_1";
            r_0_s_ET_1_AC_0_SB_TL_1.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));
            r_0_s_ET_1_AC_0_SB_TL_1.To       = 200F;
            SineEase r_0_s_ET_1_AC_0_SB_TL_1_EA = new SineEase();

            r_0_s_ET_1_AC_0_SB_TL_1.EasingFunction = r_0_s_ET_1_AC_0_SB_TL_1_EA;
            Storyboard.SetTargetProperty(r_0_s_ET_1_AC_0_SB_TL_1, Button.WidthProperty);
            r_0_s_ET_1_AC_0_SB.Children.Add(r_0_s_ET_1_AC_0_SB_TL_1);
            this.Add("buttonAnimStyle", r_0_s);
            // Resource - [buttonStyle] Style
            var    r_1_s_bo  = this[typeof(Button)];
            Style  r_1_s     = new Style(typeof(Button), r_1_s_bo as Style);
            Setter r_1_s_S_0 = new Setter(Button.BackgroundProperty, new SolidColorBrush(new ColorW(255, 140, 0, 255)));

            r_1_s.Setters.Add(r_1_s_S_0);
            Setter r_1_s_S_1 = new Setter(Button.WidthProperty, 200F);

            r_1_s.Setters.Add(r_1_s_S_1);
            Setter r_1_s_S_2 = new Setter(Button.PaddingProperty, new Thickness(2F));

            r_1_s.Setters.Add(r_1_s_S_2);
            this.Add("buttonStyle", r_1_s);
            // Resource - [logoEmptyKeys] BitmapImage
            BitmapImage r_2_bm = new BitmapImage();

            r_2_bm.TextureAsset = "Images/EmptyKeysLogoTextSmall";
            this.Add("logoEmptyKeys", r_2_bm);
            // Resource - [MessageBoxButtonYes] String
            this.Add("MessageBoxButtonYes", "Yes!");
            // Resource - [Sounds] SoundSourceCollection
            var r_4_sounds = new SoundSourceCollection();

            SoundManager.Instance.AddSound("Click");
            r_4_sounds.Add(new SoundSource {
                SoundType = SoundType.ButtonsClick, SoundAsset = "Click", Volume = 1f
            });
            SoundManager.Instance.AddSound("KeyPress");
            r_4_sounds.Add(new SoundSource {
                SoundType = SoundType.TextBoxKeyPress, SoundAsset = "KeyPress", Volume = 1f
            });
            SoundManager.Instance.AddSound("Move");
            r_4_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlMove, SoundAsset = "Move", Volume = 1f
            });
            SoundManager.Instance.AddSound("Select");
            r_4_sounds.Add(new SoundSource {
                SoundType = SoundType.TabControlSelect, SoundAsset = "Select", Volume = 1f
            });
            this.Add("Sounds", r_4_sounds);
            // Resource - [TitleResource] String
            this.Add("TitleResource", "Basic UI Example");
            // Resource - [ToolTipText] String
            this.Add("ToolTipText", "Click to open message box");
            ImageManager.Instance.AddImage("Images/EmptyKeysLogoTextSmall");
            FontManager.Instance.AddFont("Segoe UI", 13.33333F, FontStyle.Regular, "Segoe_UI_10_Regular");
            FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold");
        }