Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2092
XamHtmlViewer and Relative Source URIs
posted

I would like to use relative URI for the XamHtmlViewer SourceUri property. Is this possible by any means? Currently I'm getting and InvalidOperationException when the viewer is trying to use the AbsoluteUri-property of the URI. 

{System.InvalidOperationException: This operation is not supported for a relative URI.
   at System.Uri.get_AbsoluteUri()
   at Infragistics.Controls.Interactions.XamHtmlViewer.SourcePropertyIsChanged()
   at Infragistics.Controls.Interactions.XamHtmlViewer.OnSourceUriPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Infragistics.Controls.Interactions.XamHtmlViewer.set_SourceUri(Uri value)
   at mycode....