I have a library DLL, and a WPF test exe that depends on the said library. Here's the test exe:
using MyLibrary;
namespace WpfTest
{
public partial class Window2 : Window
{
private MyLibrary _mylib;
public Window2()
{
InitializeComponent();
this.Loaded += window2Loaded;
}
void window2Loaded(object sender, RoutedEventArgs e)
{
_mylib = new MyLibrary(this);
}
}
}
In the MyLibrary class (in the DLL), I have the following constructor:
public MyLibrary (System.Windows.Window window) // BREAKPOINT HERE.
{
...
At the breakpoint above, the debugger shows the TextBlock
(tb_mp) I want to access:
What do i need to do so that when I type window.tb_
in Visual Studio, IntelliSense will offer to complete it as window.tb_mp
?