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