dotnet / dotnet/wpf

Elements that are supposed to be clipped are still selectable

Open
#9,458 0 comments 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Elements-that-are-supposed-to-be-clipped/10702930)._

---
[severity:I'm unable to use this version]
We use the Clip property in our pagination code so that portions of the UI element can be placed in different pages. From the view-wise, the results look correct. But when we select text from the page, the clipped portions re-appear.
Similarly, when the page is printed using "Microsoft Print to PDF" to save to a PDF file, the same behavior can be seen on the resulting PDF file when it is opened using readers like Acrobat or Edge browser. We select part of the PDF and pasted the copied portion to a Notepad. The pasted text included the clipped items.
![1 PrintPreview-LooksCorrect](https://github.com/user-attachments/assets/2c329c78-6840-468d-8016-b8264fe2c5fb)
![2 PrintPreview-ClippedItemsAreSeen](https://github.com/user-attachments/assets/7c90f0d8-eb68-472c-969a-49f894e03a12)
![3 OpenPDFAndSelect](https://github.com/user-attachments/assets/0f1fc255-2e78-44ba-b698-43398879f196)
![4 TextThatIsPastedIncludesClippedItems](https://github.com/user-attachments/assets/8e8d0c3a-21a4-4d52-a3dd-7aaea6376b4c)

---
### Original Comments

#### Feedback Bot on 7/15/2024, 01:37 PM:

(private comment, text removed)
#### Pankaj Chaurasia [MSFT] on 7/15/2024, 02:28 PM:

(private comment, text removed)
#### Pankaj Chaurasia [MSFT] on 7/15/2024, 02:42 PM:

(private comment, text removed)
#### Ang, LayTeik Ang on 7/15/2024, 03:03 PM:

(private comment, text removed)
#### Lay A on 7/18/2024, 01:50 PM:

(private comment, text removed)
#### Lay A on 7/18/2024, 01:53 PM:

(private comment, text removed)
#### Lay A on 7/24/2024, 09:14 PM:

(private comment, text removed)
#### Ang, LayTeik Ang on 7/15/2024, 02:56 PM:

(private comment, text removed)
#### Ang, LayTeik Ang on 7/15/2024, 03:09 PM:

(private comment, text removed)
#### Ang, LayTeik Ang on 7/15/2024, 03:20 PM:

(private comment, text removed)
#### Pankaj Chaurasia [MSFT] on 7/24/2024, 03:59 PM:

(private comment, text removed)
#### Lay A on 7/24/2024, 09:21 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

### Repro
---
[PrintingSample.zip](https://github.com/user-attachments/files/16373495/PrintingSample.zip)
[ProblemDecsription.zip](https://github.com/user-attachments/files/16373496/ProblemDecsription.zip)

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.