예제 #1
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 protected virtual void OnSmartPartActivated(WorkspaceEventArgs e)
 {
     if (SmartPartActivated != null)
     {
         SmartPartActivated(this, e);
     }
 }
예제 #2
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 /// <param name="smartPart">The smart part that was activated.</param>
 protected void RaiseSmartPartActivated(object smartPart)
 {
     if (SmartPartActivated != null)
     {
         var args = new WorkspaceEventArgs(smartPart);
         SmartPartActivated(this, args);
     }
 }
예제 #3
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 /// <param name="smartPart">The smart part that was activated.</param>
 protected void RaiseSmartPartActivated(object smartPart)
 {
     if (SmartPartActivated != null)
     {
         if (smartPart is ElementHost)
         {
             smartPart = elementHosts.Unwrap((ElementHost)smartPart);
         }
         var args = new WorkspaceEventArgs(smartPart);
         SmartPartActivated(this, args);
     }
 }
예제 #4
0
 void IComposableWorkspace <Control, DockPanelSmartPartInfo> .RaiseSmartPartActivated(WorkspaceEventArgs e)
 {
     OnSmartPartActivated(e);
 }