0

こんにちは、Windows Phone アプリを開発しています。イメージ ローダーを設定する必要があります。ロー プロファイルのイメージ ローダーを試しましたが、変更を取得できません。イメージ ローダーの設定方法を教えてください。

私は別のものを解決する必要があります。製品名がテキストで折り返されていましたが、テキストが右側に隠れてしまい、テキストが折り返されていませんでした

以下のコードを使用しています。

<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="&#163;" 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>

以下の画像の結果が得られました

ここに画像の説明を入力

下の画像のようになりたい

ここに画像の説明を入力

これを行う方法を教えてください。

4

0 に答える 0