MYOBCompanyFileSelectionDialog.xaml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <Window x:Class="InABox.Poster.MYOB.MYOBCompanyFileSelectionDialog"
  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:InABox.Poster.MYOB"
  7. mc:Ignorable="d"
  8. Title="Select Company File:" Height="450" Width="800"
  9. x:Name="Window"
  10. Loaded="Window_Loaded">
  11. <Grid DataContext="{Binding ElementName=Window}">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <local:MYOBCompanyFileGrid x:Name="Grid" Grid.Row="0" Margin="5,5,5,0"
  17. OnSelectItem="Grid_OnSelectItem"/>
  18. <DockPanel Grid.Row="1" LastChildFill="False" x:Name="Buttons">
  19. <Button x:Name="CancelButton" Click="CancelButton_Click"
  20. Content="Cancel"
  21. Margin="5" Padding="5" MinWidth="60"
  22. DockPanel.Dock="Right"/>
  23. <Button x:Name="OKButton" Click="OKButton_Click"
  24. Content="OK"
  25. Margin="5,5,0,5" Padding="5" MinWidth="60"
  26. DockPanel.Dock="Right"
  27. IsEnabled="{Binding CanSave}"/>
  28. </DockPanel>
  29. </Grid>
  30. </Window>