using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Threading;
namespace FWindSoft.Wpf
{
///
/// 自定义空间基础类
///
public class BaseUserControl:UserControl
{
public BaseUserControl()
{
//CollectionView view = new CollectionView(new List());
//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);
//}
}
}