File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44using CommunityToolkit . Tooling . SampleGen . Metadata ;
5- using Windows . UI . Xaml . Media . Imaging ;
65
76namespace CommunityToolkit . App . Shared . Helpers ;
87
Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information.
44
55using CommunityToolkit . Tooling . SampleGen . Metadata ;
6- using CommunityToolkit . Tooling . SampleGen ;
7- using Windows . Storage ;
86
9- namespace CommunityToolkit . App . Shared . Pages
7+ namespace CommunityToolkit . App . Shared . Pages ;
8+
9+ public sealed partial class GettingStartedPage : Page
1010{
11- public sealed partial class GettingStartedPage : Page
11+ public GettingStartedPage ( )
1212 {
13- public GettingStartedPage ( )
14- {
15- this . InitializeComponent ( ) ;
16- }
17-
18- /// <summary>
19- /// Gets the items used for navigating.
20- /// </summary>
21- protected override void OnNavigatedTo ( NavigationEventArgs e )
22- {
23- controlsGridView . ItemsSource = e . Parameter as IEnumerable < ToolkitFrontMatter > ;
24-
25-
26- base . OnNavigatedTo ( e ) ;
27- }
13+ this . InitializeComponent ( ) ;
14+ }
2815
29- private async void controlsGridView_ItemClick ( object sender , ItemClickEventArgs e )
30- {
31- var selectedSample = e . ClickedItem as ToolkitFrontMatter ;
16+ /// <summary>
17+ /// Gets the items used for navigating.
18+ /// </summary>
19+ protected override void OnNavigatedTo ( NavigationEventArgs e )
20+ {
21+ controlsGridView . ItemsSource = e . Parameter as IEnumerable < ToolkitFrontMatter > ;
22+ base . OnNavigatedTo ( e ) ;
23+ }
3224
33- Shell . Current ? . NavigateToSample ( selectedSample ) ;
34- }
25+ private void controlsGridView_ItemClick ( object sender , ItemClickEventArgs e )
26+ {
27+ var selectedSample = e . ClickedItem as ToolkitFrontMatter ;
28+ Shell . Current ? . NavigateToSample ( selectedSample ) ;
3529 }
3630}
You can’t perform that action at this time.
0 commit comments