Search found 1167 matches

by sfernandez
14 Dec 2017, 11:27
Forum: General Discussion
Topic: ProgressBar Orientation doesn't work?
Replies: 5
Views: 880

Re: ProgressBar Orientation doesn't work?

Vertical orientation progress bar template is not included in our defualt style, but you only have to define a ProgressBar template as explained here: http://www.noesisengine.com/forums/viewtopic.php?f=3&t=933#p5076, and then you can set it in your progress bar: <ProgressBar Template="{StaticResourc...
by sfernandez
12 Dec 2017, 18:45
Forum: General Discussion
Topic: Unity - Calling Thread (7600) doesn't have access to this object (6864) - Is this a bug?
Replies: 7
Views: 76

Re: Unity - Calling Thread (7600) doesn't have access to this object (6864) - Is this a bug?

I found the source of the problem. You have a static TextBlock field that is assigned during Unity's Preload thread. You can see that Unity itslef is complaining about some classes being accessed outside Main Thread: Assertion failed: Assertion failed on expression: 'Thread::CurrentThreadIsMainThrea...
by sfernandez
12 Dec 2017, 18:28
Forum: General Discussion
Topic: Strange font rendering problem.
Replies: 3
Views: 75

Re: Strange font rendering problem.

Try setting the FontFamily also for UserControl style in your resources and let me know if that fixes your problems. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ... <Style TargetType="{x:Type UserControl...
by sfernandez
12 Dec 2017, 11:57
Forum: General Discussion
Topic: NoesisException: Calling thread (7516) doesn't have access to this object (5556)
Replies: 5
Views: 137

Re: NoesisException: Calling thread (7516) doesn't have access to this object (5556)

I found the following in Unity forums: Monobehaviours can't have Constructors. The reason for this is that in Editor, to fill up the Inspector they get created/destroyed on a separate editor thread. This causes Unity threading issues primarily, but will also cause more strange issues because you can...
by sfernandez
12 Dec 2017, 11:31
Forum: General Discussion
Topic: NoesisException: Calling thread (7516) doesn't have access to this object (5556)
Replies: 5
Views: 137

Re: NoesisException: Calling thread (7516) doesn't have access to this object (5556)

Do you have any script that creates any Noesis UI element or resource as a static field? Something like this: public class TestBehavior: MonoBehavior { private static Noesis.TextBlock textBlock = new TextBlock(); ... } Because that will lead to Unity initializing that field during UnityPreload threa...
by sfernandez
11 Dec 2017, 16:57
Forum: General Discussion
Topic: Repeated Graphic (texture like, patern in inkscape)
Replies: 2
Views: 102

Re: Repeated Graphic (texture like, patern in inkscape)

Hi, Right now is not possible to use vector graphics to create a pattern brush. It can only be done using an image file and apply it to an ImageBrush with TileMode="Tile" and the appropriate Viewport. <Rectangle Width="400" Height="50" Stroke="Red" Margin="0,100,0,0"> <Rectangle.Fill> <ImageBrush Im...
by sfernandez
11 Dec 2017, 10:43
Forum: General Discussion
Topic: Unity XAML Editing at Runtime
Replies: 2
Views: 65

Re: Unity XAML Editing at Runtime

Hi, TextBlock exposes the Inlines property. It is a collection where you can add inline elements like Run , Span , LineBreak ... TextBlock txt = (TextBlock)FindName("txt"); txt.Inlines.Add(new Run { Text = "Hello", Foreground = Brushes.Red }); txt.Inlines.Add(new Run { Text = " World", Foreground = ...
by sfernandez
04 Dec 2017, 10:29
Forum: General Discussion
Topic: NoesisException: Calling thread (7516) doesn't have access to this object (5556)
Replies: 5
Views: 137

Re: NoesisException: Calling thread (7516) doesn't have access to this object (5556)

Hi, In NoesisGUI UI elements can only be accessed from the thread where they were created, and they should live in the same thread as the View where they are connected to. Could you please create a ticket in our bugtracker and attach your project files. This way we can help you figure out which elem...
by sfernandez
21 Nov 2017, 11:00
Forum: General Discussion
Topic: Unity Fonts Error
Replies: 3
Views: 145

Re: Unity Fonts Error

Hi, You should use FontFamily="Fonts/#Segoe UI" and FontWeight="Black" to select that font. We internally use FreeType to process font files and it seems that the library uses "Preferred Family" entry in .ttf 'name' table to fill the family name. In that particular font that value is "Segoe UI". Tak...
by sfernandez
17 Nov 2017, 10:12
Forum: General Discussion
Topic: BETA: NoesisGUI v2.1.0b10 (Unity, C++)
Replies: 41
Views: 2330

Re: BETA: NoesisGUI v2.1.0b4 (Unity)

Hi @ivan_b,

Could you please create a ticket in our bugtracker attaching the xaml file (not pasting the text in the ticket)?
This way we can analyze what is causing the xml parser to stop and show that error.

Thanks.