Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <Page x:Class="ExpenseIt.ExpenseItHome" | |
| 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="300" d:DesignWidth="300" | |
| Title="ExpenseIt - Home"> | |
| <Grid Margin="10,0,10,10"> | |
| <!--<Snippet21>--> | |
| <Grid.Resources> | |
| <!--</Snippet21>--> | |
| <!--<Snippet23>--> | |
| <!-- Expense Report Data --> | |
| <XmlDataProvider x:Key="ExpenseDataSource" XPath="Expenses"> | |
| <x:XData> | |
| <Expenses xmlns=""> | |
| <Person Name="Mike" Department="Legal"> | |
| <Expense ExpenseType="Lunch" ExpenseAmount="50" /> | |
| <Expense ExpenseType="Transportation" ExpenseAmount="50" /> | |
| </Person> | |
| <Person Name="Lisa" Department="Marketing"> | |
| <Expense ExpenseType="Document printing" | |
| ExpenseAmount="50"/> | |
| <Expense ExpenseType="Gift" ExpenseAmount="125" /> | |
| </Person> | |
| <Person Name="John" Department="Engineering"> | |
| <Expense ExpenseType="Magazine subscription" | |
| ExpenseAmount="50"/> | |
| <Expense ExpenseType="New machine" ExpenseAmount="600" /> | |
| <Expense ExpenseType="Software" ExpenseAmount="500" /> | |
| </Person> | |
| <Person Name="Mary" Department="Finance"> | |
| <Expense ExpenseType="Dinner" ExpenseAmount="100" /> | |
| </Person> | |
| </Expenses> | |
| </x:XData> | |
| </XmlDataProvider> | |
| <!--</Snippet23>--> | |
| <!--<Snippet24>--> | |
| <!-- Name item template --> | |
| <DataTemplate x:Key="nameItemTemplate"> | |
| <Label Content="{Binding XPath=@Name}"/> | |
| </DataTemplate> | |
| <!--</Snippet24>--> | |
| <!--<Snippet22>--> | |
| </Grid.Resources> | |
| <!--</Snippet22>--> | |
| <Grid.Background> | |
| <ImageBrush ImageSource="watermark.png" /> | |
| </Grid.Background> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="230" /> | |
| <ColumnDefinition /> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition/> | |
| <RowDefinition Height="Auto"/> | |
| <RowDefinition /> | |
| <RowDefinition Height="Auto"/> | |
| </Grid.RowDefinitions> | |
| <!-- People list --> | |
| <Label Grid.Column="1" Style="{StaticResource headerTextStyle}" > | |
| View Expense Report | |
| </Label> | |
| <Border Grid.Column="1" Grid.Row="1" Style="{StaticResource listHeaderStyle}"> | |
| <Label Style="{StaticResource listHeaderTextStyle}">Names</Label> | |
| </Border> | |
| <!--<Snippet25>--> | |
| <ListBox Name="peopleListBox" Grid.Column="1" Grid.Row="2" | |
| ItemsSource="{Binding Source={StaticResource ExpenseDataSource}, XPath=Person}" | |
| ItemTemplate="{StaticResource nameItemTemplate}"> | |
| </ListBox> | |
| <!--</Snippet25>--> | |
| <!-- View report button --> | |
| <Button Grid.Column="1" Grid.Row="3" Click="Button_Click" Style="{StaticResource buttonStyle}">View</Button> | |
| </Grid> | |
| </Page> | |