Пример #1
0
 private void DiscardButton_Click(object sender, RoutedEventArgs e)
 {
     BrandComboBox.GetBindingExpression(Selector.SelectedItemProperty)?.UpdateTarget();
     ModelTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget();
     Property1ComboBox.GetBindingExpression(Selector.SelectedItemProperty)?.UpdateTarget();
     Property2ComboBox.GetBindingExpression(Selector.SelectedItemProperty)?.UpdateTarget();
     PriceTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget();
     StockTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget();
     UpdatePropertyComboBoxProperties();
 }
Пример #2
0
        private void RefreshComboBoxItemsSources()
        {
            Property1Label?.GetBindingExpression(ContentProperty)?.UpdateTarget();
            Property2Label?.GetBindingExpression(ContentProperty)?.UpdateTarget();

            BrandComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
            Property1ComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
            Property2ComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
            UpdateControlVisibility();
        }
Пример #3
0
 private void RefreshComboBoxes()
 {
     BrandComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
     DimensionComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
     CountryComboBox?.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget();
 }