May 14, 2008 8:50 AM
Posted by: MarkWPF
printing,
WPF,
XAMLI 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 24, 2008 2:24 PM
Posted by: MarkWPF
printing,
WPFFrom a previous post of mine, you can see how to easily increase the size of a WPF element in order to print it.
That's not much use though as you are still only hard coding the...
April 22, 2008 3:25 PM
Posted by: MarkWPF
printing,
WPF,
XAMLWhen 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
Posted by: MarkWPF
printing,
WPF,
XAMLTo 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
Posted by: MarkWPF
printing,
WPF,
XAMLHow 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
Posted by: MarkWPF
Microsoft Windows,
VS 2008,
WPF,
XAMLI 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:01 PM
Posted by: MarkWPF
Databinding,
Microsoft Windows,
Validation,
Windows Computing,
WPF,
XAMLAs I mentioned in a previous post, you can specify validation by creating a Validation class (or classes).
You do this by deriving a new class from the ValidationRule class and overriding the...
January 16, 2008 11:59 PM
Posted by: MarkWPF
C,
Development,
Windows Computing,
WPFOne thing that I have noticed, out there in the real world, is that people new to WPF haven't noticed the (slightly) unsung hero Popup.
I have actually seen people spending man weeks recreating a floating window as per the popup control in WPF.
So what is it? Well it is the ancestor class for...