Example #1
0
        public BlockEditWindow(Screen screen)
            : base(screen)
        {
            var stackPanel = new StackPanel(screen)
            {
                Orientation = Orientation.Vertical,
                Padding = new Thickness(8)
            };
            Content = stackPanel;

            sectionControl = new SectionControl(screen)
            {
                DataContext = (DataContext as Workspace).Section
            };
            stackPanel.Children.Add(sectionControl);

            var selectedMaterialControl = new SelectedMaterialControl(screen)
            {
                Width = 64,
                Height = 64
            };
            stackPanel.Children.Add(selectedMaterialControl);

            sectionControl.Focus();
        }
Example #2
0
        public BlockEditWindow(Screen screen)
            : base(screen)
        {
            var stackPanel = new StackPanel(screen)
            {
                Orientation = Orientation.Vertical,
                Padding     = new Thickness(8)
            };

            Content = stackPanel;

            sectionControl = new SectionControl(screen)
            {
                DataContext = (DataContext as Workspace).Section
            };
            stackPanel.Children.Add(sectionControl);

            var selectedMaterialControl = new SelectedMaterialControl(screen)
            {
                Width  = 64,
                Height = 64
            };

            stackPanel.Children.Add(selectedMaterialControl);

            sectionControl.Focus();
        }