Search found 5 matches

by jazza
31 Jan 2020, 05:53
Forum: General Discussion
Replies: 4
Views: 904

Re: Referencing vectors as a bindable resource

That sounds like a much better solution! Thanks!
by jazza
28 Jan 2020, 03:58
Forum: General Discussion
Replies: 4
Views: 904

Re: Referencing vectors as a bindable resource

I've managed to find a solution that allows me to clone the vector resource as follows. Noesis::Ptr<Noesis::BaseComponent> CloneResource(Noesis::FrameworkElement* resource) { // NOTE: This function assumes the following layout for each resource // <Canvas x:Key="Btn_A" Width="136" Height="136" x:Sha...
by jazza
27 Jan 2020, 08:11
Forum: General Discussion
Replies: 4
Views: 904

Referencing vectors as a bindable resource

I am currently trying to implement a view that displays a list of buttons based on bound data from an observable collection. The image for each button is defined in the application resource dictionary as follows. <Canvas x:Key="Btn_A" Width="136" Height="136" x:Shared="false"> <Path Fill="#ffffffff"...
by jazza
10 Jan 2020, 04:10
Forum: General Discussion
Replies: 7
Views: 1181

Re: NOESIS Samples - Localization and language specific fonts

Thanks for the prompt reply! I noticed the font family on the root window of the XAML after I wrote my post but still wasn't sure how NOESIS decided which one to use. It's alot clearer now so thank you. While we're on the topic of localisation, I am curious about whether my chosen approach is approp...
by jazza
09 Jan 2020, 01:28
Forum: General Discussion
Replies: 7
Views: 1181

NOESIS Samples - Localization and language specific fonts

Hi all, I am trying to understand how the NOESIS "Localization" example chooses a font to render a localised string. I can see that 'Main.cpp' lists Japanese and English fonts but I cannot see anything in the code that specifies which font to use based on the current language. Additionally, if my ga...