blob: b6efa60f3aec910b5128150bee375b7e7031bc1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<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">
<StackPanel>
<DockPanel>
<Button Command="{Binding Path=AddSymbol}" DockPanel.Dock="Left">Add Symbol</Button>
<Button Command="{Binding Path=Refresh}" DockPanel.Dock="Right">Refresh</Button>
</DockPanel>
<ListView ItemsSource="{Binding Path=Stocks}">
<ListView.ItemTemplate>
<DataTemplate>
<DockPanel>
<Label Content="{Binding Path=Symbol}" DockPanel.Dock="Left" Width="90" ></Label>
<Label Content="{Binding Path=Price.Value}" DockPanel.Dock="Right" HorizontalAlignment="Right" HorizontalContentAlignment="Right"></Label>
<Button Command="{Binding Path=AdditionalInformation}">...</Button>
</DockPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
</UserControl>
|