Rotated Text Using LogFont Sample
Shows how to draw rotated text by creating a font from a LogFont structure. Also demonstrates how to make an application that is high DPI aware and can respond to screen orientation changes.
For information about using the samples, see the following topics:
To build and deploy the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories for this sample.
Double-click the solutions (.sln) file for this sample.
Press F5 to compile and run the sample.
Deploy to the device or emulator.
This sample requires compilation with the hidpi.res file, which is done by default in Visual Studio.
The .NET Compact Framework is required to build or run the sample. See How to: Install the .NET Compact Framework for installation instructions.