Ab3d.DXEngine.Wpf.Samples.PowerToysOther.ContentVisual3DSample.ContentVisual3DSample C# (CSharp) Method

ContentVisual3DSample() public method

public ContentVisual3DSample ( ) : System
return System
        public ContentVisual3DSample()
        {
            InitializeComponent();

            LoadFile(AppDomain.CurrentDomain.BaseDirectory + @"Resources\Models\ship_boat.obj");

            // IMPORTANT:
            // It is very important to call Dispose method on DXSceneView after the control is not used any more (see help file for more info)
            this.Unloaded += (sender, args) => MainDXViewportView.Dispose();
        }