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

feat!: templated-parent rework #17645

Merged
merged 77 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
4c32c31
feat!: templated-parent rework
Xiaoy312 Jan 8, 2024
b12f81a
chore: add tests
Xiaoy312 Jul 17, 2024
ec99330
chore: non-FE templated-parent injection
Xiaoy312 Jul 23, 2024
31a66b3
chore: fix template builder tp context
Xiaoy312 Jul 24, 2024
f6b00be
chore: fix unit tests
Xiaoy312 Jul 24, 2024
91f60df
chore: build fix
Xiaoy312 Jul 25, 2024
b3bfcc9
chore: clean up
Xiaoy312 Aug 2, 2024
12d1335
chore: updated PackageDiffIgnore.xml
Xiaoy312 Aug 1, 2024
ac1b54c
chore: Adjust apply template and SV
Youssef1313 Jul 19, 2024
58f3dc4
chore: fix post-cherry non-skia builds
Xiaoy312 Aug 2, 2024
67838fb
chore: fix windows build
Xiaoy312 Aug 5, 2024
5af664d
chore: fix early materialization
Xiaoy312 Aug 8, 2024
8447911
chore: fix sv layout-cycle
Xiaoy312 Aug 9, 2024
e799a60
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Aug 10, 2024
95a431a
chore: fix post-merge build
Xiaoy312 Aug 10, 2024
1012e7f
chore: fix content-control template not applying in some cases
Xiaoy312 Aug 12, 2024
6862550
chore: fix sample build
Xiaoy312 Aug 12, 2024
e3a1d4a
chore: fix broken tests
Xiaoy312 Aug 12, 2024
0d45a1f
chore: fix tests on uwp
Xiaoy312 Aug 13, 2024
736759e
chore: adjust ISupportIncrementalLoading tests for windows behavior
Xiaoy312 Aug 13, 2024
576071a
chore: fix sv related issues
Xiaoy312 Aug 13, 2024
525fb58
chore: fix theme-resource not updating in template-binding
Xiaoy312 Aug 13, 2024
e268318
chore: fix gridview header placement
Xiaoy312 Aug 14, 2024
449cd50
chore: fix When_Updating_Collected unit-test
Xiaoy312 Aug 14, 2024
71d941a
chore: fix android crash from ContentPresenterBypass
Xiaoy312 Aug 15, 2024
cc0f918
chore: fix pivot header template not applying
Xiaoy312 Aug 16, 2024
694e9e2
chore: adjust tp tests against content-presenter bypass
Xiaoy312 Aug 16, 2024
a770289
chore: fix ios treeview crash
Xiaoy312 Aug 20, 2024
119b4b4
chore: fix ios sv not updating extent
Xiaoy312 Aug 21, 2024
05808af
chore: fix When_Background_Color coords
Xiaoy312 Aug 23, 2024
9098792
chore: adjust ItemsPanel template application timiing
Xiaoy312 Aug 23, 2024
2d5e269
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Aug 23, 2024
816ffb8
chore: fix build
Xiaoy312 Aug 23, 2024
702598d
chore: fix measure crash caused by content-presenter bypass
Xiaoy312 Aug 27, 2024
f105161
chore: fix test
Xiaoy312 Aug 27, 2024
e7d33ca
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Aug 28, 2024
3437241
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Aug 30, 2024
3f80dba
chore: backward compat
Xiaoy312 Aug 30, 2024
5964007
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Sep 5, 2024
94383dc
chore: post-merge fix
Xiaoy312 Sep 5, 2024
894d20e
chore: tentative fix for ios leaks
Xiaoy312 Sep 5, 2024
1c2bc50
chore: fix vsg tp propagation
Xiaoy312 Sep 6, 2024
d205503
chore: misc changes
Xiaoy312 Sep 6, 2024
4d68512
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Sep 6, 2024
9b963aa
chore: fix non-UIE tp injection
Xiaoy312 Sep 9, 2024
07e0792
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Sep 10, 2024
4835a02
chore: post-merge fix
Xiaoy312 Sep 10, 2024
a4a4094
chore: fix build
Xiaoy312 Sep 10, 2024
5a823ff
chore: misc
Xiaoy312 Sep 10, 2024
38cc5e8
chore: fix MissingMethodException when loading dynamic xaml with temp…
Xiaoy312 Sep 11, 2024
2a3ed62
chore: restore&adjust public api
Xiaoy312 Sep 11, 2024
8bc4922
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Sep 11, 2024
3c029a8
chore: post-merge fix
Xiaoy312 Sep 11, 2024
10b7ec9
chore: fix CBox::When_SelectedItem_Active_VisualState
Xiaoy312 Sep 12, 2024
142296f
chore: fix windows build error
Xiaoy312 Sep 12, 2024
50c5af1
chore: adjust tests for ContentPresenter bypass
Xiaoy312 Sep 12, 2024
71ba1f0
chore: fix droid lv not virtualizing
Xiaoy312 Sep 14, 2024
913a9ea
chore: misc debug-qol changes
Xiaoy312 Sep 13, 2024
1171c01
chore: update PackageDiffIgnore.xml
Xiaoy312 Sep 14, 2024
d5ac8f3
chore: adjust skia tests
Xiaoy312 Sep 17, 2024
b9f20a3
chore: fix ios TreeView tests
Xiaoy312 Sep 18, 2024
489d37c
chore: restore old signatures
Xiaoy312 Sep 20, 2024
e18c5fc
chore: adjust codegen unittest for backcompat changes
Xiaoy312 Sep 24, 2024
83f8cc9
chore: fix unit tests
Xiaoy312 Sep 24, 2024
e0e5954
chore: misc changes
Xiaoy312 Sep 26, 2024
2df04cb
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Sep 27, 2024
978f52e
chore: update PackageDiffIgnore & public api
Xiaoy312 Sep 27, 2024
9836347
chore: adjust Binding sources precedences
Xiaoy312 Oct 2, 2024
d2e7f21
chore: adjust for CLI limit on android tests
jeromelaban Oct 3, 2024
2bc968f
chore: Adjust response file
jeromelaban Oct 3, 2024
2c0f5ee
chore: adjust response options
jeromelaban Oct 3, 2024
e3bf40e
chore: Adjust response
jeromelaban Oct 3, 2024
27e0fed
Merge branch 'master' into dev/xygu/20240703/templated-parent-rework-v3
Xiaoy312 Oct 7, 2024
22dddc7
chore: fix GridViewItem initial selection state
Xiaoy312 Oct 7, 2024
abdbee3
chore: fix pivot displaying non-selected item content
Xiaoy312 Oct 7, 2024
2c1fa19
chore: add support for legacy DO
Xiaoy312 Oct 8, 2024
4a9fdf1
chore: fix grid/listview multi-select states
Xiaoy312 Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions build/PackageDiffIgnore.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1910,11 +1910,37 @@
</Fields>

