|
<UserControl x:Class="RCNavController.NavController"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot">
<Border x:Name="ContentContainer" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
</Border>
<Image Opacity="0" x:Name="ImageOverlay" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
<Rectangle Opacity="0" x:Name="GrayOverlay" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Rectangle.Fill>
<RadialGradientBrush>
<GradientStop Color="#55000000" Offset="0" />
<GradientStop Color="#C5000000" Offset="1" />
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Border Opacity="0" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="Loader"></Border>
</Grid>
<UserControl.Resources>
<Storyboard x:Name="DisplayOverlays" Completed="DisplayOverlays_Completed">
<DoubleAnimation To="1" Storyboard.TargetName="ImageOverlay" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation To="1" Storyboard.TargetName="GrayOverlay" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation To="1" Storyboard.TargetName="Loader" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
<Storyboard x:Name="HideOverlays" Completed="HideOverlays_Completed">
<DoubleAnimation To="0" Storyboard.TargetName="ImageOverlay" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation To="0" Storyboard.TargetName="GrayOverlay" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation To="0" Storyboard.TargetName="Loader" Storyboard.TargetProperty="Opacity" Duration="00:00:01">
<DoubleAnimation.EasingFunction>
<SineEase />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</UserControl.Resources>
</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.
I develop awesome Windows Phone/Windows 8 stuff, am a Nokia Developer Champion, I do Netduino electronics stuff, and blog a lot. I also occasionally do talks about development at Universities and conferences like TechEd. I run a small indie Windows Phone studio, currently working on an AppCampus-funded game.
Checkout my just-for-fun apps here: http://www.windowsphone.com/en-US/store/publishers?publisherId=RogueCode&appId=23d742d2-5b14-48a7-8e5f-b3b779537338
I also do Windows Phone (and Windows) development for clients, for example: http://www.windowsphone.com/en-za/store/app/dstv/a87feeed-a8dd-4bcb-8d47-15908340fdab
I am currently on hiatus from writing development articles for WPCentral.com.
My first book has just been published on home automation with a Netduino: http://www.amazon.co.uk/Netduino-Home-Automation-Projects-Cavanagh/dp/1849697825