资 源 简 介
实例截图: 核心代码:using System;using System.Collections.Generic;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using linhang.Controls;namespace NDdaily{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } Viewport3DControl view; private void button1_Click(object sender, RoutedEventArgs e) { viewport3DControl1.MoveToRight(); if(view!=null) view.MoveToRight(); } private void button2_Click(object sender, RoutedEventArgs e) { viewport3DControl1.MoveToLeft(); if (view != null) view.MoveToLeft(); } private void button3_Click(object sender, RoutedEventArgs e) { viewport3DControl1.MoveToCenter(); } private void button5_Click(object sender, RoutedEventArgs e) { SwitchWindow s = new SwitchWindow(); s.Show(); } private void button6_Click(object sender, RoutedEventArgs e) { ScrollWindow w = new ScrollWindow(); w.Show(); } }}