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

Added minimal WPF designer support #1989

Merged
merged 1 commit into from Mar 20, 2017
Merged

Added minimal WPF designer support #1989

merged 1 commit into from Mar 20, 2017

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Mar 17, 2017

  • Fixed WPF designer support

@@ -1473,7 +1502,7 @@ private void RemoveSourceHook()
/// <returns>bool to indicate if browser was created. If the browser has already been created then this will return false.</returns>
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
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
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
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
Member

All looks pretty straight forward 👍

@amaitland amaitland merged commit a35a030 into cefsharp:master Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants