Blog
Page 54 of my articles, tutorials, and thoughts
Latest Articles
How do I get an animated gif to work in WPF?
# How to Make Animated GIFs šļø Work in WPF? So you want to add some motion and excitement to your WPF application? š Look no further! In this guide, we'll help you bring those animated GIFs to life. š ## Choosing the Right Control Type š¤ The first s
ItemsControl with horizontal orientation
šš The Ultimate Guide to ItemsControl with Horizontal Orientation šš Welcome, tech enthusiasts! Today, we're going to tackle a common question that often leaves developers scratching their heads: "Do you know any controls inherited from the ItemsContr
Handling Dialogs in WPF with MVVM
šš” *Handling Dialogs in WPF with MVVM: A Guide for Easy and Effective Dialog Communication* š»š¢ Are you a developer working with WPF and struggling with handling dialogs in the MVVM pattern? Trust me, you're not alone! š¤š¼ In the realm of MVVM, dialo
Data binding to SelectedItem in a WPF Treeview
# Data Binding to SelectedItem in a WPF Treeview š³ So, you want to retrieve the selected item in a WPF Treeview and bind it to a property in your Model? š¤ You might think that using the `SelectedItem` property would do the trick, but it turns out that
Text vertical alignment in WPF TextBlock
š¤ How to Vertically Align Text in a WPF TextBlock? Let's Dig In! š§ Have you ever wondered how to achieve vertical center alignment for the text inside a TextBlock in a WPF application? You stumble upon the TextAlignment property, but it only seems to ha
How should the ViewModel close the form?
# How to Close the Form with ViewModel in MVVM šļø Building a WPF application with the MVVM pattern but stuck on how to close the form from the ViewModel? Don't worry, you're not alone! Many developers face this challenge when trying to separate the view
How to automatically select all text on focus in WPF TextBox?
šš Looking for a way to automatically select all text on focus in a WPF TextBox? š¤ No worries, I've got you covered! In this blog post, I'll address the common issue of the selection disappearing when using the mouse, provide easy solutions, and even sh
ResourceDictionary in a separate assembly
# Sharing ResourceDictionaries Across Multiple Applications ā **Problem:** You have multiple resource dictionary files that you want to use in separate applications. Instead of adding them to each application's assembly, you want to compile them into a si
Simple (I think) Horizontal Line in WPF?
## How to Add a Simple Horizontal Line in WPF š So, you're building a data entry form in WPF and want to add a horizontal line to separate certain sections? Easy peasy! We've got you covered! Here's how you can do it without any hassle. ### The Problem





