I have this in MainWindow.xaml.cs:
public partial class MainWindow : Window { public double _frameCounter = 0;\\;
Very new to WPF and C
Try this: Application.Current.MainWindow._frameCounter
Application.Current.MainWindow._frameCounter
Application.MainWindow MSDN