Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.50 KB | None | 0 0
  1. <Window x:Class="GestionHotel"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="GestionHotel" Height="1920" Width="1080"
  5. WindowState="Maximized" WindowStartupLocation="CenterScreen"
  6. ResizeMode="NoResize" WindowStyle="None" Loaded="Window_Loaded" >
  7.  
  8. <Window.Resources>
  9.  
  10. <ResourceDictionary Source="Resources.xaml" />
  11. </Window.Resources>
  12.  
  13. <Border>
  14.  
  15. <DockPanel>
  16. <Border Style="{DynamicResource ResourceKey=bd_Top}">
  17.  
  18.  
  19. <Grid>
  20. <Grid.Background>
  21. <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
  22. <GradientStop Color="#FF1F5071" Offset="0.954"/>
  23. <GradientStop Color="#FF3692D0" Offset="0.378"/>
  24. <GradientStop Color="#FF3692D0" Offset="0.159"/>
  25. <GradientStop Color="#FF095B91" Offset="0.639"/>
  26. </LinearGradientBrush>
  27. </Grid.Background>
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="545"/>
  30. <ColumnDefinition Width="AUTO"/>
  31. <ColumnDefinition Width="640"/>
  32. </Grid.ColumnDefinitions>
  33.  
  34.  
  35.  
  36. <StackPanel>
  37. <WrapPanel Margin="50,20,0,0" Grid.Column="0">
  38. <Label x:Name="gh_lblNomHotel" FontSize="30" FontWeight="ExtraBold" FontFamily="Verdana" Foreground="Blue" FontStretch="UltraExpanded" Content="Example"/>
  39. </WrapPanel>
  40.  
  41. <WrapPanel>
  42. <Label x:Name="gh_lblAdresseHotel" FontSize="15" FontWeight="ExtraBold" Margin="0,10,0,0" FontFamily="Verdana" Foreground="White" FontStyle="Italic" FontStretch="UltraExpanded" Content="Adresse XVCER"/>
  43. <Label x:Name="gh_lblNoTelHotel" FontSize="15" FontWeight="ExtraBold" Margin="50,10,0,0" FontFamily="Verdana" Foreground="White" FontStyle="Italic" FontStretch="UltraExpanded" Content="(418) 944-5788"/>
  44. </WrapPanel>
  45. </StackPanel>
  46.  
  47.  
  48. <Rectangle Grid.Column="1" Style="{DynamicResource ResourceKey=rec_Top}">
  49. <Rectangle.Fill>
  50. <ImageBrush ImageSource="/Gestion_Hotel_Nouv;component/Images/logoROS.png" ></ImageBrush>
  51. </Rectangle.Fill>
  52. </Rectangle>
  53.  
  54.  
  55.  
  56. <StackPanel HorizontalAlignment="Left" Grid.Column="2" >
  57.  
  58.  
  59. <Label x:Name="gh_lblUtilisateur" FontFamily="Verdana" FontSize="20" Foreground="White">Bienvenue Mr.Payette</Label>
  60. <WrapPanel Orientation="Horizontal">
  61. <Label x:Name="gh_lblHeure" Style="{DynamicResource ResourceKey=lb_HeureDate}" Margin="80,0,0,0" HorizontalContentAlignment="Left" Content="{Binding}"></Label>
  62. <Label x:Name="gh_lblDate" Style="{DynamicResource ResourceKey=lb_HeureDate}" Margin="135,0,0,0">2014-08-02</Label>
  63. </WrapPanel>
  64. <WrapPanel Orientation="Horizontal">
  65. <Button Background="#ECECEA" Foreground="Black" x:Name="btnProfil" FontFamily="Verdana" FontSize="20" Width="225" Height="35" BorderBrush="Black" BorderThickness="0,1,1,1" RenderTransformOrigin="0.306,-0.372">Profil</Button>
  66. <Button Name="btnDeco" Content="Déconnexion" FontSize="20" HorizontalContentAlignment="Center" Background="#ECECEA" Width="225" Height="35" BorderBrush="Black" BorderThickness="0,1,1,1" ></Button>
  67.  
  68. </WrapPanel>
  69. </StackPanel>
  70. </Grid>
  71. </Border>
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78. <!--/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////-->
  79.  
  80.  
  81.  
  82.  
  83. <Grid>
  84. <Grid.Background>
  85. <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
  86. <GradientStop Color="#FF1F5071" Offset="0.954"/>
  87. <GradientStop Color="#FF3692D0" Offset="0.378"/>
  88. <GradientStop Color="#FF3692D0" Offset="0.159"/>
  89. <GradientStop Color="#FF095B91" Offset="0.639"/>
  90. </LinearGradientBrush>
  91. </Grid.Background>
  92. <Grid.ColumnDefinitions>
  93. <ColumnDefinition Width="200"></ColumnDefinition>
  94. </Grid.ColumnDefinitions>
  95. <ListBox ScrollViewer.VerticalScrollBarVisibility="Auto">
  96. <ListBox.Resources>
  97. <Style TargetType="{x:Type Expander}">
  98. <Setter Property="IsExpanded"
  99. Value="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
  100. </Style>
  101. </ListBox.Resources>
  102. <ListBox.Template>
  103. <ControlTemplate TargetType="{x:Type ListBox}">
  104. <ItemsPresenter/>
  105. </ControlTemplate>
  106. </ListBox.Template>
  107. <ListBox.ItemContainerStyle>
  108. <Style TargetType="{x:Type ListBoxItem}">
  109. <Setter Property="Template">
  110. <Setter.Value>
  111. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  112. <ContentPresenter Content="{TemplateBinding Content}"/>
  113. </ControlTemplate>
  114. </Setter.Value>
  115. </Setter>
  116. </Style>
  117. </ListBox.ItemContainerStyle>
  118.  
  119. <Expander x:Name="gh_expHome" Background="#092040">
  120. <Expander.Header>
  121. <BulletDecorator>
  122. <BulletDecorator.Bullet>
  123. <Image Source="/Gestion_Hotel_Nouv;component/Images/home.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  124. </BulletDecorator.Bullet>
  125. <TextBlock Margin="10,0,0,0" Text="Accueil" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  126. </BulletDecorator>
  127. </Expander.Header>
  128. <WrapPanel>
  129.  
  130. <Label Margin="20,5,5,5" Foreground="white" Content="Planning hôtel"/>
  131. <Label Margin="20,5,5,5" Foreground="white" Content="Planning salle"/>
  132. <Label Margin="20,5,5,5" Foreground="white" Content="Planning activité"/>
  133. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  134. <Label Margin="20,5,5,5" Foreground="white" Content="Guide utilisateur"/>
  135. <Label Margin="20,5,5,5" Foreground="white" Content="Support technique"/>
  136. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  137. <Label Margin="20,5,5,5" Foreground="white" Content="Quitter le logiciel"/>
  138.  
  139. </WrapPanel>
  140. </Expander>
  141.  
  142. <Expander x:Name="gh_expRes" Background="#092040">
  143. <Expander.Header>
  144. <BulletDecorator>
  145. <BulletDecorator.Bullet>
  146. <Image Source="/Gestion_Hotel_Nouv;component/Images/reservation.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  147. </BulletDecorator.Bullet>
  148. <TextBlock Margin="10,0,0,0" Text="Réservation" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  149. </BulletDecorator>
  150. </Expander.Header>
  151. <WrapPanel>
  152. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="gh_btnChambre" Foreground="white" Content="Réserver une chambre"/>
  153. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="gh_btnSalle" Foreground="white" Content="Réserver une salle"/>
  154. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  155. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="gh_btnConsulterChambre" Foreground="white" Content="Consulter chambres réservés"/>
  156. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="gh_btnConsulterSalles" Foreground="white" BorderThickness="0" Content="Consulter salles réservés"/>
  157.  
  158. </WrapPanel>
  159. </Expander>
  160.  
  161. <Expander x:Name="gh_expCli" Background="#092040">
  162. <Expander.Header>
  163. <BulletDecorator>
  164. <BulletDecorator.Bullet>
  165. <Image Source="/Gestion_Hotel_Nouv;component/Images/client.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  166. </BulletDecorator.Bullet>
  167. <TextBlock Margin="10,0,0,0" Text="Client" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  168. </BulletDecorator>
  169. </Expander.Header>
  170. <WrapPanel>
  171. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnAjoutClient" Foreground="white" Content="Ajouter/Modifier un client"/>
  172. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  173. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnConsulterClient" Foreground="white" Content="Consulter les clients"/>
  174. </WrapPanel>
  175. </Expander>
  176.  
  177.  
  178.  
  179. <Expander x:Name="gh_expVerif" Background="#092040">
  180. <Expander.Header>
  181. <BulletDecorator>
  182. <BulletDecorator.Bullet>
  183. <Image Source="/Gestion_Hotel_Nouv;component/Images/cuisine.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  184. </BulletDecorator.Bullet>
  185. <TextBlock Margin="10,0,0,0" Text="Vérification" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  186. </BulletDecorator>
  187. </Expander.Header>
  188. <WrapPanel>
  189. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnVerificationChambre" Foreground="white" Content="Verifier une chambre"/>
  190.  
  191. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  192. </WrapPanel>
  193. </Expander>
  194.  
  195.  
  196.  
  197.  
  198.  
  199. <Expander x:Name="gh_expEmploye" Background="#092040">
  200. <Expander.Header>
  201. <BulletDecorator>
  202. <BulletDecorator.Bullet>
  203. <Image Source="/Gestion_Hotel_Nouv;component/Images/salle.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  204. </BulletDecorator.Bullet>
  205. <TextBlock Margin="10,0,0,0" Text="Employe" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  206. </BulletDecorator>
  207. </Expander.Header>
  208. <WrapPanel>
  209. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnAjouterEmploye" Foreground="white" Content="Ajouter/Modifier un employe"/>
  210. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  211. </WrapPanel>
  212. </Expander>
  213.  
  214.  
  215.  
  216. <Expander x:Name="gh_expForfait" Background="#092040">
  217. <Expander.Header>
  218. <BulletDecorator>
  219. <BulletDecorator.Bullet>
  220. <Image Source="/Gestion_Hotel_Nouv;component/Images/salle.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  221. </BulletDecorator.Bullet>
  222. <TextBlock Margin="10,0,0,0" Text="Forfait" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  223. </BulletDecorator>
  224. </Expander.Header>
  225. <WrapPanel>
  226. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnAjouterForfait" Foreground="white" Content="Ajouter/Modifier un forfait"/>
  227. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  228. </WrapPanel>
  229. </Expander>
  230.  
  231.  
  232.  
  233. <Expander x:Name="gh_expGestion" Background="#092040">
  234. <Expander.Header>
  235. <BulletDecorator>
  236. <BulletDecorator.Bullet>
  237. <Image Source="/Gestion_Hotel_Nouv;component/Images/salle.png" Width="64" Height="64" HorizontalAlignment="Left" VerticalAlignment="Top" />
  238. </BulletDecorator.Bullet>
  239. <TextBlock Margin="10,0,0,0" Text="Gestion" VerticalAlignment="Center" HorizontalAlignment="Stretch" Foreground="White" />
  240. </BulletDecorator>
  241. </Expander.Header>
  242. <WrapPanel>
  243. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnAjouterProduit" Foreground="white" Content="Ajouter/Modifier un produit"/>
  244. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnEquipementSalle" Foreground="white" Content="Modifier Équipement"/>
  245. <Button BorderBrush="Transparent" Background="Transparent" Margin="20,5,5,5" x:Name="btnVoirBris" Foreground="white" Content="Consulter les Bris"/>
  246.  
  247. <Rectangle Margin="20,5,5,5" Height="2" Width="100" Fill="Black"></Rectangle>
  248. </WrapPanel>
  249. </Expander>
  250.  
  251.  
  252.  
  253. </ListBox>
  254.  
  255.  
  256.  
  257.  
  258. </Grid>
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. <Border BorderBrush="Black" BorderThickness="1">
  287.  
  288. <StackPanel Background="#FF90AFB8">
  289. <Frame Margin="10" NavigationUIVisibility="Hidden" x:Name="Contenu" />
  290.  
  291. </StackPanel>
  292.  
  293. </Border>
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317. </DockPanel>
  318.  
  319. </Border>
  320. </Window>
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. <!--<StackPanel Style="{DynamicResource ResourceKey=sp_Header}" Name="sp_Header">
  393.  
  394.  
  395. </StackPanel>
  396.  
  397.  
  398. <StackPanel Style="{DynamicResource ResourceKey=sp_Menu}" Name="sp_Menu">
  399.  
  400. <Button Height="40" Width="80" Name="btnReservation" Content="Reservation"/>
  401. <Button Height="40" Width="80" Name="btnAccueil" Content="Accueil"/>
  402.  
  403. </StackPanel>
  404.  
  405.  
  406.  
  407. <Frame Margin="10" NavigationUIVisibility="Hidden" x:Name="Contenu" />-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement