Click or drag to resize
Reader3dsSource Property
Gets or sets the Source of the 3ds file.

Namespace: Ab3d
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public Uri Source { get; set; }

Property Value

Type: Uri
Remarks

This property is used when Reader3ds is used as Resource.

To read a file from code use ReadFile(String, Viewport3D) or other ReadFile methods.

It is also possible to use 3D models from 3ds files with Model3ds class.

Examples

The following sample shows how to use Reader3ds as resource:

XAML
<Page.Resources>
    <ab3d:Reader3ds x:Key="MyReader3ds" Source="/Resources/robotarm.3ds"/>
<Page.Resources>

After defining the Reader3ds as resource it can be used with binding to its properties:

XAML
<Viewport3D Camera="{Binding Source={StaticResource MyReader3ds}, Path=Cameras[0]}">
   <ModelVisual3D Content="{Binding Source={StaticResource MyReader3ds}, Path=RootModel3DGroup}"/>
</Viewport3D>
See Also