WPF - Is there something similar to PathCompactPath?

I would like to compose the file paths in the same way that PathCompactPath does in Windows Forms, so when you stretch the parent control, more of the file path becomes visible and vice versa.

Since PathCompactPath uses character sizes, are there any similar ones in WPF that use pixel / dpi sizes? Or some kind of converter?

+3
source share
1 answer

First of all, IMHO PathCompactPath does not exist in Windows Forms. You will need to use PInvoke.

, WPF. , , TextBlock.TextTrimming. , . , , . FormattedText (.Width .Height), . .

+2

Source: https://habr.com/ru/post/1773845/


All Articles