This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CollectionViewSource | |
x:Name="groupedItemsViewSource" | |
Source="{Binding Groups}" | |
IsSourceGrouped="true" | |
ItemsPath="Items" | |
d:Source="{Binding Groups, Source={d:DesignData Source=/DataModel/SampleData.json, Type=data:SampleDataSource}}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GridView | |
x:Name="itemGridView" | |
AutomationProperties.AutomationId="ItemGridView" | |
AutomationProperties.Name="Grouped Items" | |
Grid.RowSpan="2" | |
Padding="116,137,40,46" | |
ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}" | |
SelectionMode="None" | |
IsSwipeEnabled="false" | |
IsItemClickEnabled="True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GridView.ItemTemplate> | |
<DataTemplate> | |
<Grid HorizontalAlignment="Left" Width="250" Height="250"> | |
<Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"> | |
<Image Source="{Binding ImagePath}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/> | |
</Border> | |
<StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}"> | |
<TextBlock Text="{Binding Title}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextBlockStyle}" Height="60" Margin="15,0,15,0"/> | |
<TextBlock Text="{Binding Subtitle}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextBlockStyle}" TextWrapping="NoWrap" Margin="15,0,15,10"/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DataTemplate> | |
<Grid HorizontalAlignment="Left" Width="520" Height="350"> | |
<Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"> | |
<Image Source="{Binding ImagePath}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/> | |
</Border> | |
<StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}"> | |
<TextBlock Text="{Binding Title}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextBlockStyle}" Height="60" Margin="15,0,15,0"/> | |
<TextBlock Text="{Binding Subtitle}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextBlockStyle}" TextWrapping="NoWrap" Margin="15,0,15,10"/> | |
<TextBlock Text="{Binding Descri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GridView.GroupStyle> | |
<GroupStyle> | |
<GroupStyle.HeaderTemplate> | |
<DataTemplate> | |
<Grid Margin="1,0,0,6"> | |
<Button Foreground="{StaticResource ApplicationHeaderForegroundThemeBrush}" | |
AutomationProperties.Name="Group Title" | |
Click="Header_Click" | |
Style="{StaticResource TextBlockButtonStyle}" > | |
<StackPanel Orientation="Horizontal"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DataTemplate> | |
<Grid Margin="1,0,0,6"> | |
<Button Foreground="{StaticResource ApplicationHeaderForegroundThemeBrush}" | |
AutomationProperties.Name="Group Title" | |
Click="Header_Click" | |
Style="{StaticResource TextBlockButtonStyle}" > | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition /> | |
<RowDefinition /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GridView.ItemsPanel> | |
<ItemsPanelTemplate> | |
<ItemsWrapGrid GroupPadding="0,0,70,0" Background="BlueViolet" /> | |
</ItemsPanelTemplate> | |
</GridView.ItemsPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj?.Foo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample1 | |
{ | |
public Sample1() | |
{ | |
IsTrue = true; | |
} | |
public bool IsTrue { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample1 | |
{ | |
public bool IsTrue { get; set; } = true; | |
} |