Skip to content

Added minimal WPF designer support - #1989

Merged
amaitland merged 1 commit into
cefsharp:masterfrom
merceyz:pr22
Mar 20, 2017
Merged

amaitland merged 1 commit into
cefsharp:masterfrom
merceyz:pr22

Conversation

@merceyz

@merceyz merceyz commented Mar 17, 2017 •

Copy link
Copy Markdown
Member
  • Fixed WPF designer support

protected virtual bool CreateOffscreenBrowser(Size size)
{
if (browserCreated || System.ComponentModel.DesignerProperties.GetIsInDesignMode(this) || size.IsEmpty || size.Equals(new Size(0, 0)))
if (browserCreated || size.IsEmpty || size.Equals(new Size(0, 0)))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're no longer checking design mode here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreateOffscreenBrowser gets called from OnActualSizeChanged which isn't registered when in design mode.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

@amaitland amaitland added this to the 57.0.0 milestone Mar 20, 2017
@amaitland

Copy link
Copy Markdown
Member

All looks pretty straight forward 👍

@amaitland
amaitland merged commit a35a030 into cefsharp:master Mar 20, 2017
@amaitland amaitland added enhancement wpf WPF Implementation labels Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement wpf WPF Implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants