ConnectEvent not being called in Noesis 2.2.2 / .NET 4.6.1 / Windows x64?
Posted: 24 Apr 2019, 21:33
I recently noticed my breakpoint in ConnectEvent wasn't getting called, so,
I downloaded the latest tutorials from github and made only 1 change to "Buttons", which was to override ConnectEvent and set a break point when it's called:
... but ConnectEvent is never called (or at least my break point is never hit). Everything else seems to work fine in the example.
This is in Windows x64.
This was working previously, but I'm not sure when.
I downloaded the latest tutorials from github and made only 1 change to "Buttons", which was to override ConnectEvent and set a break point when it's called:
Code: Select all
namespace Buttons
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
this.Initialized += OnInitialized;
this.InitializeComponent();
}
#if NOESIS
private void InitializeComponent()
{
Noesis.GUI.LoadComponent(this, "MainWindow.xaml"); // My breakpoint here is hit
}
#endif
private void OnInitialized(object sender, EventArgs args)
{
this.DataContext = new ViewModel();
}
protected override bool ConnectEvent(object source, string eventName, string handlerName)
{
return base.ConnectEvent(source, eventName, handlerName); // I set my breakpoint here but it's not hit
}
}
}
This is in Windows x64.
This was working previously, but I'm not sure when.