0
목록에 항목을 표시하기위한 XAML 코드의 목록보기가 있습니다. 두 번 클릭하면 "선택"하고 싶습니다.바운드 함수 매개 변수 UWP
<ListView x:Name="sounds">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" DoubleTapped="select_cue({Binding})">
<TextBlock .../>
<Slider .../>
...
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
StackPanel이 "DoubleTapped"일 때 내 C# 코드의 함수를 호출해야합니다.
public void select_cue(SoundCue cue) {
//find cue in list of cues
//make current cue point to passed in cue if it is in the list
}
그러나이 컴파일을 시도하면 "오류 : CS1026"이 표시됩니다. AngularJS와 같은 응용 프로그램 API의 비슷한 스타일이이 기능을 가지고 있기 때문에 나는 확실히 존재하는이 기능을 검색하려고 노력했습니다.