- lomoonmoonbird
- Posts: 30
- Joined:
Re: how to sync c# & xaml files between visual studio and un
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?
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?
Code: Select all
#if NOESIS
[UserControlSource("Assets/TestControl.xaml")]
#endif
public class TestControl: UserControl
{
//...
}
-
sfernandez
Site Admin
- Posts: 3183
- Joined:
Re: how to sync c# & xaml files between visual studio and un
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: JuanJe, MarioBarbero and 3 guests