private void BackgroundComboBoxChanged(object sender, SelectionChangedEventArgs e) { ComboBox box = (ComboBox)sender; RevealBackgroundItem item = (RevealBackgroundItem)box.SelectedItem; VisualStateManager.GoToState(this, item.Name, false); }
public RevealScenarioList() { this.InitializeComponent(); listSource = RevealGridItem.GetItems(); backgroundTypeSource = RevealBackgroundItem.GetItems(); }
public RevealScenarioGrid() { this.InitializeComponent(); gridSource = RevealGridItem.GetItems(); backgroundTypeSource = RevealBackgroundItem.GetItems(); gridItemTypeSource = RevealGridTypeItem.GetItems(); selectionModeSource = SelectionModeItem.GetItems(); }