コード例 #1
0
ファイル: pWindow.cs プロジェクト: pm-Architect/Aviary
        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();
        }
コード例 #2
0
ファイル: pWindow.cs プロジェクト: pm-Architect/Aviary
        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;
        }