Blog

Page 54 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How do I get an animated gif to work in WPF?
.net

How do I get an animated gif to work in WPF?

Published on September 2, 2023

# 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

Cover Image for ItemsControl with horizontal orientation
c#

ItemsControl with horizontal orientation

Published on September 2, 2023

šŸŒŸšŸ“ 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

Cover Image for Handling Dialogs in WPF with MVVM
.net

Handling Dialogs in WPF with MVVM

Published on September 2, 2023

šŸ“šŸ’” *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

Cover Image for Data binding to SelectedItem in a WPF Treeview
c#

Data binding to SelectedItem in a WPF Treeview

Published on September 2, 2023

# 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

Cover Image for Text vertical alignment in WPF TextBlock

Text vertical alignment in WPF TextBlock

Published on September 2, 2023

šŸ¤” 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

Cover Image for How should the ViewModel close the form?
c#

How should the ViewModel close the form?

Published on September 2, 2023

# 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

Cover Image for How to automatically select all text on focus in WPF TextBox?
.net

How to automatically select all text on focus in WPF TextBox?

Published on September 2, 2023

šŸ”šŸ’­ 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

Cover Image for ResourceDictionary in a separate assembly
.net

ResourceDictionary in a separate assembly

Published on September 2, 2023

# 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

Cover Image for Simple (I think) Horizontal Line in WPF?

Simple (I think) Horizontal Line in WPF?

Published on September 2, 2023

## 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

Blog | Matheus Mello