示例#1
0
    public override Control CreateControlPane()
    {
      //create an ElementHost
      ElementHost eh = new ElementHost();

      //assign the control
      //eh.Anchor = AnchorStyles.Top;
      eh.Dock = DockStyle.Top;
      eh.Anchor = AnchorStyles.Top;
      ns = new NavisWindow();
      eh.Child = ns;
      eh.HandleCreated += eh_HandleCreated;
      eh.CreateControl();

      //return the ElementHost
      return eh;
    }
示例#2
0
        public override Control CreateControlPane()
        {
            //create an ElementHost
            ElementHost eh = new ElementHost();

            //assign the control
            //eh.Anchor = AnchorStyles.Top;
            eh.Dock           = DockStyle.Top;
            eh.Anchor         = AnchorStyles.Top;
            ns                = new NavisWindow();
            eh.Child          = ns;
            eh.HandleCreated += eh_HandleCreated;
            eh.CreateControl();

            //return the ElementHost
            return(eh);
        }