File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/DevTKSS.Uno.Samples.MvuxGallery/Presentation/ViewModels Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments