Skip to content

Commit 268c999

Browse files
committed
Fix(Listboard): Bound State Name updated
1 parent 6335b03 commit 268c999

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public ListboardModel(
5757
/// </remarks>
5858
public IListFeed<string> CodeSampleOptions => ListFeed<string>
5959
.Async(_codeSampleService.GetCodeSampleOptionsAsync)
60-
.Selection(SelectedSampleOption);
60+
.Selection(SelectedOption);
6161

6262
/// <summary>
6363
/// Represents the selected code sample option.
6464
/// </summary>
6565
/// <remarks>
6666
/// Uses <see cref="string.Empty"/> as the default value to avoid null checks in the XAML.
6767
/// </remarks>
68-
public IState<string> SelectedSampleOption => State<string>
68+
public IState<string> SelectedOption => State<string>
6969
.Value(this, () => string.Empty)
7070
.ForEach(SwitchCodeSampleAsync);
7171

@@ -90,9 +90,9 @@ public ListboardModel(
9090
/// }
9191
/// </code>
9292
/// </example>
93-
public async ValueTask SwitchCodeSampleAsync(string? selectedSampleOption, CancellationToken ct = default)
93+
public async ValueTask SwitchCodeSampleAsync(string? selectedOption, CancellationToken ct = default)
9494
{
95-
string sample = await _codeSampleService.GetCodeSampleAsync(selectedSampleOption ?? string.Empty);
95+
string sample = await _codeSampleService.GetCodeSampleAsync(selectedOption ?? string.Empty);
9696
await CurrentCodeSample.SetAsync(sample, ct);
9797
}
9898
#endregion

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
<Grid.RowDefinitions>
1919
<RowDefinition Height="Auto"/>
2020
<RowDefinition Height="*"/>
21-
<RowDefinition Height="Auto"
22-
MaxHeight="300" />
21+
<RowDefinition Height="Auto" />
2322
</Grid.RowDefinitions>
2423

2524
<TextBlock Grid.Row="0"

0 commit comments

Comments
 (0)