Ejemplo n.º 1
0
        public pWindow()
        {
            Element     = new ParrotWindow();
            Container   = new StackPanel();
            ScrollFrame = new ScrollViewer();

            Container.Orientation = Orientation.Vertical;
            Container.Margin      = new Thickness(5);

            Element.Closing -= (o, e) => { Container.Children.Clear(); };
            Element.Closing += (o, e) => { Container.Children.Clear(); };

            Element.SizeToContent = SizeToContent.WidthAndHeight;
            ScrollFrame.Content   = Container;
            Element.Content       = ScrollFrame;

            Type = Element.GetType().Name.ToString();
        }
Ejemplo n.º 2
0
        public pWindow(string InstanceName)
        {
            Element     = new ParrotWindow();
            Container   = new StackPanel();
            ScrollFrame = new ScrollViewer();

            Container.Orientation = Orientation.Vertical;
            Container.Margin      = new Thickness(5);
            Container.Background  = Brushes.Transparent;

            Element.Name = InstanceName;

            Element.Closing -= (o, e) => { Container.Children.Clear(); };
            Element.Closing += (o, e) => { Container.Children.Clear(); };

            Element.SizeToContent = SizeToContent.WidthAndHeight;
            ScrollFrame.Content   = Container;
            Element.Content       = ScrollFrame;
        }