我想有2個的SelectionChanged事件, 這樣C#多的SelectionChanged事件
protected override void xpathList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
//my code
}
private void xpathList_SelectionChanged(object sender, SelectionChangedEventsArgs e)
{
//my code
}
它提供了以下錯誤:Type 'TestApp.MainPage' already defines a member called 'xpathList_SelectionChanged' with the same parameter type
。
我該如何解決這個問題?
爲什麼你需要2個? – ysrb