Profiter du Designer de Visual Studio 2010 ou de Blend pour concevoir le splash, voici le mien:
Code XAML :
<Grid x:Name= »LayoutRoot » Background= »White » ShowGridLines= »True »>
<StackPanel Canvas.ZIndex= »1000″ Orientation= »Horizontal » Visibility= »Visible » VerticalAlignment= »Center » HorizontalAlignment= »Center » Margin= »0,0,0,50″>
<TextBlock x:Name= »txtPercent » FontSize= »120″ Opacity= »0.05″ VerticalAlignment= »Bottom »>
<Run Text= »00″/>
TextBlock>
StackPanel>
<StackPanel Orientation= »Vertical » VerticalAlignment= »Center » HorizontalAlignment= »Center » Margin= »0,0,0,50″>
<Grid Height= »Auto » HorizontalAlignment= »Center » VerticalAlignment= »Center » Width= »Auto »>
<Rectangle x:Name= »progressBarBackground » Stroke= »Black » StrokeThickness= »1″ Height= »8″ VerticalAlignment= »Center » Width= »150″ Margin= »0,0,0,0″/>
<Rectangle x:Name= »progressBar » Fill= »Orange » Width= »0″ Height= »6″ HorizontalAlignment= »Left » VerticalAlignment= »Center » Margin= »1,0,1,0″/>
Grid>
StackPanel>
Grid>
Grid>
Les éléments surlignés sont importants car ils seront mis à jour par l’intermédiaire du script javascript ci-dessous.
Pensez à retirer la balise et garder uniquement le dans le XAML.
Lire la suite →