
To give your fingers a target to touch and drag, the programs display translucent disks at the Texture2D corners. It would be nice to code these draggable translucent disks so they’re usable by multiple programs.

The primary means of user input to a Windows Phone 7 application is touch. A Windows Phone 7 device has a screen that supports at least four touch points, and applications must be written to accommodate touch in a way that feels natural and intuitive to the user and the XNA programmers have two basic approaches to obtaining touch input.

The most common way for an XNA program to obtain a Texture2D object is by loading it as program content.

In this article I’ll examine techniques for moving and turning sprites, particularly along curves.

Much of the core of an XNA program is dedicated to moving sprites around the screen. Sometimes these sprites move under user control; at other times they move on their own volition as if animated by some internal vital force.

The phone’s portrait form factor, the ease of multi-touch, and a recent emphasis on fluid user interfaces all suggest other types of layout. Two such alternatives are available in Windows Phone 7 in new controls named Pivot and Panorama.

Learn how to load XML student data into business objects and bind it to Windows Phone 7 ListBox controls using ObservableCollection, INotifyPropertyChanged, and DataTemplates.

ItemsControl and its derivatives display collections of items. In addition, Selector and its derivatives implement properties and logic that allow the user to select one or more items from the collection.

This article will demonstrate how to write templates by hand so you’ll be in a better position to understand Expression Blend output if you later decide to go that route.

The new Style can add to those Setter objects or override them. However, it is not possible to derive from a ControlTemplate. There’s no way to reference an existing ControlTemplate and specify an additional piece of the visual tree, or a replacement for part of the visual tree.

Silverlight 3 introduced a new UIElement property named Projection that allows setting non-affine transforms on graphical objects, text, controls, and media. Non-affine transforms do not preserve parallelism.

You can use Silverlight animations in a couple different ways to move an element around the screen. One way is to target a TranslateTransform set to the element’s RenderTransform property.

Animations in Silverlight work by changing a particular property of a particular object, the animation classes are distinguished by the type of the property that they animate.

Learn how to use WriteableBitmap in Windows Phone 7 to capture UI elements, manipulate pixel data, and combine vector graphics with bitmap images.

The Bézier curve is a spline, which is a type of curve used to approximate discrete data with a smooth continuous function.

When a property backed by a dependency property is changed at runtime, the element with that property changes to reflect that change. This is a result of the support for a property-changed handler built into dependency properties.

Vector graphics is the visual realization of analytic geometry. Two-dimensional coordinate points in the form (x, y) define straight lines and curves. In Silverlight, these curves can be arcs on the circumference of an ellipse or Bezier curves, either in the customary cubic form or in a simplified quadratic form.

Learn how to use XAML data binding and value converters in Windows Phone 7 to display AM/PM text and customize UI values.

Data bindings are most easily demonstrated using two visual elements such as a Slider and a TextBlock, and that’s where I’ll begin.

You’ve probably noticed a new style of toggle button in some Windows Phone 7 screens.

You’re creating a custom control class, and that class defines new properties, and if you want those properties to be set through styles, or you want those properties to be set through data bindings.

The standard Silverlight Button is much more flexible than the ApplicationBar buttons, as well as being easier to use.

The ApplicationBar serves the same role as a menu or toolbar that you might find in a conventional Windows program and Jot displays finger input using a class named InkPresenter, which originated with tablet interfaces.

Panels are written entirely in code. There is no XAML involved. When you write a Panel derivative, you’ll probably be defining a couple properties to make the panel more flexible.

One of the most important classes in all of Silverlight is Panel-the class that plays a starring role in the Silverlight layout system. You might expect such a crucial class to define many properties and events.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article