Third |
To make the camera follow the CenterObject automatically, set the IsDynamicTarget property to true.
Note |
---|
ThirdPersonCamera with set CenterObject cannot be previewed in Visual Studio Designer. The reason for this is that in Designer the NameScope is not defined and therefore the binding to the 3D object does not work. |
The following sample shows how to define the ThirdPersonCamera and set its CenterObject to PersonModel:
<cameras:ThirdPersonCamera Heading="-30" Attitude="-20" Bank="0" Distance="300" CenterObject="{Binding ElementName=PersonModel}"/>