dotnet / dotnet/wpf

The problem of region clipping occurs when VisualBrush and Rotatetransform are used together

Open
#7,043 7 comments 1 reaction 0 assignees View on GitHub
Question
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version:.NET 6
* Windows version: Windows 11
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

**Problem description:**
I want to implement a tiled and rotated watermark effect in wpf
But when I use VisualBrush and RotateTransform, the excess area is clipped

**Actual behavior:**
【VisualBrush without RotateTransform】

![image](https://user-images.githubusercontent.com/23449064/190079407-a26da224-9d89-4d6a-9353-d685fef29e98.png)

【VisualBrush with RotateTransform】
![image](https://user-images.githubusercontent.com/23449064/190079588-14c2d240-64f9-436e-9a33-3ed52ebf2a37.png)

**Expected behavior:**
I found a html demo like this:
![image](https://user-images.githubusercontent.com/23449064/190079680-d0db0fa4-290f-4fe4-8548-c4387633983c.png)

or this:
![image](https://user-images.githubusercontent.com/23449064/190080239-e46eab55-e6ed-4470-8896-8d6d3d9e6a16.png)

**Minimal repro:**
xaml code
```xml













```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.