Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control DiffViewer: doesn't show text but color only #79

Closed
cpallotti73 opened this issue Apr 23, 2021 · 9 comments
Closed

Control DiffViewer: doesn't show text but color only #79

cpallotti73 opened this issue Apr 23, 2021 · 9 comments

Comments

@cpallotti73
Copy link

cpallotti73 commented Apr 23, 2021

I'm probably wrong, but the control displays the different colors in the differences lines but without text (see you image attached).
Same problem if set 'ShowInline'.
What am I doing wrong?
DiffViewer

I use VS2019 + .net framework 4.6.1

Thanks in advance

@mmanela
Copy link
Owner

mmanela commented Apr 23, 2021

@kingcean Can you take a look?

@kingcean
Copy link
Contributor

Hi @cpallotti73 could you please try to set Foreground property by a color or any kind of Brush to have a test?

@mmanela
Copy link
Owner

mmanela commented Jun 6, 2021

Since I haven't heard back from @cpallotti73 , closing for now

@mmanela mmanela closed this as completed Jun 6, 2021
@Scandal-UK
Copy link

I get this behaviour as well - no matter what I do. To begin with, I thought it was due to my high-DPI monitor but it can be consistently reproduced on all the dev machines that I have. Presumably the "ElementHost" is playing up??

@kingcean
Copy link
Contributor

kingcean commented Sep 1, 2021

Hi @Scandal-UK could you please try to set Foreground property by a color to have a test? And does this happen in WinForms or WPF application?

@Scandal-UK
Copy link

Scandal-UK commented Sep 1, 2021

I have tried that - and even setting the font. This is WinForms (which I think just uses an ElementHost? I haven't looked closely), targeting .NET 5 or .NET Core 3.1.

@kingcean
Copy link
Contributor

kingcean commented Sep 2, 2021

Could you please confirm if you are running the project DiffPlex.WindowsForms.Demo? It is demo of WinForms application.

DiffPlex.WindowsForms.Demo project

@Scandal-UK
Copy link

Of course not, I followed the instructions on the front page?? I have created my own control now with two RichTextBox instances in a SplitContainer (with synchronised scrolling), but I'd rather use your control.

Steps to reproduce:

  • Create new WinForms project (targeting .NET 5 or .NET Core 3.1)
  • Add NuGet package: DiffPlex.Wpf
  • Drop DiffViewer from toolbox onto form (optionally set Dock to Fill)
  • Add OldText and NewText values in code-behind (either in constructor or Load event)
  • Run the solution

@kingcean
Copy link
Contributor

kingcean commented Sep 4, 2021

Could you please run the demo DiffPlex.WindowsForms.Demo mentioned above to have a test? Or run net5.0-windows\DiffPlex.WindowsForms.Demo.exe in DiffPlex.Win32.Demo.zip which I built locally.

  • If it works well, could you please compare the code between yours and the one in demo and let me know if I can provide any help?
  • If not, could you please share details information about your environment (like OS version, language and DPI scale) to me so that I can try to repro?

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants