Skip to content

Commit b056c58

Browse files
committed
chore(ListBoard): adjust naming of Properties
BUG: Still no TabBarItems displayed
1 parent 6335b03 commit b056c58

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/ViewModels/ListboardModel.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Uno.Extensions.Reactive.Commands;
2+
13
namespace 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

src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/Views/ListboardPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
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}"

0 commit comments

Comments
 (0)