Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
        public override Control CreateControlPane()
        {
            //create an ElementHost
            ElementHost eh = new ElementHost();

            //assign the control
            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);
        }
Ejemplo n.º 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;
    }