mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
Add chapter 9 sample code
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window
|
||||
x:Class="HardwareSupplies.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:HardwareSupplies"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wct="using:CommunityToolkit.WinUI.UI.Controls"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<wct:HeaderedContentControl Header="Hardware Inventory"
|
||||
Margin="6" x:Name="headerPanel">
|
||||
<wct:DropShadowPanel BlurRadius="8"
|
||||
ShadowOpacity="1"
|
||||
OffsetX="2"
|
||||
OffsetY="2"
|
||||
Color="Gray"
|
||||
IsMasked="True"
|
||||
Margin="6">
|
||||
<wct:DataGrid ItemsSource="{x:Bind HardwareItems}"
|
||||
AutoGenerateColumns="True"
|
||||
AlternatingRowBackground="{ThemeResource SystemControlBackgroundListLowBrush}"
|
||||
Background="{ThemeResource SystemControlBackgroundAltHighBrush}"/>
|
||||
</wct:DropShadowPanel>
|
||||
</wct:HeaderedContentControl>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user