Blog

Page 41 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How can I set the color of a selected row in DataGrid
c#

How can I set the color of a selected row in DataGrid

Published on September 2, 2023

📝 **Title: How to Set the Color of a Selected Row in DataGrid** 📷 **Intro Image: Illustration of a colorful row within a DataGrid** --- Have you ever encountered a problem where the default background color of a selected row in a DataGrid is too dark

Cover Image for What is Prism for WPF?

What is Prism for WPF?

Published on September 2, 2023

# What is Prism for WPF? 🤔 If you're a WPF developer, you may have heard of Prism. But what exactly is it and why should you learn it? 🤷‍♀️ ## 📚 Let's start with the basics Prism, managed by Microsoft, is a set of guidelines for creating composite ap

Cover Image for Pan & Zoom Image
c#

Pan & Zoom Image

Published on September 2, 2023

# Pan & Zoom Image Made Easy! 🖼️🔍💨 So, you want to create a simple image viewer in WPF that allows users to effortlessly pan, zoom, and even show overlays? You’ve come to the right place! 🙌 ## The Quest for the Perfect Image Viewer Before we dive in

Cover Image for How to add a vertical Separator?

How to add a vertical Separator?

Published on September 2, 2023

💡🔍 How to add a vertical Separator? 💻🔀 Do you want to add a vertical separator to your Grid but can only find the horizontal option? 🤔 Don't worry, we've got you covered! In this guide, we'll address common issues faced when adding a vertical separat

Cover Image for How to add text to a WPF Label in code?
c#

How to add text to a WPF Label in code?

Published on September 2, 2023

# How to Add Text to a WPF Label in Code 🎯 If you're feeling just a little bit "stupid" (don't worry, we all have those moments!), and you're struggling to find out how to add text to a WPF Label control in code, you've come to the right place! In this g

Cover Image for WPF: ItemsControl with scrollbar (ScrollViewer)

WPF: ItemsControl with scrollbar (ScrollViewer)

Published on September 2, 2023

🤔 **WPF: ItemsControl with scrollbar (ScrollViewer)** 📜 Have you ever encountered the problem where you added a scrollbar to an ItemsControl in WPF, but it only shows a few items and doesn't allow you to scroll to view more? Frustrating, right? 😩 Well,

Cover Image for Good examples of MVVM Template

Good examples of MVVM Template

Published on September 2, 2023

📝 **Good Examples of MVVM Template** Are you currently working with the Microsoft MVVM template and finding the lack of detailed examples frustrating? I feel you! The included ContactBook example is great, but it doesn't show much in terms of command han

Cover Image for How do I open a second window from the first window in WPF?
c#

How do I open a second window from the first window in WPF?

Published on September 2, 2023

# How to Open a Second Window from the First Window in WPF 👋 Hey there, fellow WPF newbie! If you're wondering how to open a second window (let's call it window2) from the first window (window1) in WPF, you've come to the right place. 🎉 ## The Problem

Cover Image for Where is the WPF Numeric UpDown control?

Where is the WPF Numeric UpDown control?

Published on September 2, 2023

# Where is the WPF Numeric UpDown Control? 🤔 So, you're diving into a serious WPF project and you've noticed that some basic controls are mysteriously missing. One control you're particularly on the hunt for is the Numeric UpDown control. You're not alon

Cover Image for Use StringFormat to add a string to a WPF XAML binding
c#string-formatting

Use StringFormat to add a string to a WPF XAML binding

Published on September 2, 2023

📝 **Tech Blog Post: Adding a String to a WPF XAML Binding using StringFormat** Hey there tech enthusiasts! 👋 Are you struggling to add a string to a WPF XAML binding using StringFormat? 🤔 No worries, we've got you covered! In this guide, we'll unravel