Search found 1628 matches

by sfernandez
Today, 16:08
Forum: General Discussion
Replies: 8
Views: 58

Re: QuestLog Example Creating Approximately 5KB of Garbage Each Frame

Hi @wittyeggnog, For next version we fixed some GC allocs generated during iteration of our collections due to an incorrect implementation of enumerators. But there are other allocs that are inherent to WPF architecture, for example the creation of event args when events are raised, or the boxing of...
by sfernandez
Yesterday, 23:26
Forum: General Discussion
Replies: 4
Views: 13

Re: Unable to change button font size

I tested the following xaml in Unity and the Button changes its size correctly: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib"> <Grid.Resources> <sys:Double x:Key="FontS...
by sfernandez
Yesterday, 23:18
Forum: General Discussion
Replies: 1
Views: 5

Re: Error Defining Thickness in Resource Dictionary?

This should work, I just verified it in our XamlPlayer and Unity:
<Thickness x:Key="ScreenMargin">20, 75, 20, 0</Thickness>
The other construct (specifying struct values as attributes) is not supported in Noesis.
by sfernandez
Yesterday, 13:19
Forum: General Discussion
Replies: 4
Views: 13

Re: Unable to change button font size

I tried the following xaml in our XamlPlayer to test different ways to define the FontSize and Button content and all behave as expected: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid.Resources> <Style x:Key="btn...
by sfernandez
16 Sep 2019, 16:45
Forum: General Discussion
Replies: 1
Views: 17

Re: Touch events not working for me in managed SDK

Connecting to TouchDown event in the ListView won't work if you have a ScrollViewer inside because the ScrollViewer will handle the event before it reaches the ListView. You will probably want to connect to PreviewTouchDown event instead. About touch events not working for the ScrollViewer, which pl...
by sfernandez
16 Sep 2019, 16:37
Forum: General Discussion
Replies: 7
Views: 64

Re: Multiple Inputs (Splitscreen)

The way I see it which won't require searching for duplicates and removing elements: MainWindow.xaml <Window> ... <Grid x:Name="MenuContainer"/> </Window> Menu.xaml <StackPanel> <Button.../> ... </StackPanel> When you only have 1 player: Ptr<Window> window = GUI::LoadXaml<Window>("MainWindow.xaml");...
by sfernandez
16 Sep 2019, 13:08
Forum: General Discussion
Replies: 4
Views: 29

Re: BitmapImage resources created from images in the filesystem cannot be deleted

We shouldn't Dispose/Close the stream because we are not the owners of that object, just consumers, we don't know if user wants to keep that stream open for other purposes. But it is not clear from the resource provider API when that stream is being used and when it can be safely released. We will t...
by sfernandez
13 Sep 2019, 08:48
Forum: General Discussion
Replies: 6
Views: 48

Re: Issues with manipulation events

Looking at the xaml I see what was the problem. InfoPanel grid has a TransformGroup as RenderTransform, but you are casting to MatrixTransform. You have to cast to TransformGroup and get the TranslateTransform from the Children to update the vertical offset. Although if you only want to translate th...
by sfernandez
12 Sep 2019, 16:12
Forum: General Discussion
Replies: 7
Views: 64

Re: Multiple Inputs (Splitscreen)

Great it finally worked, but there a couple of things I don't understand: after having interrogated the resultant windows and removing some of the unwanted (duplicate) elements. What do you mean about duplicate elements? It seems important that these Xaml do not know about each-other, as attaching t...
by sfernandez
12 Sep 2019, 09:35
Forum: General Discussion
Replies: 4
Views: 29

Re: BitmapImage resources created from images in the filesystem cannot be deleted

For textures stream is only used to load the texture data, once that is done we release it.
So in C#, when the garbage collector kicks in it should destroy the stream and free any lock that could be opened.
Is that not happening in your application?