独自の UserControl を作成し、それに Button を追加しました。また、この UserControl を追加したピボットがあります。UserControl の Button_Click イベントで Pivot selecteditem を変更するにはどうすればよいですか。
バインディング:
Binding binding = new Binding("SelectedIndex");
binding.Source = historyControls[i].SelectedIndex;
Pivot_Second.SetBinding(Pivot.SelectedIndexProperty, binding);