SummeryPlot.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="SummaryModule.Controls.SummeryPlot"
  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:SummaryModule.Controls"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary >
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="/UICommon;component/Resources.xaml"/>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Button Style="{StaticResource ClearButton}" Background="{StaticResource BorderBackgroundColor}" Command="{Binding ElementName=This, Path=Jump}" CommandParameter="{Binding ElementName=This, Path=JumpPara}">
  18. <Grid Margin="12">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition Height="8"/>
  22. <RowDefinition/>
  23. </Grid.RowDefinitions>
  24. <Grid >
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="auto"/>
  27. <ColumnDefinition Width="8"/>
  28. <ColumnDefinition/>
  29. </Grid.ColumnDefinitions>
  30. <Image Source="{Binding ElementName=This, Path=TitleImage}" Stretch="UniformToFill" Height="24"/>
  31. <TextBlock Grid.Column="2" Text="{Binding ElementName=This, Path=Title}" VerticalAlignment="Center" FontSize="16"/>
  32. </Grid>
  33. <ContentPresenter Grid.Row="2" Content="{Binding ElementName=This, Path=DisplayContent}"/>
  34. </Grid>
  35. </Button>
  36. </UserControl>