I added a class file to my project. I want to be able to access all the form controls in the code behind (grid, textboxes, labels, etc...) but I don't have access to them like I do in the main. Do I need to reference the main in the added class? This is a WPF project!
I left out code to keep this post small:
namespace ClockMVC
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
    ClockViewModel model = new ClockViewModel();
    public MainWindow()
    {
        this.InitializeComponent();
    }
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
here is the class
namespace ClockMVC
{
class ClockViewModel : INotifyPropertyChanged
{
   // ClockViewModel model = new ClockViewModel();
    private readonly System.Timers.Timer _timer;
        public ClockViewModel()
        {
 
     
    