Search found 10 matches

by sericaer
29 Nov 2021, 09:46
Forum: General Discussion
Replies: 1
Views: 1056

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: 1411

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: 504

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: 504

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: 1491

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: 1491

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: 889

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...
by sericaer
28 Oct 2021, 05:04
Forum: General Discussion
Replies: 1
Views: 3717

Unity popup a warning dialog when import NoesisGUI

Waring dialog report: This project is using the new input system package but the native platform backends for the new input system are not enabled in the player settings.This means that no input from native devices will come through. Do you want to enable the backends? Doing so will*RESTART* the edi...
by sericaer
11 Oct 2021, 09:06
Forum: General Discussion
Replies: 1
Views: 1914

How to load xaml from StreamingAssets?

I want load xaml from StreamingAssets, so I try below code, which changed from Samples\Gallery\MainWindow.xaml.cs //string sampleName = string.Format("Assets/NoesisGUI/Samples/Gallery/Samples/{0}.xaml", _selectedSample.Name); //FrameworkElement sample = (FrameworkElement)Application.LoadCo...
by sericaer
10 Oct 2021, 15:54
Forum: General Discussion
Replies: 1
Views: 1629

When run the Sample/Gallery which in github, Unity report some errors.

Hello, When run the Sample/Gallery which in github, Unity report some errors. 1. Open the Samples\Gallery\Unity directory with Unity. 2. Install the NoesisGUI-Unity-3.1.1-Indie by Unity packageManager. 3. Run the Gallery.Scene. The scene is running, but Unity report some errors: [noesis] Dependency ...