Prev | Current Page 364 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"


You can check a font??™s embedding permissions using Microsoft??™s free font properties
extension utility, which is available at http://www.microsoft.com/typography/
TrueTypeProperty21.mspx. Once you install this utility, right-click any font file, and choose
Properties to see more detailed information about it. In particular, check the Embedding tab
for information about the allowed embedding for this font. Fonts marked with Installed
Embedding Allowed are suitable for WPF applications, while fonts with Editable Embedding
Allowed may not be. Consult with the font vendor for licensing information about a specific
font.
CHAPTER 7 n CLASSIC CONTROLS 192
Mouse Cursors
A common task in any application is to adjust the mouse cursor to show when the application
is busy or to indicate how different controls work. You can set the mouse pointer for any
element using the Cursor property, which is inherited from the FrameworkElement class.
Every cursor is represented by a System.Windows.Input.Cursor object. The easiest
way to get a Cursor object is to use the shared properties of the Cursors class (from the
System.Windows.Input namespace). They include all the standard Windows cursors, such as
the hourglass, the hand, resizing arrows, and so on. Here??™s an example that sets the hourglass
for the current window:
Me.


Pages:
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376