123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <Page x:Class="PRShelest.MainPage"
- 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:PRShelest"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="MainPage">
- <Page.Resources>
- <BitmapImage x:Key="defaultimage" UriSource="/Resources/picture.png"></BitmapImage>
- </Page.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="170"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
- <Image Source="/Resources/Приятный шелест.png" Width="60"></Image>
- <TextBlock VerticalAlignment="Center" Margin="20,0,0,0" FontSize="20">Приятный шелест</TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
-
- <TextBox Name="TBSearch" TextChanged="TBSearch_TextChanged" Width="400" Height="20" Margin="40,0,0,0"></TextBox>
- <StackPanel VerticalAlignment="Center" Margin="20,44,20,0">
- <ComboBox Name="CBSort" Width="150" Height="20"></ComboBox>
- <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
- <Button Name="btnSortUb" Click="btnSortUb_Click" Width="65">По убыв.</Button>
- <Button Name="btnSortVo" Click="btnSortVo_Click" Width="65" Margin="20,0,0,0">По возр.</Button>
- </StackPanel>
- </StackPanel>
-
- <ComboBox Name="CBFilt" SelectionChanged="CBFilt_SelectionChanged" Width="150" Height="20"></ComboBox>
- </StackPanel>
- <ListView Name="LVAgent" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel HorizontalAlignment="Center"></WrapPanel>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Width="400" Height="100" Padding="5" CornerRadius="5" BorderThickness="1" BorderBrush="#46B29D" Background="#C6D7FF" >
- <Grid>
- <StackPanel Orientation="Horizontal">
- <Image Width="70" Height="50" Source="{Binding Logo, TargetNullValue={StaticResource defaultimage}}"></Image>
- <StackPanel>
- <TextBlock Text="{Binding Header}"></TextBlock>
- <TextBlock Text="{Binding Phone}"></TextBlock>
- <TextBlock Text="{Binding Priority, StringFormat={}Приоритетность: {0}}"></TextBlock>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
-
-
-
- </ListView>
- </Grid>
- </Page>
|