public UserControlEx() : base() { ApplicationEx.CreatingContainer = this; if (ApplicationEx.Instance.HasOpenSession) { _harness = new ActivityHarness(this); _harness.PropertyChanged += new PropertyChangedEventHandler(ActivityHarness_PropertyChanged); if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { this.Loaded += new RoutedEventHandler(UserControlEx_Loaded); this.Unloaded += new RoutedEventHandler(UserControlEx_Unloaded); string className = this.GetType().FullName; if (ApplicationEx.Instance.XamlFileDetailsCollection.ContainsKey(className)) { XAMLFileDetails fileDetails = ApplicationEx.Instance.XamlFileDetailsCollection[className]; _harness.RegisterUnloadedControls(fileDetails.ExpanzControlDetails); } } } }
public ChildWindowEx() : base() { ApplicationEx.CreatingContainer = this; if (ApplicationEx.Instance.HasOpenSession) { _harness = new ActivityHarness(this); _harness.PropertyChanged += new PropertyChangedEventHandler(ActivityHarness_PropertyChanged); if (!System.ComponentModel.DesignerProperties.IsInDesignTool) { this.Loaded += new RoutedEventHandler(ChildWindowEx_Loaded); this.GotFocus += new RoutedEventHandler(ChildWindowEx_GotFocus); this.Closing += new EventHandler<CancelEventArgs>(ChildWindowEx_Closing); string className = this.GetType().FullName; if (ApplicationEx.Instance.XamlFileDetailsCollection.ContainsKey(className)) { XAMLFileDetails fileDetails = ApplicationEx.Instance.XamlFileDetailsCollection[className]; _harness.RegisterUnloadedControls(fileDetails.ExpanzControlDetails); } } } }
//private System.Windows.Threading.DispatcherTimer myDispatcherTimer; #endregion #region Constructor public PageEx() : base() { ApplicationEx.CreatingContainer = this; if (!System.ComponentModel.DesignerProperties.IsInDesignTool) { this.Loaded += new RoutedEventHandler(PageEx_Loaded); if (ApplicationEx.Instance.HasOpenSession) { _harness = new ActivityHarness(this); _harness.PropertyChanged += new PropertyChangedEventHandler(ActivityHarness_PropertyChanged); string className = this.GetType().FullName; if (ApplicationEx.Instance.XamlFileDetailsCollection.ContainsKey(className)) { XAMLFileDetails fileDetails = ApplicationEx.Instance.XamlFileDetailsCollection[className]; _harness.RegisterUnloadedControls(fileDetails.ExpanzControlDetails); } //harness.Initialise(_xml); } } }
public void InitialiseCopy(ActivityHarness H) { _harness.CopyFrom(H); ApplicationEx.CreatingContainer = null; if (NavigationPanel != null) { _harness.NavigationPanel = NavigationPanel; } }
public PickListWindow(ActivityHarness activityHarness, XElement data) { InitializeComponent(); _activityHarness = activityHarness; PickList.ContextChanging += PickList_ContextChanging; if (data.Attribute("contextObject") != null) { PickList.ModelObject = data.GetAttribute("contextObject"); } else { PickList.ModelObject = string.Empty; } PickList.PublishData(data); }
public void InitialiseCopy(ActivityHarness H) { _harness.CopyFrom(H); ApplicationEx.CreatingContainer = null; if (NavigationPanel != null) _harness.NavigationPanel = NavigationPanel; }