WPF Reflections:

XAML


June 12, 2008  2:51 PM

WPF Animations – key properties



Posted by: MarkWPF
Animation, WPF, XAML

In a previous blog, I spoke about the different sets of animation classes. Also when you are doing animations in WPF, there are some key properties. These are properties that apply to most...

June 10, 2008  12:27 PM

WPF Animation classes



Posted by: MarkWPF
Animation, WPF, XAML

As a slight sea change from the norm, which just shows the (extremely) impressive animation facilities available in WPF, why don't I explain a bit about the different animation classes. Out of the box, the nice people on the WPF team(s) have defined three sets of classes for doing the...


May 22, 2008  11:33 AM

WPF Controls – how to avoid designer nastiness



Posted by: MarkWPF
Controls, WPF, XAML

Have you ever written any user controls or custom controls? The difference between them is that with a custom control you have full scope to render it (plus you have to do it), whereas a user control is a container to amalgamate other controls. With both of them though, you need to make sure...


May 14, 2008  9:04 AM

WPF Problems printing documents



Posted by: MarkWPF
printing, Windows Computing, WPF, XAML

Do you have problems printing documents in WPF? My problem manifested itself when I tried to print a document from a FlowDocumentPageViewer (though the same is true from a FlowDocumentReader). The problem I was getting was that if I had multiple pages, they would all be scaled and fitted onto...


May 14, 2008  8:50 AM

WPF Printing documents



Posted by: MarkWPF
printing, WPF, XAML

I have blogged before on how you print a WPF element using the PrintVisual method in the PrintDialog class, which is very flexible as it will print any element derived from Systems.Windows.Media.Visual. However, there is another weapon in the PrintDialog armoury, and that is the ability to print...


April 22, 2008  3:25 PM

WPF Printing – why is it small



Posted by: MarkWPF
printing, WPF, XAML

When you get to printing in WPF, you will find it so much easier than printing in previous Microsoft UI design (ie Winforms and MFC). See a previous post of mine to see how...


April 11, 2008  2:48 PM

WPF Printing using PrintVisual



Posted by: MarkWPF
printing, WPF, XAML

To do a simple print in WPF, you can do the following: PrintDialog prtDlg = new PrintDialog(); if(prtDlg.ShowDialog() == true) { prtDlg.PrintVisual(element, "A simple drawing"); } This will throw up the XP or Vista print dialog, and then print the element specified, no problems at...


April 11, 2008  2:37 PM

Printing with WPF



Posted by: MarkWPF
printing, WPF, XAML

How does printing work with WPF? Well, actually, if anyone out there has ever worked with printing in MFC, then it's so advanced as to make you dizzy. Even if you ever tried printing with Windows Forms, then printing in WPF is a bit of a revelation. So how does it work? Most of the...


April 3, 2008  11:02 PM

Using Document Outline in VS2008 with WPF



Posted by: MarkWPF
Microsoft Windows, VS 2008, WPF, XAML

I have recently rediscovered Document Outline in VS2008. It was something that I relegated, in my head at least, to the world of web However, I thought about a week ago - wouldn't it be very handy if it showed me my complex xaml in a tree. Lo and behold it did, andI could click on each node...


March 31, 2008  11:03 PM

Data validation in WPF, my approach



Posted by: MarkWPF
Databinding, Validation, WPF, XAML

Whether to use IDataErrorInfo or ValidationRule - that is the question, as I posed in a previous post. So , you may be wondering what do I do in my WPF projects? Or you may not :-) Well,...