Files
TradeBlotter/Views/SECFilingView.xaml
2025-02-22 22:24:55 -05:00

55 lines
3.3 KiB
XML

<UserControl x:Class="TradeBlotter.Views.SECFilingView"
xmlns:dc="clr-namespace:TradeBlotter.UIUtils"
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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit">
<wpfx:BusyIndicator Name="BusyBar" IsBusy="{Binding Path=BusyIndicator}" BusyContent="{Binding Path=BusyContent}">
<Grid Background="LightGray">
<DockPanel>
<Grid Margin="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="110" />
<ColumnDefinition Width="6" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="3" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Vertical">
<Label Content="Watch List" HorizontalAlignment="Left" ></Label>
<ComboBox ItemsSource="{Binding Path=WatchListNames, Mode=OneTime}" SelectedItem="{Binding Path=SelectedWatchList, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{x:Null}" ></ComboBox>
<!--<Label Content="Symbol" HorizontalAlignment="Left" Target="{Binding ElementName=symbolLbl}" ></Label>-->
<Label Content="Symbol" HorizontalAlignment="Left"></Label>
<ComboBox x:Name="symbolCmb" ItemsSource="{Binding Path=Symbols, Mode=OneWay}" SelectedItem="{Binding Path=SelectedSymbol, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{x:Null}" >
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox>
<Label Content="Description" HorizontalAlignment="Left" Target="{Binding ElementName=descriptionLbl}" ></Label>
<ComboBox x:Name="formsCmb" ItemsSource="{Binding Path=FormNames, Mode=OneWay}" DisplayMemberPath="Value" SelectedIndex="{Binding Path=SelectedFormIndex,Mode=TwoWay}" Validation.ErrorTemplate="{x:Null}" ></ComboBox>
</StackPanel>
</Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="2" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label Content="{Binding Path=Title, Mode=OneWay}" HorizontalAlignment="Center" Target="{Binding ElementName=titleLbl}" FontSize="16" FontWeight="Bold" BorderThickness="1"></Label>
<WebBrowser Grid.Row="3" dc:BrowserBehavior.Html="{Binding Path=Document}"/>
</Grid>
</DockPanel>
</Grid>
</wpfx:BusyIndicator>
</UserControl>