main
1<UserControl x:Class="solidware.financials.windows.ui.views.StockWatch" 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">
2 <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
3 <DockPanel>
4 <Button Command="{Binding Path=AddSymbol}" DockPanel.Dock="Left">Add Symbol</Button>
5 <Button Command="{Binding Path=Refresh}" DockPanel.Dock="Right">Refresh</Button>
6 </DockPanel>
7 <ListView ItemsSource="{Binding Path=Stocks}">
8 <ListView.ItemTemplate>
9 <DataTemplate>
10 <DockPanel HorizontalAlignment="Stretch">
11 <Label Content="{Binding Path=Symbol}" DockPanel.Dock="Left"></Label>
12 <Button Command="{Binding Path=AdditionalInformation}" DockPanel.Dock="Right">...</Button>
13 <Label Content="{Binding Path=Price.Value}" HorizontalAlignment="Right" HorizontalContentAlignment="Right" DockPanel.Dock="Right"></Label>
14 </DockPanel>
15 </DataTemplate>
16 </ListView.ItemTemplate>
17 </ListView>
18 </StackPanel>
19</UserControl>