开发者

WPF Card Design

开发者 https://www.devze.com 2023-03-14 21:50 出处:网络
How can I design an application that contains a card that can be flipped and have content on both side?

How can I design an application that contains a card that can be flipped and have content on both side?

The card is something like a post card which has images on 1 side and then the messages on another side. It should be able to be rota开发者_Go百科ted smoothly as well.


The download site has moved around and there doesn't seem to be a documentation page for it anymore, but I think the Bag of Tricks still includes a FlipTile3D control that lets you define both sides of a tile, and lets you flip it over like a playing card.


If you want content on two sides, I recommend Josh Smith's ContentControl3D:

  • Introducing ContentControl3D

It does exactly what you want and includes a variety of configurable 3D transition effects.

There is also a detailed CodeProject article on the control:

  • Rotating WPF Content in 3D Space


Rotating from one content to another is a basic WPF/silverlight skill.

Here is a link to a blog post that shows how to rotate to display a cube. If you wanted to show only two faces, rotate 180 degrees instead of 90.

http://oldschooldotnet.blogspot.com/2009/11/how-to-create-your-own-silverlight-cube.html


just have a look at this post

http://www.interact-sw.co.uk/iangblog/2007/05/17/wpf-flippable-3D-list


You need to create the card as a 3d panel with the necessary controls on each side. I would recommend referencing this control as a starting point:

http://flipcontrol.codeplex.com/releases/view/22358

0

精彩评论

暂无评论...
验证码 换一张
取 消