mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 20:29:07 +00:00
49 lines
2.6 KiB
XML
49 lines
2.6 KiB
XML
<UserControl x:Class="QuickLook.Plugin.HelixViewer.HelixPanel"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:helix="clr-namespace:HelixToolkit.Wpf;assembly=HelixToolkit.Wpf"
|
|
xmlns:local="clr-namespace:QuickLook.Plugin.HelixViewer"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<helix:HelixViewport3D x:Name="viewer"
|
|
CameraRotationMode="Turnball"
|
|
CoordinateSystemHorizontalPosition="Left"
|
|
CoordinateSystemLabelForeground="Black"
|
|
CoordinateSystemVerticalPosition="Bottom"
|
|
IsViewCubeEdgeClicksEnabled="False"
|
|
RotateAroundMouseDownPoint="False"
|
|
ShowCameraInfo="False"
|
|
ShowCameraTarget="True"
|
|
ShowCoordinateSystem="False"
|
|
ShowFrameRate="False"
|
|
ShowViewCube="False"
|
|
ZoomAroundMouseDownPoint="True"
|
|
ZoomExtentsWhenLoaded="true">
|
|
<ModelVisual3D x:Name="modelVisual" />
|
|
<helix:DefaultLights />
|
|
<helix:HelixViewport3D.Camera>
|
|
<PerspectiveCamera x:Name="camera"
|
|
FarPlaneDistance="30000"
|
|
FieldOfView="45"
|
|
LookDirection="0,0,-1"
|
|
NearPlaneDistance="0.1"
|
|
Position="0,91,414"
|
|
UpDirection="0,1,0" />
|
|
</helix:HelixViewport3D.Camera>
|
|
<helix:HelixViewport3D.Background>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="Transparent" />
|
|
<GradientStop Offset="1" Color="Transparent" />
|
|
</LinearGradientBrush>
|
|
</helix:HelixViewport3D.Background>
|
|
<helix:HelixViewport3D.RotateGesture>
|
|
<MouseGesture MouseAction="LeftClick" />
|
|
</helix:HelixViewport3D.RotateGesture>
|
|
</helix:HelixViewport3D>
|
|
</Grid>
|
|
</UserControl>
|