When implementing the ViewModel in a Model-View-ViewModel architecture WPF application there seem to be two major choices how to make it databindable. I have seen implementations that use DependencyProperty...
I have a TextBlock in WPF. I write many lines to it, far exceeding its vertical height. I expected a vertical scroll bar to appear automatically when that happens,...
I’m looking to accept digits and the decimal point, but no sign. I’ve looked at samples using the NumericUpDown control for Windows Forms, and this sample of a NumericUpDown...
What is the difference betweeen the following: SelectedItem SelectedValue SelectedValuePath All these dependency properties are defined in Selector class. I often confuse SelectedItem with SelectedValue , and SelectedValue with...
I simply want flowing text on the left, and a help box on the right. The help box should extend all the way to the bottom. If you take...
I am developing an app for sending some feedback. Basically I’m trying to make a TextBox for comments, but I’m used to the WinForms MultiLine=true. I’ve set MinLines to...
My code is as below public CountryStandards() { InitializeComponent(); try { FillPageControls(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Country Standards", MessageBoxButton.OK, MessageBoxImage.Error); } } /// <summary> /// Fills the...
What I have is an object that has an IsReadOnly property. If this property is true, I would like to set the IsEnabled property on a Button, ( for...
For a WPF application which will need 10 – 20 small icons and images for illustrative purposes, is storing these in the assembly as embedded resources the right way...