Last week I wrote a blog post showing how you can write inline code in XAML. When that blog post was published, @ElegantCode tweeted the post on Twitter. Rob Relyea soon re-tweeted that post with a link to one of his own posts on exploring new techniques for DLR script in XAML which also links [...]
A couple of days ago I was spreading the WPF goodness and was talking about how MVVM (Model-View-ViewModel) helps promote separation of concerns by removing the need for the code-behind file from the associated XAML file. After my statement someone replied with the following question, “So why even have it there, can you just delete [...]
WPF–Copy UIElement to Clipboard as Multiple Formats
So about a week ago I wrote a post showing how to Copy a WPF UIElement as an Image to the Clipboard. In reply to that post Rob Relyea made a comment regarding supporting multiple formats on the Clipboard. What do I mean by formats? Well, when copying items to the Clipboard, you an specify [...]
This is a question to all the WPF developers out there. Have you ever wanted to take a snapshot of a UIElement in your WPF application, such as a control or a section of a view, and use to generate a preview or copy it to the clipboard so your user can paste it somewhere [...]