WPF

Set a Clip in Code-Behind

Set a Clip in Code-Behind

You can use the Clip property on any item to clip its display area. For example if you have this two items rectBlue and rectRed like this And you want to animate rectRed by sliding it out from the right side, without clipping it would look like this But if you set the Clip property(…)