PoshCode Archive  Artifact Content

Artifact 27e605847a1b618a6d51326840ce363ec477bd58c4f269f50c433f1fb664063e:

  • File wpf-datagrid-xaml.ps1 — part of check-in [959c686d73] at 2018-06-10 13:07:53 on branch trunk — Datagrid Xaml layout needed for Boots DataGrid binding example http://poshcode.org/2259 (user: foureight84 size: 1259)

# encoding: ascii
# api: xml
# title: wpf datagrid xaml
# description: Datagrid Xaml layout needed for Boots DataGrid binding example http://poshcode.org/2259
# version: 18.667
# author: foureight84
# license: CC0
# x-poshcode-id: 2260
# x-archived: 2016-12-03T09:40:16
# x-published: 2010-09-21T16:16:00
#
# Requires .Net 4, or Wpftoolkit if you don’t have .Net 4
#
<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Name="Window"
	Title="DataGrid Binding"
	Width="640" Height="480">
	<Grid >
		<TextBlock Height="24" Margin="8,8,8,0" TextWrapping="Wrap" Text="DataGrid" VerticalAlignment="Top" FontSize="18.667" FontFamily="Arial" FontWeight="Bold"/>
		<DataGrid HorizontalAlignment="Left" Margin="8,82,0,8" Width="240" Name="HadesDevices" AutoGenerateColumns="True">
			<DataGrid.Columns>
				<DataGridTextColumn Binding="{Binding Path=DeviceGroup}" Header="Manufacturer"></DataGridTextColumn>
				<DataGridTextColumn Binding="{Binding Path=Device}" Header="Model"></DataGridTextColumn>
				<DataGridTextColumn Binding="{Binding Path=Platform}" Header="Platform"></DataGridTextColumn>
			</DataGrid.Columns>
		</DataGrid>
	</Grid>
</Window>