Ejemplo n.º 1
0
        private Window CreateWebWindow()
        {
            Point  p = PART_Web.TransformToAncestor(this).Transform(new Point(0, 0));
            double x = p.X;
            double y = p.Y;

            return(CreateWindowInSeparateThread <WebWindowAction>(() =>
            {
                return new WebWindow(roomWindowVM);
            },
                                                                  x, y, false, true, PART_Web));
        }
Ejemplo n.º 2
0
 private void EssentialWindow_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         Point  p = PART_Web.TransformToAncestor(this).Transform(new Point(0, 0));
         double x = p.X;
         double y = p.Y;
         webWindow = CreateWindowInSeparateThread <WebWindowAction>(() => { return(new WebWindow(hallVM)); }, x, y, false, true, PART_Web) as WebWindow;
         hallVM.ApplicationVM.StartUp();
     }
     catch (Exception ex)
     {
         Helper.Logger.Error("EssentialWindow_Loaded", ex);
     }
 }