File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/DevTKSS.Uno.Samples.MvuxGallery/Presentation Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ using Uno . Extensions . Reactive . Commands ;
2+
13namespace DevTKSS . Uno . Samples . MvuxGallery . Presentation . ViewModels ;
24
35/// <summary>
@@ -78,7 +80,7 @@ public ListboardModel(
7880 /// <summary>
7981 /// Switches the current code sample based on the selected option.
8082 /// </summary>
81- /// <param name="selectedSampleOption ">The selected code sample option.</param>
83+ /// <param name="choice ">The selected code sample option.</param>
8284 /// <param name="ct">A cancellation token for the operation.</param>
8385 /// <returns>A task representing the asynchronous operation.</returns>
8486 /// <example>
@@ -90,9 +92,9 @@ public ListboardModel(
9092 /// }
9193 /// </code>
9294 /// </example>
93- public async ValueTask SwitchCodeSampleAsync ( string ? selectedSampleOption , CancellationToken ct = default )
95+ public async ValueTask SwitchCodeSampleAsync ( [ FeedParameter ( nameof ( SelectedSampleOption ) ) ] string ? choice , CancellationToken ct = default )
9496 {
95- string sample = await _codeSampleService . GetCodeSampleAsync ( selectedSampleOption ?? string . Empty ) ;
97+ string sample = await _codeSampleService . GetCodeSampleAsync ( choice ?? string . Empty ) ;
9698 await CurrentCodeSample . SetAsync ( sample , ct ) ;
9799 }
98100 #endregion
Original file line number Diff line number Diff line change 5757 <Expander .Header>
5858 <utu : TabBar VerticalAlignment =" Bottom"
5959 ItemsSource =" {Binding CodeSampleOptions}"
60- SelectedItem =" {Binding SelectedOption , Mode=TwoWay}" >
60+ SelectedItem =" {Binding SelectedSampleOption , Mode=TwoWay}" >
6161 <utu : TabBar .ItemTemplate>
6262 <DataTemplate >
6363 <utu : TabBarItem Content =" {Binding}"
You can’t perform that action at this time.
0 commit comments