GeometryModel3D.Material Property

Definition

GeometryModel3D의 프런트를 렌더링하는 데 사용되는 Material을 가져오거나 설정합니다.Gets or sets the Material used to render the front of this GeometryModel3D.

public:
 property System::Windows::Media::Media3D::Material ^ Material { System::Windows::Media::Media3D::Material ^ get(); void set(System::Windows::Media::Media3D::Material ^ value); };
public System.Windows.Media.Media3D.Material Material { get; set; }
member this.Material : System.Windows.Media.Media3D.Material with get, set
Public Property Material As Material

Property Value

Material

GeometryModel3D에 적용된 Material입니다.Material applied to the GeometryModel3D.

Examples

다음 코드 발췌 구문 정의 SolidColorBrush 으로 DiffuseMaterial GeometryModel3D에.The following code excerpt defines a SolidColorBrush as a DiffuseMaterial on a GeometryModel3D.

<ModelVisual3D>
  <ModelVisual3D.Content>
    <GeometryModel3D Geometry="{StaticResource myTeapot}">
      <GeometryModel3D.Material>
        <DiffuseMaterial>
          <DiffuseMaterial.Brush>
            <SolidColorBrush Color="Blue" Opacity="1.0" />
          </DiffuseMaterial.Brush>
        </DiffuseMaterial>
      </GeometryModel3D.Material>
      <GeometryModel3D.Transform>
        <RotateTransform3D>
          <RotateTransform3D.Rotation>
            <AxisAngleRotation3D x:Name="myAngleRotation" Axis="0,3,0" Angle="1" />
          </RotateTransform3D.Rotation>
        </RotateTransform3D>
      </GeometryModel3D.Transform>
    </GeometryModel3D>
  </ModelVisual3D.Content>
</ModelVisual3D>

Remarks

종속성 속성 정보Dependency Property Information

식별자 필드Identifier field MaterialProperty
메타 데이터 속성 설정 trueMetadata properties set to true 없음None

Applies to