Search found 13 matches

  • 1
  • 2
by sericaer
17 Aug 2023, 07:38
Forum: General Discussion
Replies: 2
Views: 296

Unity is crashed when run Hello HelloWorld sampe

I Create a 3D Unity project by UnityHub, and install NoesisGUI package from the local path. Then import HelloWorld sampe, run it in UnityEditor, the Unity is crashed.

Unity version: 2022.1.6f1c1
NoesisGUI version: 3.2.1
by sericaer
21 Mar 2023, 15:22
Forum: General Discussion
Replies: 1
Views: 238

Unity Report error: Unknown type 'Array'

Unity Report error: Unknown type 'Array', Is NoesisGUI not support Array? <x:Array x:Key="stringArray" Type="sys:String"> <sys:String>Bear</sys:String> <sys:String>Bird</sys:String> <sys:String>Cat</sys:String> </x:Array> </UserControl.Resources> <ListBox ItemsSource="{Bindi...
by sericaer
06 Feb 2023, 07:54
Forum: General Discussion
Replies: 0
Views: 2832

How to change NoesisView.Xaml in Runtime?

Hi, I'm try to change the NoesisView.Xaml in runtime. I create a script and attach to the obj which has the NoesisView component. But the 'test.xaml' gui not show when project run. public class DynamicXmal : MonoBehaviour { void Awake() { var xaml = ScriptableObject.CreateInstance<NoesisXaml>(); xam...
by sericaer
29 Nov 2021, 09:46
Forum: General Discussion
Replies: 1
Views: 1370

How to parse a xaml which reference types from other dll ?

I want to develop a game support mod, in the mod there are xamls for GUI, and dlls for logic. for example, the xaml like this: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http...
by sericaer
23 Nov 2021, 07:39
Forum: General Discussion
Replies: 1
Views: 1999

The access modifier of FrameworkElement::OnApplyTemplate in NoesisGUI is different from System.Windows

In NoesisGUI the access modifier of FrameworkElement::OnApplyTemplate is 'protected', but in System.Windows, it is 'public'. I need add a Macros to override this method, this is so urgly. #if NOESIS protected override void OnApplyTemplate() #else public override void OnApplyTemplate() #endif { ... ....
by sericaer
18 Nov 2021, 02:47
Forum: General Discussion
Replies: 2
Views: 838

Re: Is there a plan to implement ParserContext?

Thanks for your reply! I have added a ticket.
https://www.noesisengine.com/bugs/view.php?id=2195
by sericaer
15 Nov 2021, 11:18
Forum: General Discussion
Replies: 2
Views: 838

Is there a plan to implement ParserContext?

I want to load image resource from a mod path, so I use flow code, which is run success in Blend. var pc = new ParserContext { BaseUri = new Uri(modPath + mod + "/", UriKind.Absolute) }; var viewComponent = XamlReader.Parse(xaml, pc) as FrameworkElement; return viewComponent; But ParserCon...
by sericaer
09 Nov 2021, 07:55
Forum: General Discussion
Replies: 3
Views: 2197

Re: How to Implement Image Button like Unity style?

Thank for you help! I change the xmal to show button content text. The text is show successful, but it locate at top right of button. And if the xaml is runned in Blend, the text locate at center of button. is this an issue? <UserControl x:Class="NoesisStudy.ButtonImage.MainView" xmlns=&qu...
by sericaer
08 Nov 2021, 15:08
Forum: General Discussion
Replies: 3
Views: 2197

How to Implement Image Button like Unity style?

I Create a button with a Background Image, Which is run Success. But When I Press the button, the Image is disappeared. I try it in Blend, the Image is also disappeared. so it is WPF style. But How to Implement Image Button like Unity style ? When press the button the image is dark, and when hover t...
by sericaer
03 Nov 2021, 08:52
Forum: General Discussion
Replies: 1
Views: 1148

Unity Log Error, When Swith TabItem which have a ListView

My xaml is there, just modify from a Hello World Blend project. <UserControl x:Class="NoesisStudy.NoesisStudyMainView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:noesis="clr-namespa...
  • 1
  • 2