Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Updating sample apps:#4

Merged
azchohfi merged 4 commits intomasterfrom
gegao/SampleRefactor
Dec 21, 2018
Merged

Updating sample apps:#4
azchohfi merged 4 commits intomasterfrom
gegao/SampleRefactor

Conversation

@gegao18
Copy link
Contributor

@gegao18 gegao18 commented Nov 16, 2018

  • Adding WindowsXamlHost to WinForms sample.
  • Removing WrappedRectangle and WrappedButton, which are not needed.

Issue: #

PR Type

Sample app changes

What is the current behavior?

The sample wraps each individual Xaml control in its own WindowsXamlHost, which creates a DesktopWindowXamlSource under the covers

What is the new behavior?

Put all Xaml content in a single WindowsXamlHost instead of creating a host per control. This is a more efficient use of DesktopWindowXamlSource and should be the pattern we promote.

PR Checklist

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

@gegao18 gegao18 requested a review from nmetulev November 16, 2018 18:30
@dnfclas
Copy link

dnfclas commented Nov 16, 2018

CLA assistant check
All CLA requirements met.

- Adding WindowsXamlHost to WinForms sample.
- Refactoring WPF sample to put Xaml content in a single WindowsXamlHost instead of creating a host per control.
- Removing WrappedRectangle and WrappedButton, which are not needed.
@gegao18 gegao18 force-pushed the gegao/SampleRefactor branch from 81ef4ae to 8ae623a Compare November 16, 2018 18:33
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Toolkit.Forms.UI.Controls", "Microsoft.Toolkit.Forms.UI.Controls\Microsoft.Toolkit.Forms.UI.Controls.csproj", "{9B054ABA-B5B4-42F4-8E29-97DCCF79C726}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Toolkit.Sample.Forms.WebView", "Microsoft.Toolkit.Sample.Forms.WebView\Microsoft.Toolkit.Sample.Forms.WebView.csproj", "{D103E448-64B1-407C-B09E-7C61AF9F2740}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Toolkit.Sample.Forms.WebView", "Microsoft.Toolkit.Sample.Forms.WebView\Microsoft.Toolkit.Sample.Forms.WebView.csproj", "{D103E448-64B1-407C-B09E-7C61AF9F2740}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did the GUIDs need to change?

Copy link
Contributor

@azchohfi azchohfi left a comment

Choose a reason for hiding this comment

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

Project is not building.
Please run UpdateHeaders.bat or '.\build.ps1 -target=UpdateHeaders' and commit the changes.

@marb2000 marb2000 self-assigned this Dec 20, 2018
@azchohfi azchohfi merged commit 8214670 into master Dec 21, 2018
@delete-merged-branch delete-merged-branch bot deleted the gegao/SampleRefactor branch December 21, 2018 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants