private void Render_Loaded(object sender, RoutedEventArgs e) { model = DataContext as RenderViewModel; timer.Tick += Timer_Tick; timer.Interval = TimeSpan.FromMilliseconds(33); timer.Start(); }
static RenderViewModel() { Instance = new RenderViewModel(); }