12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <Page x:Class="Golyshev43p180322.ShowAgentPage"
- 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"
- xmlns:local="clr-namespace:Golyshev43p180322"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ShowAgentPage">
- <Page.Resources>
- <BitmapImage x:Key="defaulimage" UriSource="/Resources/picture.png"></BitmapImage>
- </Page.Resources>
-
- <Grid>
- <ScrollViewer>
- <StackPanel>
- <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <TextBox Width="350" Height="25" Name="TBTextFilter" TextChanged="TBTextFilter_TextChanged"></TextBox>
- <ComboBox Name="CBFilter" Width="150" Height="25" Margin="5,0,5,0" SelectionChanged="CBFilter_SelectionChanged"></ComboBox>
- <StackPanel Orientation="Vertical">
- <ComboBox Name="CBSort" Width="150" Height="25"></ComboBox>
- <Button Click="Button_Click">По возрастанию</Button>
- <Button Click="Button_Click_1">По убыванию</Button>
- </StackPanel>
- </WrapPanel>
- <StackPanel>
- <Button Name="btnAddNewAgent" Click="btnAddNewAgent_Click">Добавить агента</Button>
- </StackPanel>
- <ListView Name="LVAgent" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Center"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Padding="5" BorderThickness="1" BorderBrush="Black">
- <Grid Width="400" Height="150">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition Width="4*"></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Image Grid.Column="0" Source="{Binding Logo,TargetNullValue={StaticResource defaulimage}}" Width="60" Height="60"></Image>
- <StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Name="TBTypeTitle" Loaded="TBTypeTitle_Loaded" Uid="{Binding ID}" TextWrapping="Wrap"></TextBlock>
- <TextBlock Name="TBSellsPerYear" Loaded="TBSellsPerYear_Loaded" Uid="{Binding ID}"></TextBlock>
- <TextBlock Name="TBPhone" Text="{Binding Phone}"></TextBlock>
- <TextBlock Name="TBPriority" Text="{Binding Priority, StringFormat={}Приоритетность: {0}}"></TextBlock>
- <Button Name="btnChange" Click="btnChange_Click" Uid="{Binding ID}">Редактировать</Button>
- </StackPanel>
- <StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock Name="TBDiscount" Loaded="TBDiscount_Loaded" Uid="{Binding ID}"></TextBlock>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackPanel>
- </ScrollViewer>
- </Grid>
- </Page>
|