<Properties>
<!-- BEGIN templated-parent rework -->

<!-- HorizontalGridView -->
<Member fullName="System\.Func`1&lt;Android\.Views\.View&gt; Uno\.UI\.Controls\.HorizontalGridView::(Item|Header|Footer)Template\(\)" reason="Not in UWP" isRegex="true" />

<!-- END templated-parent rework -->
</Properties>

<Methods>
<Member fullName="System.Void Microsoft.Web.WebView2.Core.CoreWebView2.set_DocumentTitle(System.String value)" reason="Does not exist in UWP" />

<!-- BEGIN templated-parent rework -->

<!-- DependencyObject (codegen for all descendants) -->
<Member fullName=".*DependencyProperty .*\.get_TemplatedParentProperty\(\)" reason="Not in UWP" isRegex="true" />
<Member fullName=".*DependencyObject .*\.get_TemplatedParent\(\)" reason="Not in UWP" isRegex="true" />
<Member fullName="System\.Void .*\.set_TemplatedParent\((Microsoft|Windows)\.UI\.Xaml\.DependencyObject value\)" reason="Not in UWP" isRegex="true" />

<!-- templates: FrameworkTemplate, DataTemplate, ControlTemplate, ItemsPanelTemplate -->
<Member fullName="(?&lt;ReturnType&gt;(Microsoft|Windows)\.UI\.Xaml\.(DataTemplate|Controls\.(ControlTemplate|ItemsPanelTemplate))) \k&lt;ReturnType&gt;\.op_Implicit\(System\.Func`1&lt;.*&gt; obj\)" reason="Not in UWP" isRegex="true" />
<Member fullName="System\.Func`1&lt;.*&gt; (?&lt;DeclaringType&gt;(Microsoft|Windows)\.UI\.Xaml\.(FrameworkTemplate|DataTemplate|Controls\.(ControlTemplate|ItemsPanelTemplate)))\.op_Implicit\(\k&lt;DeclaringType&gt; obj\)" reason="Not in UWP" isRegex="true" />

