Bonjour à tous,
Je cherche à ré-initialiser mon UserControl à chaque Selection de ma surface listbox.
Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <ContentControl x:Name="ContentUserControl"> <ContentControl.Content> <my:Visio360View Grid.Column="0" HorizontalAlignment="Left" x:Name="userControl11" Visibility="Visible" VerticalAlignment="Top" Width="1670" Height="1080" /> </ContentControl.Content> </ContentControl> <s:SurfaceListBox Grid.Column="2" ItemsSource="{Binding Plan}" SelectedItem="{Binding SelectedPlan}" SelectionChanged="SurfaceListBox_SelectionChanged"> <s:SurfaceListBox.ItemTemplate> <DataTemplate> <MediaElement Volume="0" Grid.Column="1" Grid.Row="1" Height="200" Source="{Binding Chemin}" Width="200" /> </DataTemplate> </s:SurfaceListBox.ItemTemplate> </s:SurfaceListBox>







Répondre avec citation
Partager