Search found 60 matches

by asusralis
18 Jun 2019, 18:34
Forum: General Discussion
Replies: 2
Views: 1689

Trying to create a relative canvas

I wanted to create a canvas that has two attached properties that take a percentage of the canvas and put the element in that position. So, if a canvas is 400x400, and the XRatio and YRatio are 0.5, the element would be positioned at 200x200. protected override Size ArrangeOverride(Size arrangeSize)...
by asusralis
18 Jun 2019, 14:41
Forum: General Discussion
Replies: 5
Views: 1736

Performance hit from simple binding

I have a DateTime that I'm updating every frame, and it's surprisingly taking a lot of cpu time. Where it's updated: private void UpdateTime() { DeltaTime = TimeSpan.FromMinutes(Time.deltaTime * 4); _game.Player.Time += DeltaTime; } <TextBlock FontSize="30" Foreground="White" VerticalAlignment="Cent...
by asusralis
25 May 2019, 22:53
Forum: General Discussion
Replies: 7
Views: 1709

Re: [Unity] Problem building to Android on 2.2

Why exactly does this need to be done, though? I have a lot of different xamls - around 20 and growing. If I forget to add one, none of my builds won't work? That just seems like such a problem to keep continually checking and updating. Is it because, like you mention at the end of your reply, they'...
by asusralis
25 May 2019, 15:44
Forum: General Discussion
Replies: 7
Views: 1709

Re: [Unity] Problem building to Android on 2.2

That makes more sense, but I'm still confused. I have a navigation service that, when requested to load a 'page', which is just a UserControl in an xaml file, loads an xaml like this: control = (UserControl)Noesis.GUI.LoadXaml("PAGE.xaml"); Root.RegisterName(xamlName, control); Root.Children.Add(con...
by asusralis
23 May 2019, 17:54
Forum: General Discussion
Replies: 7
Views: 1709

Re: [Unity] Problem building to Android on 2.2

Does this have to be put in every xaml that references another? Or can I put all of them in my resource XAML?

Why exactly do you need to do this for every xaml? It seems odd I can't just load any xaml from resources and use it without registering it.
by asusralis
22 May 2019, 18:25
Forum: General Discussion
Replies: 7
Views: 1709

[Unity] Problem building to Android on 2.2

On 2.1, if I were to load an XAML from code, I had to put it in the "Preloaded" xamls in the Noesis settings. When I omitted this step, the xaml would not load on Android. On 2.2, I can't seem to find the preloaded list (which is great, because having to register each xaml asset file was terrible). ...
by asusralis
11 Apr 2019, 19:51
Forum: General Discussion
Replies: 1
Views: 171

Exception continuously being throw in Unity.

I'm trying to debug my code, but Noesis exceptions keep getting in the way. In Visual Studio I enabled all CLR exceptions (Exception Settings -> CLR Exceptions) so it's easier to debug my code, but Noesis exceptions are thrown every frame. They're all in NoesisView's UpdateVirtualKeys(). An example:...
by asusralis
21 Jan 2019, 00:28
Forum: General Discussion
Replies: 3
Views: 1733

Re: Two questions about fonts and text.

It seems I fixed #2 by pointing the fontfamily source to just Manrope? How the heck does it find the font file if it's called ManropeFamily?
by asusralis
20 Jan 2019, 23:59
Forum: General Discussion
Replies: 3
Views: 1733

Two questions about fonts and text.

1): It seems like, no matter what font I use, there is always extra space at the top. You can see it here and here . It looks the same way in Blend. The default Noesis seems to actually be centered: https://i.imgur.com/A2gjuwm.png https://i.imgur.com/bMxwIsu.png. Are all the fonts I'm using just not...