-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from whistyun/fixldimg
Avoid image loading failures when an image is displayed in multiple places. #32
- Loading branch information
Showing
33 changed files
with
182 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
tests/MdXaml.Test/Out/core/Tests.Transform_givenImages1_generatesExpectedResult.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-16"?> | ||
<FlowDocument Style="{x:Null}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Paragraph>A remote <Image Tag="image" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/350x150" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>Images side by side <Image Tag="imageleft" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/0000FF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image><Image Tag="imageright" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image></Paragraph> | ||
<Paragraph>A remote <Image Tag="image" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/350x150" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>Images side by side <Image Tag="imageleft" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/0000FF" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image><Image Tag="imageright" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image></Paragraph> | ||
<Paragraph> | ||
<Image Tag="imageright" Width="1" Margin="0,0,0,0" ToolTip="cyan"> | ||
<Image.Source> | ||
<BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /> | ||
<BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="None" CacheOption="OnLoad" /> | ||
</Image.Source> | ||
</Image> | ||
</Paragraph> | ||
<Paragraph>A resource image <Image Tag="image" Width="701.6608276367188" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="pack://application:,,,/MdXaml.Test;Component/RscImg.png" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>. A local image <Image Tag="image" Width="384.1552734375" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="<assetpathroot>\ExtImg.png" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>A resource image <Image Tag="image" Width="701.6608276367188" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="pack://application:,,,/MdXaml.Test;Component/RscImg.png" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>. A local image <Image Tag="image" Width="384.1552734375" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="<assetpathroot>\ExtImg.png" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
</FlowDocument> |
8 changes: 4 additions & 4 deletions
8
tests/MdXaml.Test/Out/core/Tests.Transform_givenImages3_generatesExpectedResult.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-16"?> | ||
<FlowDocument Style="{x:Null}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Paragraph>A remote <Image Tag="image" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/350x150" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>Images side by side <Image Tag="imageleft" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/0000FF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image><Image Tag="imageright" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image></Paragraph> | ||
<Paragraph>A remote <Image Tag="image" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/350x150" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>Images side by side <Image Tag="imageleft" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/0000FF" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image><Image Tag="imageright" Width="1" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image></Paragraph> | ||
<Paragraph> | ||
<Image Tag="imageright" Width="1" Margin="0,0,0,0"> | ||
<Image.Source> | ||
<BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /> | ||
<BitmapImage BaseUri="{x:Null}" UriSource="http://placehold.it/100x150/00FFFF" CreateOptions="None" CacheOption="OnLoad" /> | ||
</Image.Source> | ||
</Image> | ||
</Paragraph> | ||
<Paragraph>A resource image <Image Tag="image" Width="701.6608276367188" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="pack://application:,,,/MdXaml.Test;Component/RscImg.png" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>. A local image <Image Tag="image" Width="384.1552734375" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriCachePolicy="BypassCache" UriSource="<assetpathroot>\ExtImg.png" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
<Paragraph>A resource image <Image Tag="image" Width="701.6608276367188" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="pack://application:,,,/MdXaml.Test;Component/RscImg.png" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>. A local image <Image Tag="image" Width="384.1552734375" Margin="0,0,0,0"><Image.Source><BitmapImage BaseUri="{x:Null}" UriSource="<assetpathroot>\ExtImg.png" CreateOptions="None" CacheOption="OnLoad" /></Image.Source></Image>.</Paragraph> | ||
</FlowDocument> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.