CustomerPanel.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <UserControl x:Class="PRSDesktop.CustomerPanel"
  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:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  7. xmlns:local="clr-namespace:PRSDesktop"
  8. mc:Ignorable="d"
  9. d:DesignHeight="300" d:DesignWidth="1000">
  10. <dynamicGrid:DynamicSplitPanel x:Name="SplitPanel" View="Combined" AnchorWidth="500" Anchor="Detail" MasterCaption="Customer List"
  11. DetailCaption="Customer Details" OnChanged="SplitPanel_OnChanged">
  12. <dynamicGrid:DynamicSplitPanel.Header>
  13. <Border BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke" Height="25">
  14. <Label Content="Customer List" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
  15. </Border>
  16. </dynamicGrid:DynamicSplitPanel.Header>
  17. <dynamicGrid:DynamicSplitPanel.Master>
  18. <local:CustomerGrid Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" x:Name="Customers" OnSelectItem="Customers_OnOnSelectItem" />
  19. </dynamicGrid:DynamicSplitPanel.Master>
  20. <dynamicGrid:DynamicSplitPanel.Detail>
  21. <dynamicGrid:DynamicTabControl x:Name="CustomerDetails" SelectionChanged="CustomerDetails_SelectionChanged"
  22. BorderThickness="0" Background="WhiteSmoke" >
  23. <dynamicGrid:DynamicTabItem x:Name="Contacts" Header="Contacts">
  24. <local:CustomerContactGrid x:Name="CustomerContacts" />
  25. </dynamicGrid:DynamicTabItem>
  26. <dynamicGrid:DynamicTabItem x:Name="Spreadsheets" Header="Spreadsheets">
  27. <local:CustomerSpreadsheetGrid x:Name="CustomerSpreadsheets" />
  28. </dynamicGrid:DynamicTabItem>
  29. <dynamicGrid:DynamicTabItem x:Name="Activities" Header="Activities">
  30. <local:CustomerActivityGrid x:Name="CustomerActivities" />
  31. </dynamicGrid:DynamicTabItem>
  32. <dynamicGrid:DynamicTabItem x:Name="Products" Header="Products">
  33. <local:CustomerProductGrid x:Name="CustomerProducts" />
  34. </dynamicGrid:DynamicTabItem>
  35. </dynamicGrid:DynamicTabControl>
  36. </dynamicGrid:DynamicSplitPanel.Detail>
  37. </dynamicGrid:DynamicSplitPanel>
  38. </UserControl>