Question: I am using WPF Form Application C # programming language. I have MVC (Model-View-Controller) homework. I did Model-View. I couldn't do the controller. I got

I am using WPF Form Application C # programming language. I have MVC (Model-View-Controller) homework. I did Model-View. I couldn't do the controller. I got two errors on the "MainWindow.cs" page.

Both errors are "Controller".

Where I get errors;

*** I got a "Controller" error on the "MainWindow.cs" page.

ERROR: 'Controller' is a namespace element but used as a type.

I am using WPF Form Application C # programming language. I have

MVC (Model-View-Controller) homework. I did Model-View. I couldn't do the controller. Igot two errors on the "MainWindow.cs" page. Both errors are "Controller". Where

I want the screen output as in the picture below. BUT must be created by applying MVC(Model-View-Controller). Just Controller.

I get errors; *** I got a "Controller" error on the "MainWindow.cs"

I would be glad if you solve minor mistakes. Thank you from now.

Save_Click(object sender, RoutedEventArgs e) 4 5 8 9 Controller.cs* MainWindow.cs* - X MainWindow.xaml C# FindingSourceElement FindingSourceElement. MainWindow 1 @// // Copyright (c) Microsoft. All rights reserved. 2 II/ Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 Qusing System; using System.Windows; 6 using System.Windows.Controls; 7 using FindingSourceElement.Views; using FindingSourceElement Presenter; using FindingSourceElement.Controller; 10 (using FindingSourceElement. Models; 11 12 13 namespace FindingSourceElement 14 15 ///

16 Interaction logic for MainWindow.xaml 17 /// 2 bavuru 18 public partial class MainWindow : Window, IRectangle 19 { 20 Controller _controller; 21 O bavuru 22 public MainWindow() 23 24 InitializeComponent(); 25 26 ekranciktisi.Text = ""; 27 istekyaz.Text = ""; 28 29 30 _controller = new Controller(); 31 32 1 bavuru 33 private void Save_Click(object sender, RoutedEventArgs e) 34 { 35 _controller.SaveData(istekyaz.Text); 36 ekranciktisi.Text = _controller.DataToDisplay(); 37 } 2 bavuru 38 E public string LengthText 39 { FindingSourceElement.Controller.Controller allData Controller.cs* = x MainWindow.cs* MainWindow.xaml C# FindingSourceElement using System; using System.Windows; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Text; 6 using System. Threading.Tasks; 7 8 namespace FindingSourceElement.Controller 9 1 bavuru 10 class Controller 11 { 12 List allData; 13 O bavuru 14 public Controller() 15 { 16 _allData = new List(); 17 18 O bavuru 19 internal void SaveData(string data) 20 { 21 _allData.Add(data); 22 23 O bavuru 24 public string DataToDisplay() 25 { 26 string returnData = ""; 27 foreach (string s in _allData) 28 29 returnData += 5 + " "; 30 31 return returnData; 32 33 34 35 36 MainWindow loudspeaker Save Text noget

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!