WPF

WPF: Simple way to use enums as ComboBox items

A lot of times in GUIs we use ComboBoxes to let the user choose one of several options. An enum property is a natural fit to store the selected value in the viewmodel via databinding. To set the available values the MVVM way you typically have to databind the ItemsSource-Property to a collection. This means you

WPF: Simple way to use enums as ComboBox items Read More »

WPF/XAML: Eine runde Fortschrittsanzeige

Mit diesen Beispiel möchte ich zeigen wie man eine runde Fortschrittsanzeige als eigenes Control in WPF erstellt. Aufbau des Controls Um das Control so schlank wie möglich zu halten verwenden wir kein klassisches UserControl mit XAML und Code-Behind, sondern erweitern die Control Klasse und erstellen ein Default-Template für das CustomControl in der Themes/Generic.xaml. Visual Studio bietet ein Projekt-Template für

WPF/XAML: Eine runde Fortschrittsanzeige Read More »