<Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tool3d="clr-namespace:_3DTools;assembly=3DTools"
        Title="Cube" Height="650" Width="600" MouseDown="Window_MouseDown" MouseMove="Window_MouseMove" MouseUp="Window_MouseUp" KeyDown="Window_KeyDown">
    <Grid Margin="5">
        <Border BorderBrush="Gray" BorderThickness="1">
            <Viewport3D Name="myViewport">
                <!-- Set light source: -->
                <ModelUIElement3D>
                    <DirectionalLight Color="White" Direction="-1,-1,-1" />
                </ModelUIElement3D>
            </Viewport3D>
        </Border>
    </Grid>
</Window>
