private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { // make sure quantity is in correct format if (TextBoxRegex.GetIsValid(TextBoxQuantity) == false) { FlyoutWarmingText.Text = "Wrong numerical value!"; FlyoutWarming.ShowAt(TextBoxQuantity); args.Cancel = true; return; } if (TextBoxRegex.GetIsValid(TextBoxCost) == false) { FlyoutWarmingText.Text = "Wrong numerical value!"; FlyoutWarming.ShowAt(TextBoxCost); args.Cancel = true; return; } // perform real update TextBoxQuantity.GetBindingExpression(TextBox.TextProperty).UpdateSource(); TextBoxCost.GetBindingExpression(TextBox.TextProperty).UpdateSource(); DatePickerPurchaseDate.GetBindingExpression(DatePicker.DateProperty).UpdateSource(); ComboBoxProvider.GetBindingExpression(ComboBox.SelectedValueProperty).UpdateSource(); }
public SelectionPatternSelectionEvent(ComboBoxProvider provider) : base(provider, SelectionPatternIdentifiers.SelectionProperty) { }
public ButtonInvokeBehavior (ComboBoxProvider.ComboBoxButtonProvider provider) : base (provider) { }
public ListBoxSelectionProviderBehavior(ComboBoxProvider.ComboBoxListBoxProvider listBoxProvider, ComboBoxProvider provider) : base(listBoxProvider) { this.provider = provider; }
public SelectionPatternInvalidatedEvent(ComboBoxProvider provider) : base(provider, SelectionPatternIdentifiers.InvalidatedEvent) { }
public SelectionPatternIsSelectionRequiredEvent(ComboBoxProvider provider) : base(provider, SelectionPatternIdentifiers.IsSelectionRequiredProperty) { }