private void OnItem_Click(object sender, RoutedEventArgs e) { IsLocationEnabled = true; Mode = AutoPanMode.Off; }