(CreateArchive): disable OK button if no format is selected.

This commit is contained in:
morkt 2018-01-16 12:04:30 +04:00
parent 5e0240e176
commit 83fa7317c6

View File

@ -11,7 +11,7 @@
MinWidth="300">
<DockPanel VerticalAlignment="Top" Margin="10">
<StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal" Margin="20,20,0,0">
<Button Name="ButtonOk" Content="{x:Static s:guiStrings.ButtonOK}" Click="Button_Click" IsDefault="True" Width="70" Height="25" Margin="0,0,10,0"/>
<Button Name="ButtonOk" Content="{x:Static s:guiStrings.ButtonOK}" Click="Button_Click" IsDefault="True" Width="70" Height="25" Margin="0,0,10,0" IsEnabled="{Binding ElementName=ArchiveFormat, Path=SelectedItem.CanWrite}"/>
<Button Content="{x:Static s:guiStrings.ButtonCancel}" IsCancel="True" Width="70" Height="25" Margin="10,0,0,0"/>
</StackPanel>
<Grid DockPanel.Dock="Top">