Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Controls.UserControl
Beispiel #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);
        }
Beispiel #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;
        }