Hi everybody,
I get this error message trying to set a background image for my WPF using Visual Basic in Visual Studio 2013 Express:
"An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '7' and line position '14'.
If there is a handler for this exception, the program may be safely continued."
Here is the XAML:
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="space.jpg"/>
</Grid.Background>
</Grid>
</Window>
I don't understand what's wrong...
I get this error message trying to set a background image for my WPF using Visual Basic in Visual Studio 2013 Express:
"An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '7' and line position '14'.
If there is a handler for this exception, the program may be safely continued."
Here is the XAML:
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="space.jpg"/>
</Grid.Background>
</Grid>
</Window>
I don't understand what's wrong...