1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <Window x:Class="WpfApp1.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:WpfApp1"
- mc:Ignorable="d"
- Title="Главное окно" Height="450" Width="800" FontFamily="Monotype Corsiva" FontSize="18" Icon="Приятный шелест.ico">
- <Grid Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Label Content="Агенты" HorizontalAlignment="Center" FontSize="32"/>
- <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">
- <StackPanel>
- <Label Content="Поиск агентов" HorizontalAlignment="Center"/>
- <TextBox Name="TextBox_Name" KeyUp="TextBox_Name_KeyUp" Width="150"/>
- </StackPanel>
- <StackPanel>
- <Label Content="Сортировка" HorizontalAlignment="Center"/>
- <ComboBox Name="ComboBox_Sort" ItemsSource="{Binding sortList}" SelectionChanged="ComboBox_Sort_SelectionChanged" SelectedIndex="0"/>
- <Button Content="{Binding GetContentButtonSort}" Click="Button_Sort_Click" Width="150"/>
- </StackPanel>
- <StackPanel>
- <Label Content="Фильтрация" HorizontalAlignment="Center"/>
- <ComboBox Width="150"/>
- </StackPanel>
- <Image Width="50" Source="Приятный шелест.png" Margin="15, 0, 0, 0"/>
- </StackPanel>
- <ListView Name="ListView_Agent" Grid.Row="2" Height="auto" ItemsSource="{Binding AgentList}" MouseDoubleClick="DataView_MouseDoubleClick">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border>
- <WrapPanel>
- <Grid Height="175" Width="700">
- <Label Content="{Binding Product.GetCostWithDiscount}" HorizontalAlignment="Right"/>
- <StackPanel Orientation="Horizontal">
- <Image Source="{Binding GetImage}" Width="40"/>
- <StackPanel>
- <Label Content="{Binding GetTypeTitle}"/>
- <Label Content=""/>
- <Label Content="{Binding Phone}"/>
- <Label Content="{Binding GetPriority}"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </WrapPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <Button Content="Выйти" Click="Button_Exit_Click" Width="150" Grid.Row="3" HorizontalAlignment="Left"/>
- <Button Content="Добавить агента" Click="Button_Add_Click" Width="150" Grid.Row="3" HorizontalAlignment="Right"/>
- </Grid>
- </Window>
|