public Translate() { this.InitializeComponent(); speech = new SpeechSynthesizer(); mediaplayer = new MediaElement(); lstLanguages.ItemsSource = SpeechSynthesizer.AllVoices; lstLanguages.SelectedValuePath = "Language"; lstLanguages.SelectedValue = SpeechSynthesizer.DefaultVoice.Language; tr = new Translator(); lblResult.Text = instructions; Windows.System.Display.DisplayRequest dr = new Windows.System.Display.DisplayRequest(); dr.RequestActive(); }
private void Translato_Click(object sender, RoutedEventArgs e) { Translator trans = new Translator(); trans.okunanmetin = ImageText.Text; Frame.Navigate(typeof(Translate), trans); }