Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <Page x:Class="ExpenseIt.ExpenseReportPage" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| mc:Ignorable="d" | |
| d:DesignHeight="350" d:DesignWidth="500" | |
| Title="ExpenseIt - View Expense Report"> | |
| <Grid> | |
| <!--<Snippet30>--> | |
| <!--Templates to display expense report data--> | |
| <Grid.Resources> | |
| <!-- Reason item template --> | |
| <DataTemplate x:Key="typeItemTemplate"> | |
| <Label Content="{Binding XPath=@ExpenseType}"/> | |
| </DataTemplate> | |
| <!-- Amount item template --> | |
| <DataTemplate x:Key="amountItemTemplate"> | |
| <Label Content="{Binding XPath=@ExpenseAmount}"/> | |
| </DataTemplate> | |
| </Grid.Resources> | |
| <!--</Snippet30>--> | |
| <Grid.Background> | |
| <ImageBrush ImageSource="watermark.png" /> | |
| </Grid.Background> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="230" /> | |
| <ColumnDefinition /> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto" /> | |
| <RowDefinition /> | |
| </Grid.RowDefinitions> | |
| <Label Grid.Column="1" Style="{StaticResource headerTextStyle}"> | |
| Expense Report For: | |
| </Label> | |
| <Grid Margin="10" Grid.Column="1" Grid.Row="1"> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition /> | |
| <ColumnDefinition /> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto" /> | |
| <RowDefinition Height="Auto" /> | |
| <RowDefinition /> | |
| </Grid.RowDefinitions> | |
| <!--<Snippet31>--> | |
| <!-- Name --> | |
| <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" Orientation="Horizontal"> | |
| <Label Style="{StaticResource labelStyle}">Name:</Label> | |
| <Label Style="{StaticResource labelStyle}" Content="{Binding XPath=@Name}"></Label> | |
| </StackPanel> | |
| <!-- Department --> | |
| <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Orientation="Horizontal"> | |
| <Label Style="{StaticResource labelStyle}">Department:</Label> | |
| <Label Style="{StaticResource labelStyle}" Content="{Binding XPath=@Department}"></Label> | |
| </StackPanel> | |
| <!--</Snippet31>--> | |
| <Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Left"> | |
| <!--<Snippet32>--> | |
| <!-- Expense type and Amount table --> | |
| <DataGrid ItemsSource="{Binding XPath=Expense}" ColumnHeaderStyle="{StaticResource columnHeaderStyle}" AutoGenerateColumns="False" RowHeaderWidth="0" > | |
| <DataGrid.Columns> | |
| <DataGridTextColumn Header="ExpenseType" Binding="{Binding XPath=@ExpenseType}" /> | |
| <DataGridTextColumn Header="Amount" Binding="{Binding XPath=@ExpenseAmount}" /> | |
| </DataGrid.Columns> | |
| </DataGrid> | |
| <!--</Snippet32>--> | |
| </Grid> | |
| </Grid> | |
| </Grid> | |
| </Page> |