1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| <navigation:Page 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"
xmlns:EventHandlers="clr-namespace:LearningCompany_RIA.Tools"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:ec="http://schemas.microsoft.com/expression/2010/controls" x:Class="LearningCompany_RIA.Views.GererFormateurs"
mc:Ignorable="d"
d:DesignWidth="640" d:DesignHeight="480"
Title="GererFormateurs Page" DataContext="{Binding GererFormateursViewModel, Source={StaticResource Locator}}" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
<Grid x:Name="LayoutRoot">
<ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
<StackPanel>
<Button Content="Ajouter un formateur" Command="{Binding AjouterFormateurCommand}"/>
<TextBox TextWrapping="Wrap" x:Name="txt_filtre"/>
<Button Content="Charger" Width="75" Command="{Binding LoadCommand}" CommandParameter="{Binding ElementName=txt_filtre, Path=Text}"/>
<Grid Height="239" Width="672">
<ListBox Visibility="Collapsed" DisplayMemberPath="Nom" ItemsSource="{Binding Formateurs}" SelectedItem="{Binding SelectedFormateur, Mode=TwoWay}" d:LayoutOverrides="Width"/>
<Path x:Name="path" Data="M86,46 C86,46 352,227 615,41" Margin="85.5,40.5,56.5,113.517" StrokeStartLineCap="Flat" Stretch="Fill" StrokeEndLineCap="Flat" StrokeThickness="1" StrokeMiterLimit="10" StrokeLineJoin="Miter" UseLayoutRounding="False"/>
<ec:PathListBox SelectedItem="{Binding SelectedFormateur, Mode=TwoWay}" DisplayMemberPath="Nom" ItemsSource="{Binding Formateurs}" HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100">
<ec:PathListBox.LayoutPaths>
<ec:LayoutPath SourceElement="{Binding ElementName=path}" Orientation="OrientToPath"/>
</ec:PathListBox.LayoutPaths>
</ec:PathListBox>
</Grid>
<Button Content="Précédent" Width="75" Command="{Binding PreviousNextCommand}" CommandParameter="-1"/>
<Button Content="Suivant" Width="75" Command="{Binding PreviousNextCommand}" CommandParameter="1"/>
<Button Content="Supprimer" Width="75" Command="{Binding DeleteCommand}" />
<toolkit:DataForm Name="dataForm1" EventHandlers:EditEndedBehavior.EditEnded="{Binding EditEndedCommand}" CommandButtonsVisibility="All" AutoEdit="True" CurrentItem="{Binding SelectedFormateur, Mode=TwoWay}" />
</StackPanel>
</ScrollViewer>
</Grid>
</navigation:Page> |
Partager