CroppedBitmap static resources not visible in Blend designer
Posted: 19 Dec 2021, 14:16
Hi
I'm using Texturepacker to pack sprites & output png/Xaml files such as this:
I then use that Croppedbitmap as a StaticResource, (Merged in via App.xaml) as part of a simple xaml window, for example :
This works fine when I run the Blend project & in Unity.
However the images do not appear in the Blend designer?
This makes Designing much slower than it needs to be.
Should I be able to see those images?
if so what is the trick to it?
thanks.
I'm using Texturepacker to pack sprites & output png/Xaml files such as this:
Code: Select all
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<BitmapImage x:Key="UIHUDAtlas" UriSource="UIHUDAtlas.png"/>
<CroppedBitmap x:Key="UIHUD 004" Source="{StaticResource UIHUDAtlas}" SourceRect="1,1,800,195"/>
<CroppedBitmap x:Key="UIHUD 002" Source="{StaticResource UIHUDAtlas}" SourceRect="1,198,800,170"/>Code: Select all
<Image
Width="800"
Height="195"
Source="{StaticResource UIHUD 004}">
</Image>However the images do not appear in the Blend designer?
This makes Designing much slower than it needs to be.
Should I be able to see those images?
if so what is the trick to it?
thanks.