Blog

Page 50 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Watermark / hint / placeholder text in TextBox?
c#

Watermark / hint / placeholder text in TextBox?

Published on September 2, 2023

πŸ“ **Tech Blog**: πŸ’§Watermark / hint / placeholder text in TextBox? πŸ’» πŸ‘‹ Hey there, tech enthusiasts! Today we have an interesting question for you: How can we add some cool text into a text box that magically disappears as soon as the user starts typing

Cover Image for Difference between Visibility.Collapsed and Visibility.Hidden
visibility

Difference between Visibility.Collapsed and Visibility.Hidden

Published on September 2, 2023

# The Ultimate Guide to Visibility.Collapsed and Visibility.Hidden in WPF πŸ”βœ¨ Have you ever found yourself peeking into the mysterious world of WPF and stumbled upon the conundrum of `Visibility.Collapsed` and `Visibility.Hidden`? πŸ€” Fear not! In today's

Cover Image for Open directory dialog
filesystems.net

Open directory dialog

Published on September 2, 2023

# Open Directory Dialog: How to Select a Directory in WPF? πŸ“‚ As developers, we often encounter situations where we need the user to select a directory for various file operations. In WPF, the widely-used `OpenFileDialog` from Win32 is a popular choice. H

Cover Image for ListBox vs. ListView - how to choose for data binding

ListBox vs. ListView - how to choose for data binding

Published on September 2, 2023

# ListBox vs. ListView: Finding the Perfect Match for Data Binding πŸ“‹πŸ”ŽπŸ“‹ So, you're faced with the daunting task of choosing between a ListBox and a ListView for your WPF application? Fear not, fellow developer! We'll dive into the depths of data binding

Cover Image for How does Windows 8 Runtime (WinRT / Windows Store apps / Windows 10 Universal App) compare to Silverlight and WPF?

How does Windows 8 Runtime (WinRT / Windows Store apps / Windows 10 Universal App) compare to Silverlight and WPF?

Published on September 2, 2023

## πŸ–₯️ Windows 8 Runtime vs Silverlight and WPF: What You Need to Know So, you're a .NET UI programmer trying to wrap your head around Windows 8 Runtime (WinRT), commonly used to create Metro style apps. You've heard buzzwords like XAML, .NET, HTML, CSS,

Cover Image for Setting WPF image source in code
c#.net

Setting WPF image source in code

Published on September 2, 2023

πŸ“· **Setting WPF Image Source in Code: A Handy Guide** πŸ‘‹ Hey there, tech enthusiasts! Have you ever encountered a situation where you're trying to set a WPF image's source in code, but somehow it just doesn't work? πŸ€” Don't worry, you're not alone. In th

Cover Image for INotifyPropertyChanged vs. DependencyProperty in ViewModel

INotifyPropertyChanged vs. DependencyProperty in ViewModel

Published on September 2, 2023

πŸ“ Title: INotifyPropertyChanged vs. DependencyProperty in ViewModel: Making Smart Design Choices for Your WPF Application πŸš€ Introduction πŸ’‘ πŸ‘‹ Hey there! Are you working on a Model-View-ViewModel (MVVM) architecture for your WPF application? πŸ—οΈ It's g

Cover Image for How to get controls in WPF to fill available space?
layout

How to get controls in WPF to fill available space?

Published on September 2, 2023

# How to Get Controls in WPF to Fill Available Space? πŸ–₯οΈπŸ’‘ Do you ever find yourself struggling with WPF controls, like the Button, TextBox, or ListBox, that don't automatically fill the available space? It can be frustrating when these controls seem mor

Cover Image for WPF global exception handler
c#exception.net

WPF global exception handler

Published on September 2, 2023

🌟 **Understanding WPF Global Exception Handler** Are you tired of your WPF application crashing mysteriously without any error messages? 😫 Don't worry, you're not alone! Many developers face this frustrating situation. But fear not, because we have the

Cover Image for Automatic vertical scroll bar in WPF TextBlock?
c#.net

Automatic vertical scroll bar in WPF TextBlock?

Published on September 2, 2023

πŸ“ A Beginner's Guide to Automatically Adding a Vertical Scroll Bar in WPF TextBlock Have you ever encountered the frustrating situation where your WPF `TextBlock` becomes cluttered with an overwhelming amount of text, making it difficult to read? Don't w