Ab3d.PowerToys with Viewport3D control from Ab3d.Reader3ds




                        
<UserControl x:Class="Ab3d.PowerToys.Samples.Reader3dsSamples.Viewport3dsSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ab3d="clr-namespace:Ab3d.Controls;assembly=Ab3d.Reader3ds"
    xmlns:cameras="clr-namespace:Ab3d.Cameras;assembly=Ab3d.PowerToys"
    xmlns:cameraContoller="clr-namespace:Ab3d.Controls;assembly=Ab3d.PowerToys">
    <Grid Name="MainGrid">
        <Grid Name="MainEventsGrid" Background="Transparent">
            <ab3d:Viewport3ds Name="MainViewport3ds" Source="/Resources/robotarm.3ds" 
                              AfterReading3dsFile="MainViewport3ds_AfterReading3dsFile"/>
        </Grid>
        
        <cameras:SceneCamera Name="ScenaCamera1" Heading="30" Attitude="-20" IsDistancePercent="True" Distance="1.2"/>

        <cameraContoller:CameraControlPanel Width="180" Height="60" ShowMoveButtons="True" VerticalAlignment="Top" HorizontalAlignment="Left"/>
        <cameraContoller:MouseCameraController EventsSourceElementName="MainEventsGrid"
                                               RotateCameraConditions="LeftMouseButtonPressed" MoveCameraConditions="RightMouseButtonPressed"/>
    </Grid>
</UserControl>