Exemplo n.º 1
0
        void RegisterRegion()
        {
            DependencyObject targetElement = HostControl;

            if (targetElement.CheckAccess())
            {
                TabbedGroup tg = targetElement as TabbedGroup;

                if (tg != null && RegionManager != null)
                {
                    RegionManager.Regions.Add(Region);
                }
            }
        }
 private bool FindEditorInfo(Point location, out TabbedGroup key, out InplaceEditorInfo resultInfo)
 {
     key        = null;
     resultInfo = null;
     foreach (KeyValuePair <TabbedGroup, InplaceEditorInfo[]> pair in TabGroupItems)
     {
         foreach (InplaceEditorInfo info in pair.Value)
         {
             if (info.Bounds.Contains(location))
             {
                 key        = pair.Key;
                 resultInfo = info;
                 return(true);
             }
         }
     }
     return(false);
 }
 private void OnEditorClick(TabbedGroup group, InplaceEditorInfo info)
 {
     info.RaiseMouseDown();
     Refresh();
 }