|
-
Oct 30th, 2014, 09:02 AM
#1
Thread Starter
New Member
Error setting background image in WPF using Visual Basic, Visual Basic Studio
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...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|