1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
| <dev:ItemsPageBase x:Class="DevWinUI.LandingPages.Controls.MainLandingPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dev="using:DevWinUI" HighContrastAdjustment="None" NavigationCacheMode="Enabled">
<Page.Resources> <CollectionViewSource x:Name="itemsCVS" IsSourceGrouped="true" /> </Page.Resources>
<Grid> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="LayoutVisualStates"> <VisualState x:Name="WideLayout"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="{StaticResource Breakpoint640Plus}" /> </VisualState.StateTriggers> </VisualState> <VisualState x:Name="NarrowLayout"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="0" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="learnMoreGrid.Margin" Value="16,36,0,36" /> <Setter Target="itemGridView.Padding" Value="4,0,4,36" /> <Setter Target="itemGridView.ItemContainerStyle" Value="{StaticResource IndentedGridViewItemStyleSmall}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <GridView x:Name="itemGridView" Padding="24,0,24,0" AutomationProperties.AutomationId="ItemGridView" AutomationProperties.Name="Items In Group" ContainerContentChanging="OnItemGridViewContainerContentChanging" IsItemClickEnabled="True" IsSwipeEnabled="False" ItemClick="OnItemGridViewItemClick" ItemContainerStyle="{StaticResource IndentedGridViewItemStyle}" ItemTemplate="{StaticResource ControlItemTemplate}" ItemsSource="{x:Bind itemsCVS.View, Mode=OneWay}" Loaded="OnItemGridViewLoaded" SelectionMode="None"> <GridView.Header> <Grid x:Name="HeaderGrid" Margin="-24,0,-24,0"> <Grid.RowDefinitions> <RowDefinition Height="204" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <dev:HomePageHeaderImage Grid.RowSpan="2" Height="396" HeaderImage="ms-appx:///Assets/Images/Header.png" VerticalAlignment="Top" />
<TextBlock AutomationProperties.AutomationId="__ClickableAreaTextBlock" /> <StackPanel Margin="36,0,0,0" VerticalAlignment="Center" Orientation="Vertical"> <TextBlock x:Name="smallHeaderSubtitleText" FontSize="18" Text="Version 1.0.0" /> <TextBlock x:Name="smallHeaderText" Style="{StaticResource TitleLargeTextBlockStyle}" Text="myApp" /> </StackPanel>
<dev:TileGallery x:Name="headerTileGallery" Grid.Row="1" Margin="0,0,0,0"> <dev:TileGallery.HeaderContent> <StackPanel Orientation="Horizontal" Spacing="10"> <dev:HeaderTile Title="Documentation Center" Description="Learn how to work with controls and styles." Link="https://Ghost1372.github.io/DevWinUI/"> <dev:HeaderTile.Source> <Image Source="/Assets/HomeHeaderTiles/Header-WinUIGallery.png" /> </dev:HeaderTile.Source> </dev:HeaderTile> <dev:HeaderTile Title="DevWinUI" Description="Experience WinUI 3 quickly and easily with the help of DevWinUI, Everything you need to develop an application is gathered in one place." Link="https://github.com/Ghost1372/DevWinUI"> <dev:HeaderTile.Source> <Image Source="/Assets/HomeHeaderTiles/icon.png" /> </dev:HeaderTile.Source> </dev:HeaderTile> <dev:HeaderTile Title="Core" Description="Experience WinUI 3 quickly and easily with the help of Core, Everything you need to develop an application is gathered in one place." Link="https://github.com/Ghost1372/DevWinUI"> <dev:HeaderTile.Source> <Image Source="/Assets/HomeHeaderTiles/icon.png" /> </dev:HeaderTile.Source> </dev:HeaderTile> <dev:HeaderTile Title="ContextMenuExtensions" Description="add a new ContextMenu for Windows 11/10." Link="https://github.com/Ghost1372/DevWinUI"> <dev:HeaderTile.Source> <Image Source="/Assets/HomeHeaderTiles/icon.png" /> </dev:HeaderTile.Source> </dev:HeaderTile> </StackPanel> </dev:TileGallery.HeaderContent> </dev:TileGallery> </Grid> </GridView.Header>
<GridView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate x:DataType="dev:GroupInfoList"> <TextBlock x:Name="pageSubtitle" Margin="4,32,0,0" AutomationProperties.HeadingLevel="Level1" Style="{StaticResource SubtitleTextBlockStyle}" Text="{x:Bind Title}" /> </DataTemplate> </GroupStyle.HeaderTemplate> </GroupStyle> </GridView.GroupStyle> </GridView> </Grid> </dev:ItemsPageBase>
|