0

WPF: After deploy strange camera position and Zoom don't work

Anonymous 10 years ago 0
This discussion was imported from CodePlex

xpix wrote at 2014-03-11 16:08:

Hello,

i have some problem with a deployed application. Here my XAML for helix3d toolkit:
            <helix:HelixViewport3D x:Name="viewport" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,0,0">
                <helix:HelixViewport3D.DefaultCamera>
                    <PerspectiveCamera x:Name="camera" 
                        Position="0,0,100" 
                        LookDirection="0,0,-100" 
                        UpDirection="0,1,0.5">
                    </PerspectiveCamera>
                </helix:HelixViewport3D.DefaultCamera>
                <helix:SunLight/>
                <helix:ArrowVisual3D Point1="0,0,0" Point2="10 0 0" Fill="Red" Diameter="0.5" />
                <helix:ArrowVisual3D Point1="0,0,0" Point2="0 10 0" Fill="Green" Diameter="0.5"/>
                <helix:ArrowVisual3D Point1="0,0,0" Point2="0 0 10" Fill="Blue" Diameter="0.5"/>
                <helix:PipeVisual3D x:Name="Tool3D" Diameter="1" Point1="0,0,0" Point2="0,0,5" Visible="False" >
                    <helix:PipeVisual3D.Fill>
                        <SolidColorBrush Color="#FFFF8B00" Opacity="0.5"/>
                    </helix:PipeVisual3D.Fill>
                </helix:PipeVisual3D>
                <helix:GridLinesVisual3D Thickness="0.1" Center="0,0,0" Fill="#FFDADADA" Width="1000" Length="1000" />
            </helix:HelixViewport3D>
The Application works perfect in VS 2013, the camera position is on top and scroll whel work. But if i deploy/publish this application and open it from published directory then the camerposition are strange (close to null and a perspective view) and the zoom function with the mouse scroll wheel don't work.

It's a bug or Feature? May i can make a video to demonstrate this effect?