I have some buttons in a WPF window. When I try to drag them, I get the following error in the dialog box:
Valuecannot be zero. parameter name current
I do not know how to handle this.
Here is my code:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Style="{DynamicResource MajourColoumnWidth}"/>
<ColumnDefinition Style="{DynamicResource MinourColoumnWidth}"/>
</Grid.ColumnDefinitions>
<Grid Name="ClinicalDetailsGrid1" >
<Grid.RowDefinitions>
<RowDefinition Style="{DynamicResource RowHeight1}"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Content="Save" Name="btnSave" Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center" VerticalContentAlignment="Center"
HorizontalAlignment="Center" Width="100" Height="20"/>
<Button Content="Bill Payment" Name="btnSave1" Grid.Row="0"
Grid.Column="1" VerticalAlignment="Center"
VerticalContentAlignment="Center" HorizontalAlignment="Center"
Width="100" Height="20"/>
</Grid>
</Grid>
source
share