MainWindow.xaml 1.3 KB

1234567891011121314151617181920
  1. <Window
  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:local="clr-namespace:CustomDesigner"
  7. xmlns:Design="clr-namespace:FastReport.Design;assembly=FastReport.WPF" x:Class="CustomDesigner.MainWindow"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Height="800" Width="1200" UseLayoutRounding="True">
  10. <DockPanel>
  11. <StackPanel Orientation="Horizontal" Height="40" DockPanel.Dock="Top">
  12. <Button Content="Open" Command="{Binding ElementName=designer,Path=cmdOpen}" Margin="10,10,5,10"/>
  13. <Button Content="Save" Command="{Binding ElementName=designer,Path=cmdSave}" Margin="5,10,5,10"/>
  14. <Button Content="New Page" Command="{Binding ElementName=designer,Path=cmdNewPage}" Margin="5,10,5,10"/>
  15. <Button Content="New Dialog" Command="{Binding ElementName=designer,Path=cmdNewDialog}" Margin="5,10,5,10"/>
  16. <Button Content="Delete Page" Command="{Binding ElementName=designer,Path=cmdDeletePage}" Margin="5,10,5,10"/>
  17. </StackPanel>
  18. <Design:WpfDesignerControl x:Name="designer"/>
  19. </DockPanel>
  20. </Window>