-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Align ContentPresenter/ContentControl with WinUI on Skia and Wasm
- Loading branch information
1 parent
5fd8ce0
commit 0936581
Showing
28 changed files
with
1,566 additions
and
839 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
src/SamplesApp/SamplesApp.Windows/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"profiles": { | ||
"SamplesApp.Windows (Package)": { | ||
"commandName": "MsixPackage" | ||
"commandName": "MsixPackage", | ||
"nativeDebugging": true | ||
}, | ||
"SamplesApp.Windows (Unpackaged)": { | ||
"commandName": "Project" | ||
"commandName": "Project", | ||
"nativeDebugging": true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Runtime.CompilerServices; | ||
using Microsoft.UI.Xaml.Controls; | ||
|
||
namespace Microsoft.UI.Xaml; | ||
|
||
internal static class ControlExtensions | ||
{ | ||
#if WINAPPSDK | ||
public static T GetTemplateChild<T>(this Control control, string childName) where T : DependencyObject | ||
{ | ||
return UnsafeGetTemplateChild(control, childName) as T; | ||
} | ||
|
||
public static DependencyObject GetTemplateChild(this Control control, string childName) | ||
{ | ||
return UnsafeGetTemplateChild(control, childName); | ||
} | ||
|
||
[UnsafeAccessor(UnsafeAccessorKind.Method, Name = "GetTemplateChild")] | ||
extern static DependencyObject UnsafeGetTemplateChild(Control control, string childName); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.