using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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; namespace Gumming { /// /// CPSetView.xaml 的交互逻辑 /// public partial class CPSetView : UserControl { public CPSetView() { InitializeComponent(); this.Loaded += CPSetView_Loaded; this.Unloaded += CPSetView_Unloaded; } private void CPSetView_Unloaded(object sender, RoutedEventArgs e) { } private void CPSetView_Loaded(object sender, RoutedEventArgs e) { } CPSetViewModule _vm = null; private CPSetViewModule GetCurrentMv() { if (null == _vm) { _vm = this.DataContext as CPSetViewModule; } return _vm; } } }