private GetSourceUri ( Image image ) : |
||
image | Image | |
return |
private static Uri GetAbsoluteUri(Image image) { Uri relativeUri = AnimationBehavior.GetSourceUri(image); if (relativeUri == null) { return(null); } if (!relativeUri.IsAbsoluteUri) { Uri baseUri = new Uri(""); if (!(baseUri != null)) { throw new InvalidOperationException("Relative URI can't be resolved"); } relativeUri = new Uri(baseUri, relativeUri); } return(relativeUri); }