Modification fichier xaml pas prise en compte
Bonjour,
j'ai un souci avec mon application Silverlight. En effet j'utilise un WCF RIA services. J'ai crée un service de domaine dans mon projet web LearningCompany qui a ajouté un nouvel élément (FormateursDomainService.cs). Avant dans les propriétés du projet Silverlight LearningCompany_RIA, nous spécifions le projet ASP.NET (LearningCompany)comme lien WCF RIA Services. J'ai modifié notamment mon fichier GererFormateurs.xaml:
Code:
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 36
| <navigation:Page xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
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> |
Hors aucune des modifications que j'ai faîte n'a été prise en compte lorsque je fais démarrer le projet à partir du projet web (LearningCompany), cela a conservé les anciennes modifications. Cependant dans mon projet Silverlight, à un moment donné j'ai modifié les propriétés afin d'avoir une application Out of Browser. Lorsque j'enlève une des options (Permettre l'exécution de l'application hors navigateur) , les modification sont prises en compte, mais uniquement lorsque je fais démarrer l'application à partir du projet Silverlight (LearningCompany_RIA), cela ne marche pas lorsque je fais démarrer le projet à partir du Projet Web (LearningCompany). Je pense que j'ai du modifier quelque chose lorsque je suis passé en mode Out Of Browser, mais je sais pas quoi. Si vous avez une idée je suis preneur. Merci d'avance pour votre réponse.
Mumu27!