I am having the following XAML code, which throws error following error pointing to line# 16.
the property \'Content\' is set more than once
The Content property is normally mapped to whatever is between the <X>
and </X>
tags, e.g.
<Control>
This stuff is set to the Content property
</Control>
But it can also be set like a normal property, e.g.
<Control Content="This stuff is set to the Content property" />
In your example you are doing both by setting the Content property on line 15 like a normal property and again on line 16 between the tags. I'm guessing you will want to get rid of the Content="Viewer" on line 15 to get the output you are looking for.
In line 15 you set the Content in the Attribute and in line 16 you have the Image as 2. content.