-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19418 from unoplatform/dev/dr/hrUpdates
fix(hr): Fix ENC1002 when dealing with event handlers
- Loading branch information
Showing
21 changed files
with
625 additions
and
285 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...adataUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1/0/p1/MainPage.xaml
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,19 @@ | ||
<Page | ||
x:Class="Test01.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CSHRTest01" | ||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
|
||
<Grid> | ||
<TextBlock Text="Hello world!" /> | ||
|
||
<Button Click="Button_Click" /> | ||
|
||
<Button Click="Button_Click" Content="Button 2" /> | ||
</Grid> | ||
</Page> |
28 changes: 28 additions & 0 deletions
28
...taUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1/0/p1/MainPage.xaml.cs
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
|
||
namespace Test01; | ||
|
||
public sealed partial class MainPage : Page | ||
{ | ||
public MainPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private async void Button_Click(object sender, RoutedEventArgs e) | ||
{ | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...adataUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1/1/p1/MainPage.xaml
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,18 @@ | ||
<Page | ||
x:Class="Test01.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CSHRTest01" | ||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
|
||
<Grid> | ||
<Button Click="Button_Click" /> | ||
|
||
<TextBlock Text="Hello world!" /><!--WARNING : The blank line MUST be removed (compared to original) for the test to fail!--> | ||
<Button Click="Button_Click" Content="Button 2" /> | ||
</Grid> | ||
</Page> |
28 changes: 28 additions & 0 deletions
28
...taUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1/1/p1/MainPage.xaml.cs
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
|
||
namespace Test01; | ||
|
||
public sealed partial class MainPage : Page | ||
{ | ||
public MainPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private async void Button_Click(object sender, RoutedEventArgs e) | ||
{ | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...s/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1/Scenario.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"Scenarios": [ | ||
{ | ||
"IsDebug": true, | ||
"IsMono": false, | ||
"PassResults": [ | ||
{ | ||
"MetadataUpdates": 1, | ||
"Diagnostics": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"IsDebug": true, | ||
"IsMono": true, | ||
"PassResults": [ | ||
{ | ||
"MetadataUpdates": 1, | ||
"Diagnostics": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
...pdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1_xBind/0/p1/MainPage.xaml
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,19 @@ | ||
<Page | ||
x:Class="Test01.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CSHRTest01" | ||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
|
||
<Grid> | ||
<TextBlock Text="Hello world!" /> | ||
|
||
<Button Click="{x:Bind Button_Click}" /> | ||
|
||
<Button Click="{x:Bind Button_Click}" Content="Button 2" /> | ||
</Grid> | ||
</Page> |
28 changes: 28 additions & 0 deletions
28
...teTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1_xBind/0/p1/MainPage.xaml.cs
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
|
||
namespace Test01; | ||
|
||
public sealed partial class MainPage : Page | ||
{ | ||
public MainPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private async void Button_Click(object sender, RoutedEventArgs e) | ||
{ | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...pdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1_xBind/1/p1/MainPage.xaml
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,18 @@ | ||
<Page | ||
x:Class="Test01.MainPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:CSHRTest01" | ||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
|
||
<Grid> | ||
<Button Click="{x:Bind Button_Click}" /> | ||
|
||
<TextBlock Text="Hello world!" /><!--WARNING : The blank line MUST be removed (compared to original) for the test to fail!--> | ||
<Button Click="{x:Bind Button_Click}" Content="Button 2" /> | ||
</Grid> | ||
</Page> |
28 changes: 28 additions & 0 deletions
28
...teTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1_xBind/1/p1/MainPage.xaml.cs
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using Microsoft.UI.Xaml.Data; | ||
using Microsoft.UI.Xaml.Input; | ||
using Microsoft.UI.Xaml.Media; | ||
using Microsoft.UI.Xaml.Navigation; | ||
|
||
namespace Test01; | ||
|
||
public sealed partial class MainPage : Page | ||
{ | ||
public MainPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
private async void Button_Click(object sender, RoutedEventArgs e) | ||
{ | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...dataUpdateTests/Scenarios/When_Simple_Xaml_Delegates_Fuzzy_Matching_1_xBind/Scenario.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"Scenarios": [ | ||
{ | ||
"IsDebug": true, | ||
"IsMono": false, | ||
"PassResults": [ | ||
{ | ||
"MetadataUpdates": 1, | ||
"Diagnostics": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"IsDebug": true, | ||
"IsMono": true, | ||
"PassResults": [ | ||
{ | ||
"MetadataUpdates": 1, | ||
"Diagnostics": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.