Xaml 如何在windows phone中设置图像加载器?
您好,我正在开发windows phone应用程序。我需要设置图像加载器。我尝试了低调图像加载器,但无法获得任何更改。任何人请告诉我如何设置图像加载器 我需要解决另一个问题。我有产品名称,它是文字包装,但文字去隐藏右侧,没有包装的文字 我使用下面给出的代码Xaml 如何在windows phone中设置图像加载器?,xaml,c#-4.0,windows-phone-8,image-loading,Xaml,C# 4.0,Windows Phone 8,Image Loading,您好,我正在开发windows phone应用程序。我需要设置图像加载器。我尝试了低调图像加载器,但无法获得任何更改。任何人请告诉我如何设置图像加载器 我需要解决另一个问题。我有产品名称,它是文字包装,但文字去隐藏右侧,没有包装的文字 我使用下面给出的代码 <Image delay:LowProfileImageLoader.UriSource="{Binding ProductImage}" Width="189" Height="170" Name="value" Stretch="
<Image delay:LowProfileImageLoader.UriSource="{Binding ProductImage}" Width="189" Height="170" Name="value" Stretch="Fill" VerticalAlignment="Top"/>
这是文本包装代码
<StackPanel VerticalAlignment="Top" Grid.Row="3">
<ListBox x:Name="ProductLists" ItemsSource="{Binding Product}" Margin="5,5,5,0" ScrollViewer.VerticalScrollBarVisibility="Disabled" SelectionChanged="ProductList_SelectionChanged" SelectionMode="Single">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel HorizontalAlignment="Center">
<Border Background="White" Margin="10,5,8,0">
<StackPanel Orientation="Horizontal" Width="900" Background="White" VerticalAlignment="Bottom" Margin="5,20,0,20">
<Image delay:LowProfileImageLoader.UriSource="{Binding ProductImage}" Width="189" Height="170" Name="value" Stretch="Fill" VerticalAlignment="Top"/>
<StackPanel>
<TextBlock x:Name="Product" FontWeight="Bold" Padding="20,0,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" Foreground="#000000" Text="{Binding ProductName}" ></TextBlock>
<TextBlock Padding="20,10,0,0" HorizontalAlignment="Left" FontFamily="Arial" Foreground="#a2a2a2" Text="Price Range" ></TextBlock>
<Grid>
<TextBlock Text="£" Padding="20,10,0,0" FontFamily="Arial" FontWeight="Bold" Foreground="#232323" Height="31" />
<TextBlock x:Name="PPrice" Padding="40,10,0,0" FontWeight="Bold" FontFamily="Arial" Foreground="#000000" Text="{Binding Price}" ></TextBlock>
</Grid>
</StackPanel>
</StackPanel>
</Border>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Grid Height="220"></Grid>
</StackPanel>
我得到了下图给出的结果
我想要的结果如下图所示
有人告诉我怎么做吗?是的,我已经试过你说的了,我得到了相同的结果我使用了这个普通代码: