|
| 1 | +using System.Reflection.Metadata; |
| 2 | +using Newtonsoft.Json; |
1 | 3 | using Uno.Extensions.Reactive.Commands; |
2 | 4 |
|
3 | 5 | namespace DevTKSS.Uno.Samples.MvuxGallery.Presentation.ViewModels; |
@@ -49,28 +51,22 @@ public DashboardModel( |
49 | 51 | /// </value> |
50 | 52 | public IState<string> CurrentCodeSample => State<string>.Value(this, () => string.Empty); |
51 | 53 |
|
| 54 | + |
52 | 55 | /// <summary> |
53 | 56 | /// Get a static Collection of Values for <see cref="CodeSampleOptions"/> |
54 | 57 | /// </summary> |
55 | 58 | /// <param name="ct"> |
56 | | - /// A CancellationToken to make it compileable |
57 | | - /// <remarks> |
58 | | - /// since `ListFeed.Async` requires a CancellationToken even if Uno Documentation remarks this parameter to be optional.<br/> |
59 | | - /// <see href="https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0411?f1url=%3FappId%3Droslyn%26k%3Dk(CS0411)">CS0411</see><br/> |
60 | | - /// <br/> |
61 | | - /// adding then the type string or IImmutableList<string> to the ListFeed like `ListFeed<string>.Async(...)`, |
62 | | - /// or to the Async Extension itself like `ListFeed.Async<IImutableList<string>` results in a type mismatch.<br/> |
63 | | - /// <see href="https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs1503?f1url=%3FappId%3Droslyn%26k%3Dk(CS1503)">CS1503</see> |
64 | | - /// </remarks> |
| 59 | + /// A <see cref="CancellationToken"/> as the FeedList.Async requires a CancellationToken |
65 | 60 | /// </param> |
66 | 61 | /// <returns>The available Values to select from.</returns> |
67 | | - /// <remarks> |
68 | | - /// This uses the explicit `ImmutableList.Create` function (non generic!)<br/> |
69 | | - /// overload:<br/> |
70 | | - /// `params ReadOnlySpan<string> items` this takes in an (e.g.) array of generic typed values |
71 | | - /// </remarks> |
72 | 62 | public static async ValueTask<IImmutableList<string>> GetCodeSampleOptionsAsync(CancellationToken ct = default) |
73 | 63 | { |
| 64 | + // since `ListFeed.Async` requires a CancellationToken even if Uno Documentation remarks this parameter to be optional.< br /> |
| 65 | + // <see href="https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0411?f1url=%3FappId%3Droslyn%26k%3Dk(CS0411)">CS0411</see><br/> |
| 66 | + // |
| 67 | + // adding then the type string or IImmutableList<string> to the ListFeed like `ListFeed<string>.Async(...)`, |
| 68 | + // or to the Async Extension itself like `ListFeed.Async<IImutableList<string>` results in a type mismatch.<br/> |
| 69 | + // <see href="https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs1503?f1url=%3FappId%3Droslyn%26k%3Dk(CS1503)">CS1503</see> |
74 | 70 |
|
75 | 71 | await Task.Delay(1, ct); |
76 | 72 |
|
@@ -125,7 +121,7 @@ public async ValueTask SwitchCodeSampleAsync([FeedParameter(nameof(SelectedOptio |
125 | 121 | { |
126 | 122 | await Task.Delay(1, ct); |
127 | 123 | return new HeaderContent(ImageLocation: "Assets/Images/styled_logo.png", |
128 | | - Caption: _stringLocalizer["ListViewTitle"]); |
| 124 | + Caption: _stringLocalizer["GridViewTitle"]); |
129 | 125 | }); |
130 | 126 | #endregion |
131 | 127 |
|
|
0 commit comments