상속: System.Windows.Controls.Control
예제 #1
0
        static BaseDebugTreeControl()
        {
            var parserContext = DebugContainerControl.GetParserContext();

            s_defaultStyle = (Style)XamlReader.Parse(
                DefaultStyle,
                parserContext
                );

            StyleProperty.OverrideMetadata(typeof(BaseDebugTreeControl), new FrameworkPropertyMetadata(s_defaultStyle));
        }
예제 #2
0
        static void ShowWindowImpl(DependencyObject dependencyObject, string title)
        {
            var debugContainerControl = new DebugContainerControl();

            debugContainerControl.AttachTo(dependencyObject);

            var window =
                new Window
            {
                Title     = title ?? "Debug",
                MinHeight = 200,
                MinWidth  = 320,
                Content   = debugContainerControl
            };

            window.Show();
        }
예제 #3
0
        static void ShowWindowImpl(DependencyObject dependencyObject, string title)
        {
            var debugContainerControl = new DebugContainerControl ();
            debugContainerControl.AttachTo (dependencyObject);

            var window =
                new Window
                    {
                        Title       = title ?? "Debug"      ,
                        MinHeight   = 200                   ,
                        MinWidth    = 320                   ,
                        Content     = debugContainerControl
                    };

            window.Show();
        }