in this page we can load only items that is tagged as IsNew, IsUpdated and IsPreview.
Events
| Name |
|---|
| OnItemClick |
Available Properties
| Name |
|---|
| HeaderImageHeight |
| HeaderImage |
| HeaderSubtitleFontSize |
| HeaderSubtitleText |
| HeaderFontSize |
| HeaderText |
| Stretch |
| GridViewPadding |
| IsTileImage |
| FooterContent |
| FooterMargin |
| PreviewGroupText |
| UpdatedGroupText |
| NewGroupText |
| HeaderContent |
Override values
1 | <x:Double x:Key="LandingItemTitleFontSize">14</x:Double> |
Simple Use
first add:
1 | xmlns:dev="using:DevWinUI" |
then use MainLandingPage:
1 | <dev:MainLandingPage x:Name="mainLandingPage" Loaded="mainLandingPage_Loaded" |
Load Items from Json File
if you want to load items to a gridview, you need to Create a folder for example DataModel then add a new json file AppData.json:DataModel\AppData.json
Set BuildAction to Content, if you are in a Unpackaged Mode, set CopyToOutput to True
For a complete list of available properties and the full JSON structure, please refer to the JSON File Structure Documentation.
1 | { |
Normal
1 | protected override void OnNavigatedTo(NavigationEventArgs e) |
if you want to navigate to another page:
1 | private void mainLandingPage_OnItemClick(object sender, RoutedEventArgs e) |
Enable/Disable Items based on Page Exist / IncludedInBuild
you can simply enable/disable items in AppData.json file just set IncludedInBuild to true or false
