private static PrepareContentPresenterForCompositor ( |
||
presenter | The content presenter instance. | |
applyBitmapCache | bool | A value indicating whether to apply /// a bitmap cache. |
return | void |
private static void PrepareContentPresenterForCompositor(ContentPresenter presenter, bool applyBitmapCache = true)
{
if (presenter != null)
{
if (applyBitmapCache)
{
presenter.CacheMode = BitmapCacheMode;
}
presenter.IsHitTestVisible = false;
}
}