public NewAudio()
        {
            InitializeComponent();

            _record = new CommandButtonAdapter(ApplicationBar.Buttons[0] as IApplicationBarIconButton, VM.Record);
            _playstop = new PlayStopButton(ApplicationBar, VM);
            _savedelete = new SaveDeleteButton(ApplicationBar, VM);
        }
        public NewVideo() {
            InitializeComponent();

            _Svc = new VideoService(this.viewfinderRectangle, this.videoPlayer);

            _record = new CommandButtonAdapter(ApplicationBar.Buttons[0] as IApplicationBarIconButton, _Svc.Record);
            _play = new CommandButtonAdapter(ApplicationBar.Buttons[1] as IApplicationBarIconButton, _Svc.Play);
            _stop = new CommandButtonAdapter(ApplicationBar.Buttons[2] as IApplicationBarIconButton, _Svc.Stop);
            _save = new SaveDeleteButton(
                this.ApplicationBar,
                VM);


            VM.VideoService = _Svc as IVideoService;
        }