client/src/Iri.Modernisation.Controls/View/HeaderControl/HeaderControl.xaml
author totetm <>
Fri, 12 Feb 2010 16:22:57 +0100
changeset 47 9b26023b8c83
parent 9 185e3ab53a56
permissions -rw-r--r--
Fixed| bug si on ferme un livre en le lisant ReFixed|faire fonctionner le seek, même quand play n'est pas activer

<UserControl x:Class="Iri.Modernisation.Controls.View.HeaderControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="clr-namespace:Iri.Modernisation.Controls.View"
    xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
    xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
    Width="900" Height="40" FontFamily="Verdana"   
    >
    <UserControl.Resources>
        <ResourceDictionary>
            <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="White" >
        <Image Source="images/bgcompact.jpg" Stretch="UniformToFill" Height="43" HorizontalAlignment="Stretch" VerticalAlignment="Top"/>
        <Rectangle VerticalAlignment="Top" HorizontalAlignment="Stretch" Fill="Black" Height="43" />

        <TextBlock x:Name="textInfo" IsHitTestVisible="False" HorizontalAlignment="Center" 
                   VerticalAlignment="Top" Margin="0,12,540,0" FontSize="14" 
                   Foreground="#FFffffff" />

        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="293,0,0,0" Background="Transparent" HorizontalAlignment="Left" >
            <local:ButtonHeaderControl  Input:CommandService.Command="ButtonClick"   Input:CommandService.CommandParameter="{Binding}" Title="{Binding MenuDisplayAnnotations, Source={StaticResource LangLabels}}" ImageSource="images/home.png" TransitionColor="#7f002222" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove" MouseLeave="ButtonSeven_MouseLeave"
                               NavigateUri="#"/>
            <local:ButtonHeaderControl  Input:CommandService.Command="ButtonClick"   Input:CommandService.CommandParameter="{Binding}" Title="{Binding MenuDisplaySequences, Source={StaticResource LangLabels}}" ImageSource="images/games.png" TransitionColor="#7f220022" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove" MouseLeave="ButtonSeven_MouseLeave"
                               NavigateUri="#"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="0,0,3,0" Background="Transparent" HorizontalAlignment="Right" Width="309" >
            
            <local:ButtonHeaderControl  Input:CommandService.Command="ButtonClick"    Input:CommandService.CommandParameter="{Binding}" Title="{Binding MenuMessagingLabel, Source={StaticResource LangLabels}}" ImageSource="images/sourcecode.png" TransitionColor="#7f220000" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove" MouseLeave="ButtonSeven_MouseLeave"
                               NavigateUri="#s"/>
            <local:ButtonHeaderControl  Input:CommandService.Command="ButtonClick"    Input:CommandService.CommandParameter="{Binding}" Title="{Binding MenuPreferenceLabel, Source={StaticResource LangLabels}}" ImageSource="images/tutorials.png" TransitionColor="#7f000022" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove" MouseLeave="ButtonSeven_MouseLeave"
                               NavigateUri="#s"/>
            <local:ButtonHeaderControl  Input:CommandService.Command="ButtonClick"   Input:CommandService.CommandParameter="{Binding}" Title="{Binding MenuLogoutLabel, Source={StaticResource LangLabels}}"  ImageSource="images/blog.png" TransitionColor="#7f002200" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove" MouseLeave="ButtonSeven_MouseLeave"
                               NavigateUri="#" OpenInNewWindow="True"/>
            
        </StackPanel>
        <TextBlock x:Name="textTopTitle" Text="{Binding ConnectedName}" Foreground="White" Margin="0,0,4,12" IsHitTestVisible="False" FontSize="10.667" />


    </Grid>
</UserControl>