Example #1
0
 public void OpenMaterialsTabAndScrollTo(MaterialThumbnailControl thumb)
 {
     Debug.Assert(tabPageMaterials.Contains(thumb));
     tabPageMaterials.ScrollControlIntoView(thumb);
     tabControlInfoViewPicker.SelectedTab = tabPageMaterials;
     tabPageMaterials.Focus();
 }
Example #2
0
        public MeshDetailsDialog(MainWindow host, Scene scene)
        {
            Debug.Assert(host != null);
            _host  = host;
            _scene = scene;

            InitializeComponent();
            // TODO(acgessler): Factor out preview generation and getting the checker pattern
            // background into a separate utility.
            pictureBoxMaterial.SizeMode              = PictureBoxSizeMode.Zoom;
            pictureBoxMaterial.BackgroundImage       = MaterialThumbnailControl.GetBackgroundImage();
            pictureBoxMaterial.BackgroundImageLayout = ImageLayout.Zoom;

            StartUpdateMaterialPreviewLoop();
        }