Bonjour,
Je n'arrive pas à afficher une image meme en supprimant tout mon doe et en ne mettant qu'une balise image je n'arrive pas à l'afficher ...
mon code xaml:
Meme en mettantl'url comme vous pouvez le voir ca ne fonctionne pas ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 <UserControl x:Class="SilverlightApplication8.MainPage" 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:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" > <Grid x:Name="Layout" Background="Gray" > <Grid.RowDefinitions> <RowDefinition Height="30" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid Background="#7C7C84"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="200"/> <ColumnDefinition Width="70"/> </Grid.ColumnDefinitions> <Border Style="{ StaticResource TitleBorder }"> <TextBlock Margin="25,5,0,0" Text="GAUTHIER SEARCH by DIGG" FontSize="14" Foreground="CadetBlue" FontStyle="Italic" /> </Border> <TextBox x:Name="research" Style="{StaticResource TitleTextBox}" /> <Button x:Name="search" Click="search_Click" Content="Rechercher" Style="{StaticResource TitleButton}"/> <Image Stretch="Uniform" Source=" http://digg.com/apple/25_Most_Stunning_Apple_Wallpapers/t.jpg"/> </Grid> <Border Grid.Row="1" Width="500"> <ListBox x:Name="StoriesList" Height="300"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="horizontal"> <StackPanel Orientation="horizontal"> <Image Source="http://digg.com/apple/25_Most_Stunning_Apple_Wallpapers/t.jpg" /> <TextBlock Text="{Binding NumDiggs}" Foreground="red" Margin="5"/> <TextBlock Text="{Binding Title}" Margin="5"/> <TextBlock Text="{Binding ThumbNail}" Margin="5"/> <Image Stretch="Uniform" Source="{Binding ThumbNail}" /> <Image Stretch="Uniform" Source=" http://digg.com/apple/25_Most_Stunning_Apple_Wallpapers/t.jpg"/> </StackPanel> <Image Stretch="Uniform" Source="{Binding ThumbNail}" /> <Image Stretch="Uniform" Source=" http://digg.com/apple/25_Most_Stunning_Apple_Wallpapers/t.jpg"/> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Border> </Grid> </UserControl>
Partager