Hi,
please check the attached sample. I see some problems there:
|
Without Theme |
With Theme |
|
|
|
|
Query |
Details |
|
Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom |
We confirmed the issue “Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom” as a defect in our product. We will include the fix for this issue in our weekly NuGet release, which will be available on October 12th, 2021.
Please use the below feedback link to track the status of the reported bug.
Note: If you require patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.
|
|
Annotation tool hiding is not working after applying the dark theme. |
On analyzed further, we found the issue “Annotation tool hiding is not working after applying theme” is fixed as a stability work. Also, the fix for this issue will be available in our upcoming 2021 volume 3 release. We will let you know once the release is rolled out.
|
|
The CPU usage is increasing more after applying the dark theme. |
We are still analyzing on this issue with more priority, and we will update further details on 27th September 2021. |
|
Query |
Details | |
|
Loading the PdfViewerControl by hiding all annotation tools, makes space on bottom |
As we have mentioned in our previous update, we will include the fix in our weekly NuGet release, which will be available on October 12th, 2021
Please use the below feedback link to track the status of the reported bug.
Note: If you require patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.
| |
|
Annotation tool hiding is not working after applying the dark theme. |
As we have mentioned in our previous updated, the fix for this issue will be available in our upcoming 2021 volume 3 release. We will let you know once the release is rolled out. | |
|
The CPU usage is increasing more after applying the dark theme. |
On analyzed further, we found the increased CPU consumption is occurring due to applying the theme in the Loaded event handler. The CPU usage can be reduced by applying the theme after the InitializeComponent() method in the window constructor. Please find the below code snippet for the same.
We have also modified the provided sample, and which can be downloaded from the below link,
Please check the above details and let us know if you need any further assistance on this. |
Hi,
so that means that theme can be set only once - in the constructor and later can't be changed? (e.g. on button click)
Regards
Ondřej
Hi,
I can confirm that second item in the table is resolved in the latest version.
But I still have that CPU issue even when theme is being applied in the constructor as you proposed. I've found out that work around that works for me is to delay PDF file loading in there. I use dispatcher for that:
PdfViewer.Dispatcher.BeginInvoke(DispatcherPriority.Background, new System.Action(() =>
{
PdfViewer.Load(PdfPath);
}));
Strange part is that I can't reproduce this issue in your sample.
Unfortunately I've tried to modify your sample to reproduce the issue but without success. I suspect it to be some kind of race condition or something like that.
Hi,
I can confirm that it works. Thanks.
Ondřej