PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Mimir/Features/General/Pivot/View.xaml

#
XAML | 63 lines | 52 code | 11 blank | 0 comment | 0 complexity | 714fd1bd23a9221cb69a86ad40576b09 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <UserControl x:Class="Bifrost.Mimir.Features.General.Pivot.View"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Bifrost.Mimir.Features.General.Pivot" mc:Ignorable="d"
  6. d:DesignHeight="300"
  7. d:DesignWidth="400"
  8. xmlns:pivot="clr-namespace:System.Windows.Controls.Pivot;assembly=System.Windows.Controls.Pivot"
  9. DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=Pivot}"
  10. >
  11. <Grid x:Name="LayoutRoot">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="30"/>
  14. <RowDefinition Height="*"/>
  15. </Grid.RowDefinitions>
  16. <StackPanel Orientation="Horizontal" Grid.Row="0">
  17. <Button Content="Republish" Command="{Binding RepublishFilteredCommand}"/>
  18. <Button Content="Reload" Command="{Binding ReloadCommand}" Click="Button_Click"/>
  19. </StackPanel>
  20. <pivot:PivotViewer x:Name="_pivotViewer" Grid.Row="1" ItemsSource="{Binding Events}">
  21. <pivot:PivotViewer.ItemTemplates>
  22. <pivot:PivotViewerItemTemplate>
  23. <StackPanel Orientation="Vertical">
  24. <Grid>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="64"/>
  27. <ColumnDefinition Width="*"/>
  28. </Grid.ColumnDefinitions>
  29. <Image Source="/Bifrost.Mimir;component/Features/General/Pivot/Event.png" Grid.Column="0"/>
  30. <TextBlock FontSize="64" Text="{Binding LogicalEventName}" Grid.Column="1"/>
  31. </Grid>
  32. <Grid>
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition Width="32"/>
  35. <ColumnDefinition Width="*"/>
  36. </Grid.ColumnDefinitions>
  37. <Image Source="/Bifrost.Mimir;component/Features/General/Pivot/Occured.png" Grid.Column="0"/>
  38. <TextBlock FontSize="32" Text="{Binding Occured}" Grid.Column="1"/>
  39. </Grid>
  40. </StackPanel>
  41. </pivot:PivotViewerItemTemplate>
  42. </pivot:PivotViewer.ItemTemplates>
  43. <pivot:PivotViewer.PivotProperties>
  44. <pivot:PivotViewerStringProperty Id="Command" Options="CanFilter" Binding="{Binding CommandName}"/>
  45. <pivot:PivotViewerStringProperty Id="Event" Options="CanFilter" Binding="{Binding LogicalEventName}"/>
  46. <pivot:PivotViewerStringProperty Id="AggregatedRoot" Options="CanFilter" Binding="{Binding AggregatedRoot}"/>
  47. <pivot:PivotViewerStringProperty Id="Aggregated Id" Options="CanFilter" Binding="{Binding AggregatedId}"/>
  48. <pivot:PivotViewerDateTimeProperty Id="Occured" Options="CanFilter" Binding="{Binding Occured}"/>
  49. </pivot:PivotViewer.PivotProperties>
  50. </pivot:PivotViewer>
  51. </Grid>
  52. </UserControl>