0
如何創建一個事件爲它檢測到用戶在列表框中拍了拍項目點擊手勢選擇,用於列表框
<!--Pivot Control-->
<controls:Pivot Title="MY APPLICATION">
<!--Pivot item one-->
<controls:PivotItem Header="item1">
<ListBox x:Name="lbFiles" HorizontalContentAlignment="Stretch" ItemTemplate="{StaticResource DataTemplate1}">
</ListBox>
</controls:PivotItem>
<!--Pivot item two-->
<controls:PivotItem Header="item2">
</controls:PivotItem>
</controls:Pivot>
代碼背後
private void lbFile_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
selected = lbFiles.SelectedItem.ToString();
general item = new general();
item.viewimage(selected);
NavigationService.Navigate(new Uri("/View.xaml", UriKind.Relative));
}
頭痛 THANKs! :D
任何人都可以幫忙嗎? :D – CodeGuru 2012-01-29 16:43:19
任何人都可以幫忙嗎? :d – CodeGuru 2012-01-30 08:49:44