123456789101112131415161718192021222324252627282930313233343536373839 |
- <Window x:Class="WpfDemo.DemoWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
- xmlns:local="clr-namespace:WpfDemo"
- xmlns:fr="clr-namespace:FastReport.Preview;assembly=FastReport.WPF"
- mc:Ignorable="d"
- Title="FastReport.WPF Demo" Width="1200" Height="800" WindowState="Maximized" Background="Gainsboro" Icon="fr-icon.ico" UseLayoutRounding="True">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="10"/>
- <ColumnDefinition Width="250"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="10"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="70"/>
- <RowDefinition Height="25"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Column="1">
- <Image Source="fr.png" Margin="4,0,0,0" HorizontalAlignment="Left" Width="40" Height="40"/>
- <TextBlock Text="" Margin="16,0,0,0" VerticalAlignment="Center">
- <Run Text="FastReport.WPF" FontFamily="Verdana" FontSize="20" FontWeight="Bold"/>
- <LineBreak/>
- <Run Text="Version"/>
- <Run Text="{Binding Version, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}"/><Run Text="" FontSize="14"/>
- </TextBlock>
- </StackPanel>
- <mwt:SystemDropShadowChrome Color="DarkGray" Margin="-8,-8,1,1" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2"/>
- <local:FilterControl x:Name="filter" SearchText="{Binding Filter, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/>
- <local:ReportsTreeView x:Name="reportsTree" ItemsSource="{Binding Categories}" Grid.Column="1" Grid.Row="2" BorderThickness="0" SelectedItemChanged="reportsTree_SelectedItemChanged"/>
- <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"/>
- <local:DescriptionControl x:Name="description" Header="Description" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Margin="2"/>
- </Grid>
- </Window>
|