|
|
|
|
|
|
| Building a WPF Application without XAML (part 2) |
| The WPF API provides a number of events you can capture in order to interact with the mouse. Specifically, the UIElement base class defines a number of mouse-centric events such as MouseMove, MouseUp, MouseDown, MouseEnter, MouseLeave, and so forth. |
|
|
|
|
|
|
|
| Programming with DirectX : Game Input - XInput |
| XInput is an API that is now part of the DirectX and XNA SDKs and allows Windows and Xbox 360-based applications to detect input from Xbox 360 controllers. These controllers include any device available now or in the future that can be used on the Xbox 360. |
|
| Programming with DirectX : Game Input - Win32 Input |
| There are three main ways to detect input in a Win32 application. You can use the message pump of the application, you can obtain the state of the device using various Win32 functions, or you can use an API such as XInput, DirectInput, and so forth. |
|
|
|
|
|
| Microsoft XNA Game Studio 3.0 : Getting the Date and Time |
| The PC, the Zune, and the Xbox have internal clock hardware that is used by some games to change the way they play so that, for example, if it’s dark outside, it’s dark in the game as well. To accomplish this, the XNA Framework must provide a way of finding the date and time. |
|
| Microsoft XNA Game Studio 3.0 : Text and Computers |
| The Content Manager fetches a font and make it available for use in a very similar way to the images that you’ve used before. Each character design is delivered to your program as a little image that the Draw method displays on the screen. |
|
| Silverlight Recipes : Managing Embedded Resources |
| To read embedded resources, you have to first embed them into the application. To embed resources such as images, video, and XML data, add the resources to the Silverlight application project, and set the build action for each resource to Embedded Resource |
|
| Silverlight Recipes : Managing XAML Resources |
| You want to create a consistent UI without having to replicate styles, colors, templates, and so forth on individual elements, much in the same way that CSS resources are shared in a web application. |
|
|
|
| Programming with DirectX : Sound in DirectX - XAudio2 |
| XAudio2 does not have a way to detect and convert audio files between incompatible endian orders. This means that if you are working directly with XAudio2 on Xbox 360 and Windows, you must handle endian order carefully. |
|
|
|
|
|
| iPhone 3D Programming : Image-Processing Example: Bloom |
| For any postprocessing effect, the usual strategy is to render the scene into an FBO then draw a full-screen quad to the screen with the FBO attached to a texture. When drawing the full-screen quad, a special fragment shader is employed to achieve the effect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Building LOB Applications : Printing in a Silverlight LOB Application |
| Users can leverage the browser printing capabilities to print Silverlight applications in Silverlight 3 but there are many situations where LOB applications need to have customized printing. Silverlight 4 includes the new PrintDocument class to provide printing capabilities to Silverlight applications. |
|
| Building LOB Applications : Data Validation through Data Annotation |
| When you add a Domain Service to a web project, you have the option of generating a metadata class. The metadata class is a partial class that allows developers to apply validation configuration without having to worry about the classes getting regenerated automatically if the underlying model changes. |
|
|
|
|
|
|
|
|
|
|
|