Skip to content

Commit c742cd0

Browse files
authored
Enable methods mechanism on EventArgs, add TryGetPosition (#171)
* TryGetPosition * format * format * rerun codegen * Change files * change
1 parent faa5b7b commit c742cd0

17 files changed

+457
-255
lines changed

examplenuget/App.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import React, {useRef} from 'react';
1010
import type {Node} from 'react';
1111
import {
12+
findNodeHandle,
1213
SafeAreaView,
1314
ScrollView,
1415
StatusBar,
@@ -94,11 +95,18 @@ const App: () => Node = () => {
9495
}}
9596
ref={t => {
9697
_tbRef.current = t;
97-
}}>
98+
}}
99+
onContextRequested={e => {
100+
const tag = findNodeHandle(_tbRef.current);
101+
const { point, returnValue } = e.nativeEvent.args.TryGetPosition(tag);
102+
MenuFlyout.ShowAt(menu, { point: point });
103+
}}
104+
>
98105
<MenuFlyout
99106
ref={m => {
100107
menu.current = m;
101-
}}>
108+
}}
109+
>
102110
<MenuFlyoutItem text="menu option" />
103111
</MenuFlyout>
104112
</TextBlock>

examplenuget/windows/examplenuget.sln

Lines changed: 107 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,107 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29215.179
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "examplenuget", "examplenuget\examplenuget.vcxproj", "{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}"
7-
EndProject
8-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeXaml", "..\..\package\windows\ReactNativeXaml\ReactNativeXaml.vcxproj", "{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}"
9-
EndProject
10-
Global
11-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12-
Debug|ARM = Debug|ARM
13-
Debug|ARM64 = Debug|ARM64
14-
Debug|x64 = Debug|x64
15-
Debug|x86 = Debug|x86
16-
Release|ARM = Release|ARM
17-
Release|ARM64 = Release|ARM64
18-
Release|x64 = Release|x64
19-
Release|x86 = Release|x86
20-
EndGlobalSection
21-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.ActiveCfg = Debug|ARM64
23-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.Build.0 = Debug|ARM64
24-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.Deploy.0 = Debug|ARM64
25-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.ActiveCfg = Debug|x64
26-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.Build.0 = Debug|x64
27-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.Deploy.0 = Debug|x64
28-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.ActiveCfg = Debug|Win32
29-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.Build.0 = Debug|Win32
30-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.Deploy.0 = Debug|Win32
31-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.ActiveCfg = Release|ARM64
32-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.Build.0 = Release|ARM64
33-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.Deploy.0 = Release|ARM64
34-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.ActiveCfg = Release|x64
35-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.Build.0 = Release|x64
36-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.Deploy.0 = Release|x64
37-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.ActiveCfg = Release|Win32
38-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.Build.0 = Release|Win32
39-
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.Deploy.0 = Release|Win32
40-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM64.ActiveCfg = Debug|ARM64
41-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM64.Build.0 = Debug|ARM64
42-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.ActiveCfg = Debug|x64
43-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.Build.0 = Debug|x64
44-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.Deploy.0 = Debug|x64
45-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x86.ActiveCfg = Debug|Win32
46-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x86.Build.0 = Debug|Win32
47-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM64.ActiveCfg = Release|ARM64
48-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM64.Build.0 = Release|ARM64
49-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.ActiveCfg = Release|x64
50-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.Build.0 = Release|x64
51-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.Deploy.0 = Release|x64
52-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x86.ActiveCfg = Release|Win32
53-
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x86.Build.0 = Release|Win32
54-
EndGlobalSection
55-
GlobalSection(SolutionProperties) = preSolution
56-
HideSolutionNode = FALSE
57-
EndGlobalSection
58-
GlobalSection(ExtensibilityGlobals) = postSolution
59-
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
60-
EndGlobalSection
61-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.32014.148
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "examplenuget", "examplenuget\examplenuget.vcxproj", "{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}"
7+
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactNativeXaml", "..\..\package\windows\ReactNativeXaml\ReactNativeXaml.vcxproj", "{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Codegen", "..\..\package\Codegen\Codegen.csproj", "{A9EBFB79-DB42-4839-B369-EFA601A98706}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Debug|ARM = Debug|ARM
16+
Debug|ARM64 = Debug|ARM64
17+
Debug|x64 = Debug|x64
18+
Debug|x86 = Debug|x86
19+
Release|Any CPU = Release|Any CPU
20+
Release|ARM = Release|ARM
21+
Release|ARM64 = Release|ARM64
22+
Release|x64 = Release|x64
23+
Release|x86 = Release|x86
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|Any CPU.ActiveCfg = Debug|x64
27+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|Any CPU.Build.0 = Debug|x64
28+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|Any CPU.Deploy.0 = Debug|x64
29+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM.ActiveCfg = Debug|ARM
30+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM.Build.0 = Debug|ARM
31+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM.Deploy.0 = Debug|ARM
32+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.ActiveCfg = Debug|ARM64
33+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.Build.0 = Debug|ARM64
34+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|ARM64.Deploy.0 = Debug|ARM64
35+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.ActiveCfg = Debug|x64
36+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.Build.0 = Debug|x64
37+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x64.Deploy.0 = Debug|x64
38+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.ActiveCfg = Debug|Win32
39+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.Build.0 = Debug|Win32
40+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Debug|x86.Deploy.0 = Debug|Win32
41+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|Any CPU.ActiveCfg = Release|x64
42+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|Any CPU.Build.0 = Release|x64
43+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|Any CPU.Deploy.0 = Release|x64
44+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM.ActiveCfg = Release|ARM
45+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM.Build.0 = Release|ARM
46+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM.Deploy.0 = Release|ARM
47+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.ActiveCfg = Release|ARM64
48+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.Build.0 = Release|ARM64
49+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|ARM64.Deploy.0 = Release|ARM64
50+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.ActiveCfg = Release|x64
51+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.Build.0 = Release|x64
52+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x64.Deploy.0 = Release|x64
53+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.ActiveCfg = Release|Win32
54+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.Build.0 = Release|Win32
55+
{0E5E86FE-DB24-4DB3-96CF-5F97DA8558F1}.Release|x86.Deploy.0 = Release|Win32
56+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|Any CPU.ActiveCfg = Debug|x64
57+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|Any CPU.Build.0 = Debug|x64
58+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|Any CPU.Deploy.0 = Debug|x64
59+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM.ActiveCfg = Debug|ARM
60+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM.Build.0 = Debug|ARM
61+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM64.ActiveCfg = Debug|ARM64
62+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|ARM64.Build.0 = Debug|ARM64
63+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.ActiveCfg = Debug|x64
64+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.Build.0 = Debug|x64
65+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x64.Deploy.0 = Debug|x64
66+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x86.ActiveCfg = Debug|Win32
67+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Debug|x86.Build.0 = Debug|Win32
68+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|Any CPU.ActiveCfg = Release|x64
69+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|Any CPU.Build.0 = Release|x64
70+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|Any CPU.Deploy.0 = Release|x64
71+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM.ActiveCfg = Release|ARM
72+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM.Build.0 = Release|ARM
73+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM64.ActiveCfg = Release|ARM64
74+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|ARM64.Build.0 = Release|ARM64
75+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.ActiveCfg = Release|x64
76+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.Build.0 = Release|x64
77+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x64.Deploy.0 = Release|x64
78+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x86.ActiveCfg = Release|Win32
79+
{0FF7027A-222C-4FFB-8F17-91D18BBAF7A8}.Release|x86.Build.0 = Release|Win32
80+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
81+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|Any CPU.Build.0 = Debug|Any CPU
82+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|ARM.ActiveCfg = Debug|Any CPU
83+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|ARM.Build.0 = Debug|Any CPU
84+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|ARM64.ActiveCfg = Debug|Any CPU
85+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|ARM64.Build.0 = Debug|Any CPU
86+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|x64.ActiveCfg = Debug|Any CPU
87+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|x64.Build.0 = Debug|Any CPU
88+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|x86.ActiveCfg = Debug|Any CPU
89+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Debug|x86.Build.0 = Debug|Any CPU
90+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|Any CPU.ActiveCfg = Release|Any CPU
91+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|Any CPU.Build.0 = Release|Any CPU
92+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|ARM.ActiveCfg = Release|Any CPU
93+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|ARM.Build.0 = Release|Any CPU
94+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|ARM64.ActiveCfg = Release|Any CPU
95+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|ARM64.Build.0 = Release|Any CPU
96+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|x64.ActiveCfg = Release|Any CPU
97+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|x64.Build.0 = Release|Any CPU
98+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|x86.ActiveCfg = Release|Any CPU
99+
{A9EBFB79-DB42-4839-B369-EFA601A98706}.Release|x86.Build.0 = Release|Any CPU
100+
EndGlobalSection
101+
GlobalSection(SolutionProperties) = preSolution
102+
HideSolutionNode = FALSE
103+
EndGlobalSection
104+
GlobalSection(ExtensibilityGlobals) = postSolution
105+
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
106+
EndGlobalSection
107+
EndGlobal

package/CHANGELOG.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{
22
"name": "react-native-xaml",
33
"entries": [
4+
{
5+
"date": "Fri, 21 Jan 2022 02:47:33 GMT",
6+
"tag": "react-native-xaml_v0.0.54",
7+
"version": "0.0.54",
8+
"comments": {
9+
"patch": [
10+
{
11+
"author": "[email protected]",
12+
"package": "react-native-xaml",
13+
"comment": "Enable calling some methods on EventArgs objects",
14+
"commit": "5095a975ae352c1e4cee14b098f9efc52f6de0fb"
15+
}
16+
]
17+
}
18+
},
419
{
520
"date": "Sat, 13 Nov 2021 02:37:41 GMT",
621
"tag": "react-native-xaml_v0.0.53",

package/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Change Log - react-native-xaml
22

3-
This log was last generated on Sat, 13 Nov 2021 02:37:41 GMT and should not be manually modified.
3+
This log was last generated on Fri, 21 Jan 2022 02:47:33 GMT and should not be manually modified.
44

55
<!-- Start content -->
66

7+
## 0.0.54
8+
9+
Fri, 21 Jan 2022 02:47:33 GMT
10+
11+
### Patches
12+
13+
- Enable calling some methods on EventArgs objects ([email protected])
14+
715
## 0.0.53
816

917
Sat, 13 Nov 2021 02:37:41 GMT

package/Codegen/EventArgsTypeProperties.cs

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool.
4-
// Runtime Version: 16.0.0.0
4+
// Runtime Version: 17.0.0.0
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -19,7 +19,7 @@ namespace Codegen
1919
/// </summary>
2020

2121
#line 1 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
22-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "16.0.0.0")]
22+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")]
2323
public partial class EventArgsTypeProperties : EventArgsTypePropertiesBase
2424
{
2525
#line hidden
@@ -74,40 +74,89 @@ struct EventArgsProperty {
7474

7575
#line 30 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
7676
foreach (var prop in Properties) {
77+
if (prop.Property != null) {
7778

7879
#line default
7980
#line hidden
8081
this.Write(" { \"");
8182

82-
#line 31 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
83-
this.Write(this.ToStringHelper.ToStringWithCulture(Util.ToJsName(prop.GetName())));
83+
#line 32 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
84+
this.Write(this.ToStringHelper.ToStringWithCulture(Util.ToJsName(prop.Name)));
8485

8586
#line default
8687
#line hidden
8788
this.Write("\", IsType<");
8889

89-
#line 31 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
90+
#line 32 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
9091
this.Write(this.ToStringHelper.ToStringWithCulture(Util.GetCppWinRTType(prop.DeclaringType)));
9192

9293
#line default
9394
#line hidden
9495
this.Write(">, [](const winrt::Windows::Foundation::IInspectable& obj) { auto ea = obj.as<");
9596

96-
#line 31 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
97+
#line 32 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
9798
this.Write(this.ToStringHelper.ToStringWithCulture(Util.GetCppWinRTType(prop.DeclaringType)));
9899

99100
#line default
100101
#line hidden
101102
this.Write(">(); return ");
102103

103-
#line 31 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
104-
this.Write(this.ToStringHelper.ToStringWithCulture(Util.MaybeBox("ea", prop)));
104+
#line 32 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
105+
this.Write(this.ToStringHelper.ToStringWithCulture(Util.MaybeBox("ea", prop.Property)));
105106

106107
#line default
107108
#line hidden
108109
this.Write("; } },\r\n");
109110

110-
#line 32 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
111+
#line 33 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
112+
} else {
113+
114+
#line default
115+
#line hidden
116+
this.Write(" { \"");
117+
118+
#line 34 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
119+
this.Write(this.ToStringHelper.ToStringWithCulture(Util.ToJsName(prop.Name)));
120+
121+
#line default
122+
#line hidden
123+
this.Write("\", IsType<");
124+
125+
#line 34 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
126+
this.Write(this.ToStringHelper.ToStringWithCulture(Util.GetCppWinRTType(prop.DeclaringType)));
127+
128+
#line default
129+
#line hidden
130+
this.Write(">, [](const winrt::Windows::Foundation::IInspectable& obj) { auto ea = obj.as<");
131+
132+
#line 34 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
133+
this.Write(this.ToStringHelper.ToStringWithCulture(Util.GetCppWinRTType(prop.DeclaringType)));
134+
135+
#line default
136+
#line hidden
137+
this.Write(">(); return Get");
138+
139+
#line 34 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
140+
this.Write(this.ToStringHelper.ToStringWithCulture(prop.Name));
141+
142+
#line default
143+
#line hidden
144+
this.Write("_");
145+
146+
#line 34 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
147+
this.Write(this.ToStringHelper.ToStringWithCulture(prop.DeclaringType.GetName()));
148+
149+
#line default
150+
#line hidden
151+
this.Write("(); },\r\n");
152+
153+
#line 35 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
154+
}
155+
156+
#line default
157+
#line hidden
158+
159+
#line 36 "C:\Users\asklar\source\repos\react-native-xaml\package\Codegen\EventArgsTypeProperties.tt"
111160
}
112161

113162
#line default
@@ -123,7 +172,7 @@ struct EventArgsProperty {
123172
/// <summary>
124173
/// Base class for this transformation
125174
/// </summary>
126-
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "16.0.0.0")]
175+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")]
127176
public class EventArgsTypePropertiesBase
128177
{
129178
#region Fields

0 commit comments

Comments
 (0)