C# と Windows Phone の学習を始めたばかりです。私の質問は、画像 (バインディング画像) を表示して水平方向にスクロールすることができないようです。xaml でハードコーディングすると、それらを機能させることができます。 .
<!-- row 4 start -->
<Grid x:Name="row3" Grid.Row="3">
<ScrollViewer HorizontalScrollBarVisibility="Auto">
<StackPanel x:Name="imgStackPanel" Orientation="Horizontal" ScrollViewer.HorizontalScrollBarVisibility="Auto">
<!--<Image Source="{Binding Path=DvdPhoto}" Width="150" Height="150" Margin="5"/>-->
<Image Source="/GmanDVDStore;component/Images/rain.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/snow.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/sun.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/wind.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/rain.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/snow.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/sun.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/wind.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/rain.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/snow.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/sun.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/wind.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/rain.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/snow.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/sun.jpg" Width="150" Height="150" Margin="5"/>
<Image Source="/GmanDVDStore;component/Images/wind.jpg" Width="150" Height="150" Margin="5"/>
</StackPanel>
</ScrollViewer>
</Grid>
これは機能し、画像が表示され、左から右にスクロールできます。画像をバインドしているコメントアウトされたコードは機能しません。
垂直にすると、リストボックスにあるため正常に機能し、リストボックスを水平にしようとしました。
誰でもこの問題の解決策を持っていますか。
前もって感謝します
グマン
追伸: Windows Phone の学習を始めたばかりだと言ったので、ご安心ください。:)