Set mask via SetMask control extension method

Set mask via SetMask control extension method #499