<UserControl x:Class="ContentControl3D_Demo.Samples.DirectContentSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:thriple="http://thriple.codeplex.com/" Background="#22000000" > <thriple:ContentControl3D MaxWidth="700" MaxHeight="700"> <!-- FRONT SIDE --> <thriple:ContentControl3D.Content> <Grid Background="SlateGray" Width="250" Height="250"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <!-- This Button's Command property is set to the command that rotates the 3D surface. --> <Button Grid.Row="0" Content="Flip" Command="thriple:ContentControl3D.RotateCommand" HorizontalAlignment="Right" Margin="10" /> <TextBlock Grid.Row="1" Background="LightBlue" Margin="2,0" Text="Front Side" TextAlignment="Center" VerticalAlignment="Center" /> </Grid> </thriple:ContentControl3D.Content> <!-- BACK SIDE --> <thriple:ContentControl3D.BackContent> <Grid Background="SlateGray" Width="250" Height="250"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <!-- This Button's Command property is set to the command that rotates the 3D surface. --> <Button Grid.Row="0" Content="Flip" Command="thriple:ContentControl3D.RotateCommand" HorizontalAlignment="Right" Margin="10" /> <TextBlock Grid.Row="1" Background="LightGreen" Margin="2,0" Text="Back Side" TextAlignment="Center" VerticalAlignment="Center" /> </Grid> </thriple:ContentControl3D.BackContent> </thriple:ContentControl3D> </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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)