[Unity] v1.2 UserControls
Posted: 05 Mar 2015, 05:03
Hey all,
I just upgraded to v1.2 and it seems there's a lot of undocumented changes to how UserControls work - Previously I was declaring a lot of controls like so:
as was recommended here.
However this seems to have changed -there's no longer a Noesis.Extended property, and the FindName() method doesn't accept a generic type (which seems like a flat downgrade?).
It'd really help if you could let me know the v1.2 method for creating and using UserControls!
I just upgraded to v1.2 and it seems there's a lot of undocumented changes to how UserControls work - Previously I was declaring a lot of controls like so:
Code: Select all
[Noesis.Extended]
[Noesis.UserControlSource("Assets/GUI/Controls/control.xaml")]
public class CustomUserControlTest : Noesis.UserControl {
public void OnPostInit()
{
someGridWithinTheControl = FindName<Grid>("ControlRootGrid");
buttonInTheControl= FindName<Button>("ControlButton");
...
However this seems to have changed -there's no longer a Noesis.Extended property, and the FindName() method doesn't accept a generic type (which seems like a flat downgrade?).
It'd really help if you could let me know the v1.2 method for creating and using UserControls!