public void Init(Service setService) { service = setService; viewModel = new ParticleEditorViewModel(service); DataContext = viewModel; AttachToUpdateEvents(); }