Мне нужен совет, как исправить эту ошибку:
Исключение:
"'Set property 'System.Windows.FrameworkElement.Margin' threw an exception.' Line number '6' and line position '31'."
InnerException:
"'12,10,599,Auto' is not a valid value for property 'Margin'."
Я не знаю, как это могло произойти, потому что я еще не касался XAML.Я использовал только конструктор.
Вот мой XAML (в свойствах нет "Auto"):
<Window x:Class="LinksGraph.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="774" Width="671" Closing="Window_Closing">
<Grid>
<Label Content="URL:" Height="28" Margin="12,10,599,0" Name="lURL" VerticalAlignment="Top" FontWeight="Bold" />
<Button Content="Start" Height="23" Margin="0,44,93,0" Name="btnStart" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="btnStart_Click" />
<ProgressBar Height="10" HorizontalAlignment="Left" Margin="12,0,0,46" Name="pbStatus" VerticalAlignment="Bottom" Width="625" />
<TextBox Height="23" Margin="56,10,107,0" Name="tbURL" VerticalAlignment="Top" />
</Grid>
</Window>
Спасибо за любой совет!