Browse by Tags

Tagged Content List
  • Blog Post: Interactive 2D Controls on 3D Surfaces in WPF

    One of the really cool features of WPF is its ability to place 2D content on 3D surfaces. For example, you can place a button control on a sphere or arrange images on a cube. However, w ith V1 of WPF, you couldn't interact with this 2D content. You could put a button on a sphere, but you couldn't click...
  • Blog Post: Using Text as a Decorative Element: the Outline Text Custom Control

    The FormattedText object provides greater text formatting features than standard WPF text controls, and can be useful in cases where you want to use text as a decorative element. This posting shows how to use the FormattedText object to create striking visual effects by setting a Brush value to the fill...
  • Blog Post: Styles and Templates - How's everything related?

    People who are new to the platform often have these questions about styles and templates (and a related concept, resources): What is a Resource? In the simplest terms, a resource is a reusable object. For example, the following SolidColorBrush is declared and used as a resource: < Window...
  • Blog Post: Uncommon Dialogs: Font Chooser & Color Picker Dialogs

    You may have noticed that WPF does not contain some of the standard common dialogs you've come to expect in Win32 API sets. For example, the Win32 Common Dialog Box Library contains a standard user-interface model for dialogs, such as Open, Print, Color, and Font. However, the WPF team has created several...
  • Blog Post: Control.Background does what?

    I came to the WPF scene after spending some time as a Programmer/Writer for the Windows Forms team. When I first started using WPF, one of the first things I tried to do was create a custom control by inheriting from System.Windows.Controls.Control. I didn’t get very far because I didn’t understand the...
  • Blog Post: WPF Basic Data Binding FAQ

    Through talking to people and monitoring both internal and external forums, I have compiled a list of questions people often have when first learning about WPF data binding. If you have any questions, please leave a comment and let me know! What is target and what is source? In WPF, you typically...
  • Blog Post: Controlling z-order using the ZIndex Property

    The Composing a XAML Clip Art Scene posting showed how you could layer multiple drawing objects in an XAML file. The sample XAML file in that posting used the default z-order behavior of objects in a collection. One of the changes made in WPF Beta 2 is the introduction of the ZIndex attached property...
  • Blog Post: Animating XAML Clip Art - Part 2

    The WPF Animation Team created this cool red bouncing ball. Thanks Ed! When the ball hits the bottom of the canvas it flattens slightly before bouncing upwards. The Animating XAML Clip Art posting shows you how to creating a bouncing effect (without the flattening.) In this posting, we'll explore...
  • Blog Post: XAML FlowDocument to HTML Conversion Prototype

    XAML FlowDocuments and HTML have some things in common. But they also have some distinct differences that makes writing a conversion utility tricky. A well written XSLT could potentially process XHTML input and generate FlowDocument content... But this pre-supposes well-formed HTML in the first place...
  • Blog Post: Animating XAML Clip Art

    The Converting WMF images to XAML using Graphic Designer posting showed how you could easily convert WMF format files to XAML. The end result was the Skippy XAML file that we could view in XamlPad. In this posting, we'll explore how to create an animation effect that will put the bounce in Skippy. At...
  • Blog Post: Using Speech Synthesis in a WPF Application

    WinFX contains the System.Speech.Synthesis and System.Speech.Recognition namespaces, which allow developers to add speech synthesis or recognition easily to a Windows application. The following diagram illustrates how both managed and unmanaged Windows applications interact with the underlying speech...
Page 1 of 1 (11 items)