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

Flashing content in Document #227

Open
LeoYang06 opened this issue Jan 12, 2021 · 4 comments
Open

Flashing content in Document #227

LeoYang06 opened this issue Jan 12, 2021 · 4 comments

Comments

@LeoYang06
Copy link

Document_content_flashing

Embedded PCLView control in Document, PCLView content keeps blinking. Its not clear if it is related to this.

<LayoutDocumentPaneGroup>
	<LayoutDocumentPane x:Name="LayoutDocumentPane">
		<LayoutDocument Title="Document 1"
                        ContentId="document1"
                        Description=""
                        IconSource="{nfo:FrontierImage About,
                        Brush=DodgerBlue}">
			<views:PCLView />
		</LayoutDocument>
	</LayoutDocumentPane>
</LayoutDocumentPaneGroup>

The code in PCLView is as follows, passing the Panel handle to C++ and drawing the content.

<WindowsFormsHost Grid.Row="1">
	<forms:Panel x:Name="renderContainer"
                 BackColor="#040508" />
</WindowsFormsHost>

Everything shows up fine outside of Docking.

Is this related to #85?

@LyonJack
Copy link
Contributor

LyonJack commented Jan 12, 2021

I cannot see the file.git,The problem may be caused by the compatibility of DX and user32 controls.I need a demo that can reproduce the problem

@LyonJack
Copy link
Contributor

There is an idea to use WriteableBitmap as graphics cache,like the project of CefBrowser that chrome used in wpf

@Dirkster99
Copy link
Owner

@LeoYang-Chuese Can you please attach a re-producable zip code container to this issue?

@LeoYang06
Copy link
Author

LeoYang06 commented Jan 21, 2021

@Dirkster99 @LyonJack
The problem occurs after using the UserControl wrapper PCL, and does not occur without using the UserControl wrapper.

Project AvalonDock.Demo operates normally, and Project AvalonDock.UserControlDemo can reproduce the problem.

Demo example

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

3 participants