DynamicContentDialog.xaml 1.2 KB

1234567891011121314151617181920212223
  1. <Window x:Class="InABox.DynamicGrid.DynamicContentDialog"
  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:InABox.DynamicGrid"
  7. mc:Ignorable="d" Height="450" Width="800"
  8. x:Name="Window">
  9. <DockPanel Margin="5">
  10. <DockPanel x:Name="Buttons" DockPanel.Dock="Bottom" LastChildFill="False">
  11. <Button x:Name="CancelButton" Click="CancelButton_Click"
  12. Content="Cancel"
  13. Margin="5,5,0,0" Padding="5" MinWidth="60"
  14. DockPanel.Dock="Right"/>
  15. <Button x:Name="OKButton" Click="OKButton_Click"
  16. Content="OK"
  17. Margin="5,5,0,0" Padding="5" MinWidth="60"
  18. DockPanel.Dock="Right"
  19. IsEnabled="{Binding ElementName=Window,Path=CanSave}"/>
  20. </DockPanel>
  21. <ContentPresenter x:Name="Presenter" DockPanel.Dock="Top" />
  22. </DockPanel>
  23. </Window>