In this article, you will find a demo of a VB.NET way to duplicate the spinning panel effect widely used on the iPhone to let a panel host content both on its front and its back.
|
<Window x:Class="Bornander.UI.Test.SimpleTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:f="clr-namespace:Bornander.UI;assembly=Bornander.UI"
WindowStartupLocation="CenterScreen"
Title="SimpleTest" Height="300" Width="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<f:FlipPanel x:Name="flipper" Grid.Row="0">
<f:FlipPanel.Front>
<Border Background="Red" BorderBrush="Black" BorderThickness="2">
<Button Content="Front" VerticalAlignment="Center" Click="Button_Click"/>
</Border>
</f:FlipPanel.Front>
<f:FlipPanel.Back>
<Border Background="Green" BorderBrush="Black" BorderThickness="2">
<Button Content="Back" VerticalAlignment="Center" Click="Button_Click"/>
</Border>
</f:FlipPanel.Back>
</f:FlipPanel>
<StackPanel Grid.Row="1">
<Slider Minimum="0.2" Maximum="5.0" Value="1" ToolTip="Spin time (s)" ValueChanged="Slider_ValueChanged"/>
<Button x:Name="flipOrientationButton" Content="Horizontal Axis" Click="Button_Click_1"/>
</StackPanel>
</Grid>
</Window>
|
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.
Article videos
Oakmead Apps Android Games
21 Feb 2014: Best VB.NET Article of January 2014 - Second Prize
18 Oct 2013: Best VB.NET article of September 2013
23 Jun 2012: Best C++ article of May 2012
20 Apr 2012: Best VB.NET article of March 2012
22 Feb 2010: Best overall article of January 2010
22 Feb 2010: Best C# article of January 2010