2
Answers

Why we use WPF ? what benifit it gives when we use it for web application and windows application ?

Photo of naveen

naveen

14y
5.8k
1
Hi all ,

  Previously i was working with old win forms .net 2.0.Later
 
   I have used WPF for both my windows and web applications.Further
i have used WPF basic controls and NOT USED RICH OR ADVANCED WPF CONTROLS.

  But i dont know why i used wpf and what benefit i got ??

  I feel like only in front - end design part it is better to use wpf than old win forms.
  back-end coding there is only a very little different but concepts are same.i have studied in e-books that it improves hardware acceleration ,use 2d,3d graphics ..etc all those stuff other than what actually happens ?

  So can anyone tell me why we go for WPF ?, and
  What benefit i got in both web and windows application. ?
 
 thanks in advance

 

 

  

Answers (2)

0
Photo of Santhosh Kumar Jayaraman
NA 9.9k 2.3m 12y
try this

class Program
    {
        static void Main(string[] args)
        {
            char[,] arr = new char[4, 4];
            Console.WriteLine("enter 4 four charcter words in seperate lines.\nthat is press enter after each                 word");
            
            //saving in an 2D array
            for (int i = 0; i < 4; i++)
            {
                string str = Console.ReadLine();
                for (int j = 0; j < 4; j++)
                {                   
                    arr[i, j] = str[j];
                }
            }

            //displaying 2D array
            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    Console.Write("{0}\t", arr[i, j]);
                }
                Console.WriteLine();
            }
            Console.ReadLine();

        }
    }
0
Photo of Ehtesham
NA 1.3k 191k 12y
static void Main(string[] args)
        {
            char[,] arr = new char[4, 4];
            Console.WriteLine("enter 4 four charcter words in seperate lines.\nthat is press enter after each  word");

            //saving in an 2D array
            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    string str = Console.ReadLine();
                    arr[i, j] = str[0];

                }
            }

            //displaying 2D array
            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    Console.Write("{0}\t", arr[i, j]);
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }