PageAgentList.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <Page x:Class="Demo1.Pages.PageAgentList"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Demo1.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageAgentList">
  10. <Page.Resources>
  11. <BitmapImage x:Key="defaultimage" UriSource="\img\picture.png"></BitmapImage>
  12. </Page.Resources>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="50">
  16. </RowDefinition>
  17. <RowDefinition>
  18. </RowDefinition>
  19. </Grid.RowDefinitions>
  20. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center">
  21. <TextBox x:Name="TBSearch" Margin="0,0,10,0" Height="30" Width="300" >Введите для поиска</TextBox>
  22. <ComboBox Name="CBSort" Height="30" Width="150" Margin="0,0,10,0"></ComboBox>
  23. <ComboBox Name="CBFilter" Height="30" Width="150"></ComboBox>
  24. </StackPanel>
  25. <ListView Name="LVAgents" Grid.Row="1" HorizontalAlignment="Center" >
  26. <ListView.ItemTemplate>
  27. <DataTemplate>
  28. <Border BorderBrush="Black" BorderThickness="1" Width="800">
  29. <StackPanel Orientation="Horizontal" >
  30. <Image Margin="5,0,0,0" Width="100" Height="100" Source="{Binding Logo}"/>
  31. <StackPanel Orientation="Vertical" Margin="20">
  32. <TextBlock ><TextBlock Text="{Binding AgentType.Title}"></TextBlock>| <TextBlock Text="{Binding Title}"></TextBlock> </TextBlock>
  33. <TextBlock Name="TBSales_Count" Loaded="TBSales_Count_Loaded" Uid="{Binding ID}"></TextBlock>
  34. <TextBlock Text="{Binding Phone}"></TextBlock>
  35. <TextBlock Text="{Binding Priority, StringFormat={} Приоритет:{0}}"></TextBlock>
  36. </StackPanel>
  37. </StackPanel>
  38. </Border>
  39. </DataTemplate>
  40. </ListView.ItemTemplate>
  41. </ListView>
  42. </Grid>
  43. </Page>