コード例 #1
0
 private void InvalidateBrush()
 {
     // Delay brush updates until Tick to coalesce changes and avoid rebuilding the effect when we don't need to.
     if (!_needsBrushUpdate)
     {
         _needsBrushUpdate = true;
         SharedHelpers.QueueCallbackForCompositionRendering(() =>
         {
             {
                 UpdateBrush();
             }
             _needsBrushUpdate = false;
         });
     }
 }