public SkillControl()
		{
			this.InitializeComponent();

			if (App.IsDesignMode)
			{
				var skillSet = new SkillSet
				{
					Skill = new ActiveSkill
					{
						Slug = "elemental-arrow",
						Icon = "demonhunter_elementalarrow",
					},
					Rune = new Rune
					{
						Slug = "elemental-arrow-b",
						Type = "b"
					}
				};
				this.DataContext = new SkillViewModel(1, skillSet);
			}
		}
Exemplo n.º 2
0
		public SkillViewModel(int skillIndex, SkillSet skillSet = null)
		{
			this.SkillIndex = skillIndex;
			this.SkillSet = skillSet;
		}