-
Notifications
You must be signed in to change notification settings - Fork 34
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
Annotate viewer broken under mixed-DPI #7
Comments
My check in comment on the initial changes to AnkhSVN2019 outlines why I made a new implementation.
The implementation works fairly well, by I never found a set modify the caption in the tab on the editor window. Just from the tab, is looks like a normal editor window. At the time, I posted a question on StackOverflow, but never found a workable solution. There is an open issue about handling the zoom level, but I guess this can be fixed. I never paid any attention to older versions of Visual Studio. If this repository is the version in VS Marketplace which supports VS 2017 and VS 2019, it will probably work. I have not tried to compile the version from this repository. If it is easy, then I could try to integrate my version of the Annotate viewer into this repository (or a fork of it). However, I will definitely not have time before October. I found compiling from the original CollabNet repository anything but easy. |
Hi Bert, I have forked your repository with the intention of moving my implementation of the Annotate viewer into this version. My implementation uses a WPF UserControl, which I would move into the project Ankh.UI. For this I have added references to PresentationCore, PresentationFramework, System.Xaml and WindowsBase. If I now select If I now build the project, I get the following error:
I think RVA is probably Relative Virtual Address. If I exclude UserControl1.xaml from the project, the error goes away. I can see no connection whatsoever between the WPF control and this error message. I don't know if this is a problem which has to be fixed in SharpSvn or AnkhSvn, but for now, I am completely stuck. |
This appears to be an issue with the reference assembly created by the Sharpsvn build... The designer should have picked the actual binary instead of the reflection only version. |
Is there anything I can do to get around the problem, or is it something which has to be fixed in SharpSVN? |
Looks like this is/was an issue in https://github.com/JetBrains/Refasmer, which is used for creating the reference assembly. |
@PhilJollans I just updated the SharpSvn reference with some fixes via a newer Refasmer used there. If this doesn't fix this we should probably switch to a mock assembly instead of a reference assembly for this case, though I would hope not every reference assembly has this problem. |
The annotate viewer is mostly broken in Visual Studio 2019 when using non standard Windows DPI settings.
The AnkhSVN2019 fork has a new implementation using a more modern approach. (The old version had to work with the old pre-VS2012 editor). We should decide if we want to fix the current version and/or go to that newer code.
The text was updated successfully, but these errors were encountered: