Skip to content

Commit 5500d58

Browse files
committed
chore: revert Dashboard ViewHeaderContent removing
1 parent 3940914 commit 5500d58

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,22 @@ public async ValueTask SwitchCodeSampleAsync([FeedParameter(nameof(SelectedOptio
112112

113113
#endregion
114114

115-
115+
#region ViewHeaderContent
116+
/// <summary>
117+
/// Gets the header content for the view, including an image and caption.
118+
/// </summary>
119+
/// <remarks>
120+
/// A Feed always needs a Async or Create function wich takes the cancellation token as parameter.<br/>
121+
/// So this is using a Task.Delay to simulate a delay in the async function.
122+
/// </remarks>
123+
public IFeed<HeaderContent> ViewHeaderContent => Feed<HeaderContent>.Async(
124+
valueProvider: async (ct) =>
125+
{
126+
await Task.Delay(1, ct);
127+
return new HeaderContent(ImageLocation: "Assets/Images/styled_logo.png",
128+
Caption: _stringLocalizer["ListViewTitle"]);
129+
});
130+
#endregion
116131

117132
}
118133

0 commit comments

Comments
 (0)