Click here to Skip to main content
15,879,535 members
Articles / Desktop Programming / WPF

Rotating WPF Content in 3D Space

Rate me:
Please Sign up or sign in to vote.
4.92/5 (72 votes)
22 Mar 2009CPOL9 min read 336.4K   13.8K   170  
Introducing ContentControl3D: a control that makes it easy to incorporate 3D flips into any WPF user interface.
<UserControl 
  x:Class="WpfDisciplesBlogRoll3D.BloggerControl"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  >
  <Button
    Command="Open"
    Focusable="False"
    Width="160" Height="160"
    >
    <Button.Template>
      <ControlTemplate TargetType="Button">
        <DockPanel Background="#33000000">
          <Button           
            Command="Open"
            CommandParameter="{Binding XPath=@url}"
            Content="{Binding XPath=@author}"
            Cursor="Hand"
            DockPanel.Dock="Top"
            Focusable="False"
            Foreground="Black"
            HorizontalAlignment="Stretch"   
            ToolTip="Visit blog..."
            />
          <Image 
            Opacity="0.75"
            Source="{Binding XPath=@pic}" 
            />
        </DockPanel>
      </ControlTemplate>
    </Button.Template>
  </Button>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Josh creates software, for iOS and Windows.

He works at Black Pixel as a Senior Developer.

Read his iOS Programming for .NET Developers[^] book to learn how to write iPhone and iPad apps by leveraging your existing .NET skills.

Use his Master WPF[^] app on your iPhone to sharpen your WPF skills on the go.

Check out his Advanced MVVM[^] book.

Visit his WPF blog[^] or stop by his iOS blog[^].

See his website Josh Smith Digital[^].

Comments and Discussions