danderson.io > .net > Page 3
Tag Archive: .net
Probably the most common question I get from people new to WPF is how to bind the Visibility of a control based on a System.Boolean value. WPF provides IValueConverter in System.Windows.Data specifically for converting one type to another and back…
Read more
I finished the screencast and have uploaded it to YouTube here. I also have attached the source code to this blog post, but I wanted to comment on a few post-video changes I have made. I removed App.config from the…
Read more
This thread on Msdn was one I came across, and I felt it needed a much better answer. His question in short, is what is the difference between null, Empty, and “” in C#. I assume that you know what…
Read more
A friend of mine was wondering if he had encountered a bug in WPF today. What he was trying to do is have a Grid with four columns, each with a width of Auto, and have a TextBox fill the…
Read more
I will be doing a in-depth series on WPF MVVM Pattern, and here is the first video of the series. View the video on YouTube for full 1920×1080 resolution and HD quality. Video Watch on YouTube now. Demo Code DCOMProductions.MvvmDemo.zip
There are a lot of different ways to use an Enum as a data source for some list, like a ComboBox. I’m going to demonstrate how to create a MarkupExtension that will make your life a lot easier in all…
Read more
I recorded an hour and a half presentation on Windows Communication Foundation yesterday that you can view on YouTube here. The video is recorded in 1920×1080, and is uploaded at that quality. The presentation covers everything from what WCF is,…
Read more
Introduction Setting a TextBlock’s Content Formatting Text Using Controls with Formatted Text Introduction In WPF there are two very similar controls Label and TextBlock, and I’m going to cover TextBlock and why its so useful. First, what is the TextBlock…
Read more
I have always been pretty articulate and careful when writing multi-threading code, but today I wrote my first deadlock that had me baffled for a few minutes. I’m working on a licensing dll that handles a lot of processing, and…
Read more
This isn’t anything special, but the documentation on Msdn for System.Windows.SplashScreen is lacking. Basically I am writing a licensing system and during debugging the WPF stack can take many seconds to load. When making changes to this system sometimes it…
Read more