0
Microsoft Surfaceのプログラムを開始しましたが、問題があります。ScatterviewのScatterviewItemの名前をバインドで取得
私は「ContactLeave =」MainScatterView_ContactLeave」、 に移動した項目の名前を取得したいと思いますが、私はそれを行うことができますどのように私にはわからないscatterviewに
<s:ScatterView Name="MainScatterView" ContactLeave="MainScatterView_ContactLeave" ContactEnter="MainScatterView_ContactEnter">
<s:ScatterView.ItemTemplate>
<DataTemplate>
<Image Name="picture" Source="{Binding}"/>
</DataTemplate>
</s:ScatterView.ItemTemplate>
</s:ScatterView>
protected override void OnInitialized(EventArgs e)
{
base.OnInitialized(e);
try
{
MainScatterView.ItemsSource =
System.IO.Directory.GetFiles(@"C:\Surface_App_Dam\img\", "*.png");
}
catch (System.IO.DirectoryNotFoundException)
{
// Handle exception as needed.
}
}
を使用しています。
あなたは私を助けてくださいもらえますか?
ありがとう。