﻿#if UNITY_5_3_OR_NEWER
#define NOESIS
#endif

namespace Alchemy.UI.Misc
{
    public class UserControl :
#if NOESIS
        Noesis.UserControl
#else
        System.Windows.Controls.UserControl
#endif
    {
#if NOESIS
        protected void InitializeComponent()
        {
            var filepath = $"Assets/Test/CustomRoot/{GetType().Name}.xaml";
            Noesis.GUI.LoadComponent(this, filepath);
        }
#endif
    }
}
