private void ResetResult(object sender, object args) { ResultTextBlock.Text = "None"; ButtonFlyout.Hide(); _popup.IsOpen = false; TargetComboBox.SelectedItem = null; }
private void ConfirmButton_Click(object sender, RoutedEventArgs e) { var newCounter = new SecondaryCounterModel() { CounterName = NewCounterTextBox.Text == "" ? "Counter" : NewCounterTextBox.Text, Value = 0, //CounterColor = Windows.UI.Colors.DarkGray, CounterColor = new ColorSwatchModel(Windows.UI.Colors.DarkGray), CounterIcon = new SymbolIcon(Symbol.Placeholder) }; Counters.Add(newCounter); CountersPanel.Children.Add(new SecondaryCounterControl() { Counter = newCounter }); ButtonFlyout.Hide(); }