DemoWindow.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Window x:Class="WpfDemo.DemoWindow"
  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"
  6. xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
  7. xmlns:local="clr-namespace:WpfDemo"
  8. xmlns:fr="clr-namespace:FastReport.Preview;assembly=FastReport.WPF"
  9. mc:Ignorable="d"
  10. Title="FastReport.WPF Demo" Width="1200" Height="800" WindowState="Maximized" Background="Gainsboro" Icon="fr-icon.ico" UseLayoutRounding="True">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="10"/>
  14. <ColumnDefinition Width="250"/>
  15. <ColumnDefinition Width="*"/>
  16. <ColumnDefinition Width="10"/>
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="70"/>
  20. <RowDefinition Height="25"/>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="10"/>
  23. </Grid.RowDefinitions>
  24. <StackPanel Orientation="Horizontal" Grid.Column="1">
  25. <Image Source="fr.png" Margin="4,0,0,0" HorizontalAlignment="Left" Width="40" Height="40"/>
  26. <TextBlock Text="" Margin="16,0,0,0" VerticalAlignment="Center">
  27. <Run Text="FastReport.WPF" FontFamily="Verdana" FontSize="20" FontWeight="Bold"/>
  28. <LineBreak/>
  29. <Run Text="Version"/>
  30. <Run Text="{Binding Version, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}"/><Run Text="" FontSize="14"/>
  31. </TextBlock>
  32. </StackPanel>
  33. <mwt:SystemDropShadowChrome Color="DarkGray" Margin="-8,-8,1,1" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2"/>
  34. <local:FilterControl x:Name="filter" SearchText="{Binding Filter, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/>
  35. <local:ReportsTreeView x:Name="reportsTree" ItemsSource="{Binding Categories}" Grid.Column="1" Grid.Row="2" BorderThickness="0" SelectedItemChanged="reportsTree_SelectedItemChanged"/>
  36. <fr:WpfPreviewControl x:Name="previewControl" UIStyle="Light" Buttons="All,Design" UseBackColor="True" BackColor="Gainsboro" ActivePageBorderColor="#7092BE" Grid.Column="2" Grid.Row="1" Grid.RowSpan="2"/>
  37. <local:DescriptionControl x:Name="description" Header="Description" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Margin="2"/>
  38. </Grid>
  39. </Window>