lomoonmoonbird
Topic Author
Posts: 30
Joined: 15 Mar 2016, 04:41

Re: how to sync c# & xaml files between visual studio and un

05 Apr 2016, 04:21

Hi
Thanks for your explanation ,it makes me more clear.

By the way , what does [UserControlSource("Assets/TestControl.xaml")] means? is it an alternative way to support code-behind since Unity doesn't support code-behind?
#if NOESIS
[UserControlSource("Assets/TestControl.xaml")]
#endif
public class TestControl: UserControl
{
  //...
}
 
User avatar
sfernandez
Site Admin
Posts: 2984
Joined: 22 Dec 2011, 19:20

Re: how to sync c# & xaml files between visual studio and un

06 Apr 2016, 09:46

The UserControlSource attribute helps us identify which xaml we have to load when your UserControl is created and added to the interface. It is the way Noesis associates UserControl code-behind with its XAML contents, and it occurs the same when using native API instead of C# API and Unity.

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests