Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

3D effects in tiles in xaml

$
0
0

I am using MahApps.metro a third party library for creating tiles in wpf xaml but I need these tiles to give a 3D effect.

Can anyone provide me piece of code for 3D effects on these tiles.

My code is:

<controls:Tile TiltFactor="2" Background="Transparent" Foreground="White" Grid.Row="1" Grid.Column="1" Width="{Binding TileWidth,UpdateSourceTrigger=PropertyChanged}" Height="{Binding TileHeight,UpdateSourceTrigger=PropertyChanged}" controls:ControlsHelper.MouseOverBorderBrush="White" ToolTip="Home" Command="{Binding RestartCommand}" BorderBrush="#FF0080FF" BorderThickness="1">

                   

                   <Grid Width="{Binding TileWidth,UpdateSourceTrigger=PropertyChanged}" Height="{Binding TileHeight,UpdateSourceTrigger=PropertyChanged}">

                       <Grid.RowDefinitions>

                           <RowDefinition/>

                           <RowDefinition Height="20"/>

                       </Grid.RowDefinitions>

                       <Grid Grid.Row="0" Width="{Binding IconWidth,UpdateSourceTrigger=PropertyChanged}" Height="{Binding IconHeight,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                           <Grid.Background>

                               <ImageBrush ImageSource="../Images/home.png"/>

                           </Grid.Background>

                       </Grid>

                       <TextBlock Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="16" Foreground="#FF0080FF" FontWeight="Bold" Margin="0,0,0,5"><Run Text="Home"/></TextBlock>

                       

                   </Grid>

               </controls:Tile>


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>