Skip to content

Commit

Permalink
[fix] BaseJetImageLoaderConverter now has got hack for disable warnin…
Browse files Browse the repository at this point in the history
…g in xaml edition mode
  • Loading branch information
artem-zinnatullin committed Nov 8, 2013
1 parent 449063c commit 6b624b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions JetImageLoader/BaseJetImageLoaderConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ protected BaseJetImageLoaderConverter()

public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (System.ComponentModel.DesignerProperties.IsInDesignTool)
{
// hack to hide warning "Unable to determine application identity of the caller" in XAML editor
// no sideeffects in runtime on WP
return null;
}

Uri imageUri;

if (value is string)
Expand Down

0 comments on commit 6b624b1

Please sign in to comment.