I'm new to posting on stackoverflow and new to coding for the Microsoft Surface in C# - however I have inherited someone else's code to adapt.
I'm getting the following error when trying to set the source for a ByteTagVisualizationDefinition
'markup://1/file:///C:/Users/PJ/Documents/Visual Studio 2010/Projects/Rememo/Rememo/SurfaceWindow1.xaml%230/reminderTags.xaml' is not a valid value for property 'Source'.
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at
Microsoft.Expression.Platform.WPF.WpfDependencyPropertyImplementation.SetValue(Object target, Object valueToSet) at
Microsoft.Expression.DesignModel.Metadata.DependencyPropertyReferenceStep.SetValue(Object target, Object valueToSet) at
Microsoft.Expression.DesignModel.Core.InstanceBuilderOperations.SetValue(Object target, IProperty propertyKey, Object value) at
Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.ModifyValue(IInstanceBuilderContext context, ViewNode target, IProperty propertyKey, Object value, PropertyModification modification) at
Microsoft.Expression.DesignModel.InstanceBuilders.DependencyObjectInstanceBuilderBase`1.ModifyValue(IInstanceBuilderContext context, ViewNode target, IProperty propertyKey, Object value, PropertyModification modification) at
Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
Along with
Error 1 'markup://1/file:///C:/Users/PJ/Documents/Visual Studio 2010/Projects/Rememo/Rememo/SurfaceWindow1.xaml%230/reminderTags.xaml'
is not a valid value for property 'Source'. C:\Users\PJ\Documents\Visual Studio 2010\Projects\Rememo\Rememo\SurfaceWindow1.xaml
The code I have that is trying to access this source is :
<Grid Background="{StaticResource WindowBackground}">
<s:TagVisualizer>
<s:TagVisualizer.Definitions>
<s:ByteTagVisualizationDefinition Value="0xC0" Source="reminderTags.xaml" />
</s:TagVisualizer.Definitions>
</s:TagVisualizer>
When I compile the code and run it on the Surface Simulator it runs successfully - I have no idea why this error is showing? I was following a Microsoft Tutorial to get to this stage and am now at a bit of a loss as to what's wrong.