Viewport2DVisual3D.CacheMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a cached representation of the Viewport2DVisual3D.
public:
property System::Windows::Media::CacheMode ^ CacheMode { System::Windows::Media::CacheMode ^ get(); void set(System::Windows::Media::CacheMode ^ value); };
public System.Windows.Media.CacheMode CacheMode { get; set; }
member this.CacheMode : System.Windows.Media.CacheMode with get, set
Public Property CacheMode As CacheMode
Property Value
A CacheMode that holds a cached representation of the Viewport2DVisual3D.
Remarks
Set the CacheMode property when you need to increase performance for content that is time-consuming to render. For more information, see BitmapCache.
The Viewport2DVisual3D class projects 3-D content into 2-D to size the 2-D content in the 3-D element correctly.
Because caching always relies on the element's size, instead of the transform applied to it, when you set the CacheMode property, initially your content may appear pixilated. This is because it is being upsampled to a much larger size than it was cached at. You can correct this situation by increasing the local size of your 2-D visual by setting the Height or Width properties. Also, you can increase the RenderAtScale on the CacheMode until the content reaches an acceptable level of clarity.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기