PageAgentsList.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <Page x:Class="Demo.Pages.PageAgentsList"
  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:Demo.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageAgentsList">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="90"/>
  13. <RowDefinition/>
  14. </Grid.RowDefinitions>
  15. <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  16. <TextBox Width="300" Height="25" Name="TbSearch"></TextBox>
  17. <ComboBox Name="CbSort" Width="100" Height="25" Margin="20,0"></ComboBox>
  18. <ComboBox Name="CbFilter" Width="100" Height="25"></ComboBox>
  19. </StackPanel>
  20. <ListView Name="LVAgents" Grid.Row="1">
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <StackPanel Orientation="Horizontal">
  24. <Image Source="{Binding Logo}" Width="100" Margin="10,0"/>
  25. <StackPanel>
  26. <StackPanel Orientation="Horizontal">
  27. <TextBlock Text="{Binding AgentType.Title}"></TextBlock>
  28. <TextBlock Margin="7,0">|</TextBlock>
  29. <TextBlock Text="{Binding Title}"></TextBlock>
  30. </StackPanel>
  31. <TextBlock Name="TbSalesCount" Uid="{Binding ID}" Loaded="TbSalesCount_Loaded"></TextBlock>
  32. <TextBlock Text="{Binding Phone}"></TextBlock>
  33. <TextBlock Text="{Binding Priority, StringFormat={}Приоритетность: {0}}"></TextBlock>
  34. </StackPanel>
  35. </StackPanel>
  36. </DataTemplate>
  37. </ListView.ItemTemplate>
  38. </ListView>
  39. </Grid>
  40. </Page>