<!-- HorizontalGridView -->
<Member fullName="System\.Func`1&lt;Android\.Views\.View&gt; Uno\.UI\.Controls\.HorizontalGridView\.get_(Item|Header|Footer)Template\(\)" reason="Not in UWP" isRegex="true" />
<Member fullName="System\.Void Uno\.UI\.Controls\.HorizontalGridView\.set_(Item|Header|Footer)Template\(System\.Func`1&lt;Android\.Views\.View&gt; value\)" reason="Not in UWP" isRegex="true" />

<!-- ViewExtensions -->
<Member fullName="System\.String Uno\.UI\.Extensions\.ViewExtensions\.TreeGraph\((?&lt;_View&gt;.+) reference, System\.Func`2&lt;\k&lt;_View&gt;,System\.String&gt; describe\)" isRegex="true" reason="Not in UWP" />

<!-- END templated-parent rework -->

<!-- BEGIN ComboBox.IsEditable -->
<Member fullName="System.Void Windows.UI.Xaml.Controls.Primitives.Selector.SetFocusedItem(System.Int32 index, System.Boolean shouldScrollIntoView, System.Boolean forceFocus, Windows.UI.Xaml.FocusState focusState, System.Boolean animateIfBringIntoView)" reason="Does not exist in UWP" />
<Member fullName="System.Void Windows.UI.Xaml.Controls.Primitives.Selector.SetFocusedItem(System.Int32 index, System.Boolean shouldScrollIntoView, System.Boolean forceFocus, Windows.UI.Xaml.FocusState focusState, System.Boolean animateIfBringIntoView, Windows.UI.Xaml.Input.FocusNavigationDirection focusNavigationDirection)" reason="Does not exist in UWP" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ public void Read_GenericSimple()
[Test]
public void Read_GenericWithProperty()
{
const string not_win = "{http://uno.ui/not_win}";
var sequence = new SequenceItem[] {
new SequenceItem { NodeType = XamlNodeType.NamespaceDeclaration, },
new SequenceItem { NodeType = XamlNodeType.NamespaceDeclaration, },
Expand All @@ -382,16 +383,18 @@ public void Read_GenericWithProperty()
new SequenceItem { NodeType = XamlNodeType.EndMember, },

new SequenceItem { NodeType = XamlNodeType.StartMember, MemberType = "{http://schemas.microsoft.com/winfx/2006/xaml}_UnknownContent", },
new SequenceItem { NodeType = XamlNodeType.StartObject, TypeName = "{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Style"},
new SequenceItem { NodeType = XamlNodeType.StartObject, TypeName = $"{not_win}Style"},
new SequenceItem { NodeType = XamlNodeType.StartMember, MemberType = "{http://schemas.microsoft.com/winfx/2006/xaml}Key", },
new SequenceItem { NodeType = XamlNodeType.Value, Value = "DefaultComboBoxItemStyle", },
new SequenceItem { NodeType = XamlNodeType.EndMember, },
new SequenceItem { NodeType = XamlNodeType.StartMember, MemberType = "{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Style.OtherProperty", },
new SequenceItem { NodeType = XamlNodeType.StartMember, MemberType = $"{not_win}Style.OtherProperty", },
new SequenceItem { NodeType = XamlNodeType.Value, Value = "test", },
new SequenceItem { NodeType = XamlNodeType.EndMember, },
#if false // XamlXmlReader fails to read any xmlns'd node/attribute with invalid uri (such as a guid or 'using:System.Somewhere')
new SequenceItem { NodeType = XamlNodeType.StartMember, MemberType = "{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Style.TargetType", },
new SequenceItem { NodeType = XamlNodeType.Value, Value = "SelectorItem", },
new SequenceItem { NodeType = XamlNodeType.EndMember, },
#endif
new SequenceItem { NodeType = XamlNodeType.EndObject, },
new SequenceItem { NodeType = XamlNodeType.EndMember, },
new SequenceItem { NodeType = XamlNodeType.EndObject, },
Expand Down Expand Up @@ -2507,9 +2510,30 @@ public void Bug680385 ()
}
#endregion

private string GetXml(string fileName)
{
var directory = Path.GetDirectoryName(new Uri(GetType().Assembly.CodeBase).LocalPath);
var path = Path.Combine(directory, "Test/XmlFiles", fileName);

return File.ReadAllText(path).Replace("System.Xaml_test_net_4_0", "Uno.Xaml.Tests");
}

private IEnumerable<(XamlNodeType, string, string, object, string)> ReadAllTokens(string fileName)
{
var r = GetReader(fileName);
int i = 0;
while (r.Read())
{
yield return (r.NodeType, r.Member?.ToString(), r.Member?.Name, r.Value, r.Type?.ToString());
}
}

private void ReadSequence(string fileName, IEnumerable<SequenceItem> sequence)
{
//ReadTest(fileName);
#if DEBUG && false
var xml = GetXml(fileName);
var tokens = ReadAllTokens(fileName).ToArray();
#endif

var r = GetReader(fileName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ internal partial class Inner : DependencyObject
using System.Linq;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using Uno.Disposables;
using System.Runtime.CompilerServices;
Expand All @@ -158,7 +159,7 @@ internal partial class Inner : DependencyObject
partial class OuterClass
{
[global::Microsoft.UI.Xaml.Data.Bindable]
partial class Inner : IDependencyObjectStoreProvider, IWeakReferenceProvider
partial class Inner : IDependencyObjectStoreProvider, ITemplatedParentProvider, IWeakReferenceProvider
{
private DependencyObjectStore __storeBackingField;
public global::Windows.UI.Core.CoreDispatcher Dispatcher => global::Windows.ApplicationModel.Core.CoreApplication.MainView.Dispatcher;
Expand All @@ -169,7 +170,7 @@ private DependencyObjectStore __Store
{
if(__storeBackingField == null)
{
__storeBackingField = new DependencyObjectStore(this, DataContextProperty, TemplatedParentProperty);
__storeBackingField = new DependencyObjectStore(this, DataContextProperty);
__InitializeBinder();
}
return __storeBackingField;
Expand All @@ -184,6 +185,28 @@ private DependencyObjectStore __Store
public object GetAnimationBaseValue(DependencyProperty dp) => __Store.GetAnimationBaseValue(dp);
public long RegisterPropertyChangedCallback(DependencyProperty dp, DependencyPropertyChangedCallback callback) => __Store.RegisterPropertyChangedCallback(dp, callback);
public void UnregisterPropertyChangedCallback(DependencyProperty dp, long token) => __Store.UnregisterPropertyChangedCallback(dp, token);

[EditorBrowsable(EditorBrowsableState.Never)]private ManagedWeakReference _templatedParentWeakRef;
[EditorBrowsable(EditorBrowsableState.Never)]public ManagedWeakReference GetTemplatedParentWeakRef() => _templatedParentWeakRef;

[EditorBrowsable(EditorBrowsableState.Never)]public DependencyObject GetTemplatedParent() => _templatedParentWeakRef?.Target as DependencyObject;
[EditorBrowsable(EditorBrowsableState.Never)]public void SetTemplatedParent(DependencyObject parent)
{
//if (parent != null)
//{
// global::System.Diagnostics.Debug.Assert(parent
// is global::Windows.UI.Xaml.Controls.Control
// or global::Windows.UI.Xaml.Controls.ContentPresenter
// or global::Windows.UI.Xaml.Controls.ItemsPresenter);
// global::System.Diagnostics.Debug.Assert(GetTemplatedParent() == null);
//}

SetTemplatedParentImpl(parent);
}
[EditorBrowsable(EditorBrowsableState.Never)]private protected virtual void SetTemplatedParentImpl(DependencyObject parent)
{
_templatedParentWeakRef = (parent as IWeakReferenceProvider)?.WeakReference;
}

private readonly static IEventProvider _binderTrace = Tracing.Get(DependencyObjectStore.TraceProvider.Id);
private BinderReferenceHolder _refHolder;
Expand Down Expand Up @@ -266,31 +289,32 @@ internal protected virtual void OnDataContextChanged(DependencyPropertyChangedEv

#endregion

#region TemplatedParent DependencyProperty
#region TemplatedParent DependencyProperty // legacy api, should no longer to be used.

public DependencyObject TemplatedParent
[EditorBrowsable(EditorBrowsableState.Never)]public DependencyObject TemplatedParent
{
get => (DependencyObject)GetValue(TemplatedParentProperty);
set => SetValue(TemplatedParentProperty, value);
}

// Using a DependencyProperty as the backing store for TemplatedParent. This enables animation, styling, binding, etc...
[EditorBrowsable(EditorBrowsableState.Never)]
public static DependencyProperty TemplatedParentProperty { get ; } =
DependencyProperty.Register(
name: nameof(TemplatedParent),
propertyType: typeof(DependencyObject),
ownerType: typeof(Inner),
typeMetadata: new FrameworkPropertyMetadata(
defaultValue: null,
options: FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.ValueDoesNotInheritDataContext | FrameworkPropertyMetadataOptions.WeakStorage,
options: /*FrameworkPropertyMetadataOptions.Inherits | */FrameworkPropertyMetadataOptions.ValueDoesNotInheritDataContext | FrameworkPropertyMetadataOptions.WeakStorage,
propertyChangedCallback: (s, e) => ((Inner)s).OnTemplatedParentChanged(e)
)
);


[EditorBrowsable(EditorBrowsableState.Never)]
internal protected virtual void OnTemplatedParentChanged(DependencyPropertyChangedEventArgs e)
{
__Store.SetTemplatedParent(e.NewValue as FrameworkElement);
OnTemplatedParentChangedPartial(e);
}

Expand Down Expand Up @@ -321,6 +345,7 @@ public void SetBindingValue(object value, [CallerMemberName] string propertyName

partial void OnDataContextChangedPartial(DependencyPropertyChangedEventArgs e);

[EditorBrowsable(EditorBrowsableState.Never)]
partial void OnTemplatedParentChangedPartial(DependencyPropertyChangedEventArgs e);

public global::Microsoft.UI.Xaml.Data.BindingExpression GetBindingExpression(DependencyProperty dependencyProperty)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void InitializeComponent()
"MyItemTemplate"
] =
new global::Uno.UI.Xaml.WeakResourceInitializer(this, __ResourceOwner_1 =>
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1 , __owner => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0>()).Build(__owner)
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1, (__owner) => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0>()).Build(__owner)
) .GenericApply(__that, __nameScope, ((c6, __that, __nameScope) =>
{
global::Uno.UI.Helpers.MarkupHelper.SetElementProperty(c6, "OriginalSourceLocation", "file:///C:/Project/0/MainPage.xaml#L13:6");
Expand All @@ -125,7 +125,7 @@ private void InitializeComponent()
{
IsParsing = true,
Name = "TheListView",
HeaderTemplate = new global::Microsoft.UI.Xaml.DataTemplate(this , __owner => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC1)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC1>()).Build(__owner)
HeaderTemplate = new global::Microsoft.UI.Xaml.DataTemplate(this, (__owner) => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC1)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC1>()).Build(__owner)
) .GenericApply(__that, __nameScope, ((c7, __that, __nameScope) =>
{
global::Uno.UI.Helpers.MarkupHelper.SetElementProperty(c7, "OriginalSourceLocation", "file:///C:/Project/0/MainPage.xaml#L42:8");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void InitializeComponent()
"MyItemTemplate"
] =
new global::Uno.UI.Xaml.WeakResourceInitializer(this, __ResourceOwner_1 =>
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1 , __owner => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0>()).Build(__owner)
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1, (__owner) => ((I_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0)global::Uno.UI.Helpers.TypeMappings.CreateInstance<_MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0>()).Build(__owner)
) .GenericApply(__that, __nameScope, ((c6, __that, __nameScope) =>
{
global::Uno.UI.Helpers.MarkupHelper.SetElementProperty(c6, "OriginalSourceLocation", "file:///C:/Project/0/MainPage.xaml#L13:6");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void InitializeComponent()
"myTemplate"
] =
new global::Uno.UI.Xaml.WeakResourceInitializer(this, __ResourceOwner_1 =>
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1 , __owner => new _MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_TestReproMyResourceDictionarySC0().Build(__owner)
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1, (__owner) => new _MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_TestReproMyResourceDictionarySC0().Build(__owner)
) )
;
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public ResourceDictionarySingleton__MyResourceDictionary_92716e07ff456818f6d4125

// Method for resource myTemplate
private object Get_1(object __ResourceOwner_1) =>
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1 , __owner => new __Resources._MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_MyResourceDictionaryRDSC1().Build(__owner)
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1, (__owner) => new __Resources._MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_MyResourceDictionaryRDSC1().Build(__owner)
) ;

private global::Microsoft.UI.Xaml.ResourceDictionary _MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_ResourceDictionary;
Expand All @@ -197,7 +197,7 @@ private object Get_1(object __ResourceOwner_1) =>
"myTemplate"
] =
new global::Uno.UI.Xaml.WeakResourceInitializer(this, __ResourceOwner_1 =>
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1 , __owner => new __Resources._MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_MyResourceDictionaryRDSC2().Build(__owner)
new global::Microsoft.UI.Xaml.DataTemplate(__ResourceOwner_1, (__owner) => new __Resources._MyResourceDictionary_92716e07ff456818f6d4125e055d4d57_MyResourceDictionaryRDSC2().Build(__owner)
) )
,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void InitializeComponent()
{
IsParsing = true,
Name = "inner2",
Template = new global::Microsoft.UI.Xaml.Controls.ControlTemplate(this , __owner => new _MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0().Build(__owner)
Template = new global::Microsoft.UI.Xaml.Controls.ControlTemplate(this, (__owner) => new _MainPage_d6cd66944958ced0c513e0a04797b51d_TestReproMainPageSC0().Build(__owner)
) ,
// Source 0\MainPage.xaml (Line 15:5)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void InitializeComponent()
IsParsing = true,
Name = "topLevel",
Tag = @"42",
ContentTemplate = new global::Microsoft.UI.Xaml.DataTemplate(this , __owner => new _Binding_ElementName_In_Template_66bf0a54f1801c397a6fa4930a237eca_UnoUITestsWindows_UI_Xaml_DataBindingTestsControlsBinding_ElementName_In_TemplateSC0().Build(__owner)
ContentTemplate = new global::Microsoft.UI.Xaml.DataTemplate(this, (__owner) => new _Binding_ElementName_In_Template_66bf0a54f1801c397a6fa4930a237eca_UnoUITestsWindows_UI_Xaml_DataBindingTestsControlsBinding_ElementName_In_TemplateSC0().Build(__owner)
) ,
// Source 0\Binding_ElementName_In_Template.xaml (Line 11:4)
}
Expand Down
Loading
Loading