Search found 14 matches

  • 1
  • 2
by simonb
22 Dec 2021, 17:41
Forum: General Discussion
Replies: 2
Views: 46

Re: CroppedBitmap static resources not visible in Blend designer

ah ok thanks.
Will work around it using Placeholder rects for now :)
by simonb
19 Dec 2021, 14:16
Forum: General Discussion
Replies: 2
Views: 46

CroppedBitmap static resources not visible in Blend designer

Hi I'm using Texturepacker to pack sprites & output png/Xaml files such as this: <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...
by simonb
01 Dec 2021, 22:28
Forum: General Discussion
Replies: 4
Views: 4194

Re: Static Members / Singleton class

Ah never mind, figured it out.

That approach does work in Noesis/Unity but not in Blend were I was trying to test it.
Needed to ifdef it & make "Translate" a straightforward Singleton class in the WPF application.

thanks for the help :)
by simonb
01 Dec 2021, 19:35
Forum: General Discussion
Replies: 4
Views: 4194

Re: Static Members / Singleton class

Hi Sergio, thanks for the work around. I have added the dependency object as written, but when I try and access it in XAML using my code above VS gives the following error: 'Translate' type must derive from DependencyObject. I tried having Translate inherit from Dependency object but it wont let me ...
by simonb
28 Nov 2021, 21:15
Forum: General Discussion
Replies: 4
Views: 4194

Static Members / Singleton class

Hi guys any update on 1305 I'm trying to see if its possible to use a Singleton class to easily import and deal with a huge amount of localised text in a dictionary using some thing like: Content="{Binding Source={x:Static local:Translate.Instance}, Path=GameTexts[TXT_EXAMPLE_KEY]} It's a simple app...
by simonb
28 Nov 2021, 19:14
Forum: General Discussion
Replies: 7
Views: 1364

Re: Problem loading ImageSource in Unity

Great that works well, thanks.
by simonb
09 Nov 2021, 14:02
Forum: General Discussion
Replies: 7
Views: 1364

Re: Problem loading ImageSource in Unity

ah will try that.
Many thanks :)
by simonb
02 Nov 2021, 13:28
Forum: General Discussion
Replies: 7
Views: 1364

Re: Problem loading ImageSource in Unity

OK - thanks for the info, will go and have a re-think :)
by simonb
02 Nov 2021, 13:27
Forum: General Discussion
Replies: 7
Views: 1364

Re: Problem loading ImageSource in Unity

OK - thanks for the info, will go and have a re-think :)
by simonb
31 Oct 2021, 14:11
Forum: General Discussion
Replies: 7
Views: 1364

Re: Problem loading ImageSource in Unity

After spending more time looking over your samples, I guess the answer is that it is just not possible to load an image from Unity in this way ? All the samples seem to duplicate the ViewModel, one for blend and then another that does exactly the same thing but in a 'Unity' flavour (using a Texture2...
  • 1
  • 2