12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Threading;
- namespace FWindSoft.Wpf
- {
- /// <summary>
- /// 自定义空间基础类
- /// </summary>
- public class BaseUserControl:UserControl
- {
- public BaseUserControl()
- {
- //CollectionView view = new CollectionView(new List<string>());
- //view
- }
- //private Window m_CurrentOwerWindow = null;
- //public BaseUserControl()
- //{
- // this.Loaded += new RoutedEventHandler(BaseUserControl_Loaded);
- // this.Unloaded += new RoutedEventHandler(BaseUserControl_Unloaded);
- //}
-
- //void BaseUserControl_Unloaded(object sender, RoutedEventArgs e)
- //{
- // if (m_CurrentOwerWindow != null)
- // {
- // this.SaveControlData(m_CurrentOwerWindow);
- // m_CurrentOwerWindow = null;
- // }
-
- //}
-
- //void BaseUserControl_Loaded(object sender, RoutedEventArgs e)
- //{
- // Dispatcher.BeginInvoke(DispatcherPriority.DataBind, new Action(SetControlDalta));
- //}
- //private void SetControlDalta()
- //{
- // Window window = this.GetOwnerWindow();
- // m_CurrentOwerWindow = window;
- // if(window!=null)
- // this.SetControlData(window);
- //}
-
- }
- }
|