private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ComboBox box = (ComboBox)sender; SelectionModeItem item = (SelectionModeItem)box.SelectedItem; RevealGrid.SelectionMode = item.Mode; }
public RevealScenarioGrid() { this.InitializeComponent(); gridSource = RevealGridItem.GetItems(); backgroundTypeSource = RevealBackgroundItem.GetItems(); gridItemTypeSource = RevealGridTypeItem.GetItems(); selectionModeSource = SelectionModeItem.GetItems(); }