Why WPF and compare WPF with Winforms ? (WPF Interview question with answers)
Vložit
- čas přidán 27. 08. 2024
- For more such videos visit www.questpond.com
For more such videos subscribe www.youtube.co...
See our other Step by Step video series below :-
Learn C# Step by Step goo.gl/FNlqn3
Learn Design Pattern Step by Step:- goo.gl/eJdn0m
Learn Angular tutorial step by step tinyurl.com/yc...
Learn MVC Core step by step :- tinyurl.com/y9j...
Learn Azure Step by Step :- tinyurl.com/y6...
Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
Python Tutorial for Beginners:- • Python Tutorial for Be...
Learn Data Science in 1 hour :- tinyurl.com/y5...
Learn Power BI Step by Step:- tinyurl.com/y6...
Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
Learn SQL Server Step by Step tinyurl.com/ja4...
Learn Tableau step by step :- tinyurl.com/kh...
In this video we will try to understand Why WPF (windows presentation foundation) and How WPF is better than winforms.
The video explains how WPF is better than winform using ABCDEFG acronym.
A - Anywhere execution ( Windows or Web)
B - Bindings ( less coding)
C - Common look and feel ( resource and styles)
D - Declarative programming (XAML)
E - Expression blend animation ( Animation ease)
F - Fast execution ( Hardware acceleration)
G - Graphic hardware independent ( resolution independent)
We are also distributing a 100 page Ebook "Learn ASP.NET MVC 5 Step by Step". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on
questpond@questpond.com with the shared link and we will email you the PDF.
Do not miss our Interview Question video series
30 Important C# Interview Questions : czcams.com/video/BKynEBPqiIM/video.html
25 Important ASP.NET Interview Questions : czcams.com/video/pXmMdmJUC0g/video.html
25 Angular Interview Questions : czcams.com/video/-jeoyDJDsSM/video.html
5 MSBI Interview Questions : czcams.com/video/5E815aXAwYQ/video.html
I am starting a new Windows form application, but noticed that VS2015 also had the option for WPF. I have seen this for a few years now and didn't know what it was. Did a search on CZcams and this video came up. A great explanation of WPF and now I need to learn more! Thanks for this!
Excellent video!
26 minutes that are totally well-spent.
Best explanation I've heard on WPF... always wanted to know what the major differences were.
Thanks
This video is really awesome. Even school going kid could understand this video. Good Job. keep uploading such nice videos. I would never forget A B C D E F G :-)
The way you explains in so much depth, its awesome and worthy of the time.
C --> You can create common look and feel + functionality for Win Forms controls if you inherit them in a new class and customize it to your needs.
Great video! Time to make my first WPF program! I need to make a dashboard to display on a few TVs at the office and DIPs instead of pixels seems great!
In one short video are the benefits of WPF clearly explained. Next step is to use it in a real project. Look forward to see more explaining video's.
Excellent and convincing explanation. Thank you. Kindly keep up the good work. Would like to see more such basic videos.
Nice explanation on WPF basics with example... Thank You for sharing
I love you man for your brilliant explanation, learned so many things in first couple of minutes and all are crystal clear...
Thanks a lot man...
Thanks a lot, the steps ABCDEFG are very useful instead of remembering one by one when interviewer ask for the advantages over win forms. Nice video, short and sweet :-)
Agree with the other comments that this is an excellent video. It covers a lot of ground in a well explained and objective manner. Thinking about the features of WPF, I cant help but think that MS (or some forward thinking start-up) could have some sort of conversion tool that would take winform code(VB or C#) and convert it to XAML. Perhaps this already exists? And taking it a step further, why not build in various wizards into VS that would give many of the benefits of WPF to winform code?
Hi your Explanation is so DECENT and CALM ...
i ENJOY every word you utter
THANKS ALOT
there are binding in winforms as well and also you can select multiple controls and assign properties for all of them
Really great explanations. This gave a very concise yet informative overview, which is exactly what I was looking for. Thanks!
Super super super .. very nice explanation and clear voice.. please share the other lession ...
Thank You! I have been looking for a simple yet clear explanation and you did it...
Hello Your video is really awesome and your voice is also very clear and attractive on hole topics. Even school going kid could understand this video. I have one request to you Please keep uploading such nice videos in Hindi Also Please
Just think of the possibilities for creating desktop applications with realtime multiple GPU rendering via WPF! TThat means instead of faking what buttons look like with photoshop, you could use CAD to develop a UI with real buttons and lighting with lighting changes and real reflections.
Awesome video regarding WCF , gives broad concept regarding whole WCF.
Thanks for the great information, I was going to learn Win Forms but had heard MicroSoft was no longer supporting it and I should learn WPF instead. Looking forward to your other videos and thanks for taking the time to make them :-)
Really nice video... Learn lot off things from this video.....Please share link of next video please....
hi - thanks ...good video - please clarify - at about 14 mins you said "declarative" was the term you were describing - yet the video showed the term as being "directive" - so which is it ?
One of the best video on WPF. Thank you
Thanks for the video! This is a great explanation on why you should use Wpf instead if WinForms :)
the explanation is outstanding, really impressive :)
Thanks for the explaining the differences so well. WPF, here we go.
Very good! Informative, clear and well prepared. THANKS!
I like ur teaching style#confident n engaging
Good explanation, will start using WPF ;)
articulate a clear explanation - tnx very much!
Awesome man eagerly waiting for advance WPF videos.
Very Clear and concise.. Awesome!!
useful video...!! thanks a lot. It will be really thankful if you give the next lesson videos also.
Awesome video!! must watch for WPF beginners.
Thank you, very clear and detailed explanation.
very good presentation . really worth to see ..
Excellent, thank you for this comparison!
So nice of u...
Many many thanks!
That was gr88. Thank u Sir. Where can I get the videos for the questions given at the end of the video?
Visit www.questpond.com to get details on the same.
thank you so much for helpful knowledge. Can i use photoshop with wpf?
good video. Clear explanation.Thanks
All addressed Thanx.
Super Lecture!!!
Thank you
From my experience I would prefer write code as with code I can apply the same style to all the controls in one function which is prepared once, not just going manually and clicking bindings which is extremely non flexible if you want to change it.
I started wpf and I can add menu handlers in a few lines in code without going through all xaml declarations and bindings which sometimes throw unhelpful error messages.
true it is useful for styles, but the function sometimes more important than look.
window layouting is a nightmare the way it works is counterintuitive, you cannot render anything visible unless background is set to transparent, unassigned widths. And why docking panel works so weird I needed to manipulate setlastchildfill attribute depending on amount of children to make it behave consistently as expected but not in some weird manner.
Of course when you read a book and present how everything is nice and better, it is different business, although that is disconnected from reality.
I have spent 5 years with Winform, the only reason I like WPF is that there is a smoother animation than Winform.
I didn´t get difference between point B and D, it is seems to me like one point ? Btw: I just start learning about WPF and I did learn to do binding thru declarative programming in XAML code. And doesn´t know what else can I do in declarat. prog. yet?
It is true xaml is more flexible and adds more value in constructing a UI. One of the best advantages is being able to copy your xaml styles from one project to another and avoid a lot of rework.. However when you stated One must style each textbox or other control singly, that is not quite true. You can set many of the control properties by selecting all of a particular control and changing them in the properties dialog. for example I select all textboxes and change effect to sunken, they all change. I do this often. Not all properties are available to groups of controls, but most of the usual style properties are. You also have the option to plan ahead and style on of each control then make copies of it as you continue your layout, which is my habit of working.
All that being said, I believe xaml, wpf and expression blend are the best means of creating exciting applications going forward and that is mandatory as customers become more tech savvy. I have created some beautiful forms and controls in winforms, but I can now do even better in half the time in WPF. If you think about it WPF is Microsofts answer to having html type styling options for applications. Thanks for the good video, but always tell the whole truth.
Also , can you not create one text box in win forms and copy and paste it 30 times - will it not copy all properties besides name - I haven't checked but it seems like it would.
fordfiveohh I guess Rollin's mention is about the styles. What you mentioned is right that you can copy paste controls. But here you can create styles which are independent and then you can apply these styles wherever you want. (I have not explored WPF thats my belief) :)
You are correct JAY, since the style of a control is just a few lines of XAML code, copy and pasting code from one application to another is as simple and effective as dragging a control from the toolbox, except you can do more than one at ta time.
FIVE O, you can indeed copy a control as you said, but it is a full copy EVEN the name although if you were say too lazy to rename controls, you could write a macro to name them consecutively textbox1,2 etc.
Also, if you adopt the most popular naming conventions you will be able to copy code behind lines as well with minimal corrections. For example When I use a textbox for a customer form I ALWAYS name my textboxes the same. txtLastName. I never take shortcuts like lname, or lazily textbox1 etc. By adopting these conventions in all your code, I find my self doing very little corrections to get "build succeeded and that in itself is quite productive.
great explanation ..great efforts
Thanks for the great explanation
Awesome explanation!
There is no "WPF" Option in my Netbeans IDE, please help
Fantastic! Thank you.
Great description
awesome explanation... Thanx alot sir :)
Is it any way we can convert window form application into WPF ? OR is it possieble we can run windoform application in internet using WPF ?
Awesome job. Thank you.
Very nice explanation, thank you very much. :-)
Well done, thank you
one by one blip was epic
looks neat ... but why did they drop it
Excellent thanks
Nice video. Thanks!
Great Explanation! Many Thanks.
Really good video!!!
Cheers great intro for me.
gud one..........
thanks excelent video
really helpful!
Thank you very much but I closed the video at 0:49. Practice first.
great video,tnx man
I have a textbox, a button and a datagrid, so let say when i enter 4 in textbox and hit the button, i need to show 4 buttons on datagrid with names Button1 Button2 Button3 Button4 in wpf can anyone help me.
superb!!!
Awesome.
very nice '
WPF is NOT superior to Win Forms...
A. Win Forms is cross platform using mono (Mac, Linux Windows). WPF is Windows only until a cross platform implementation is created.
B. Binding is easier and faster using events (delegates)... You don't need WPF for this.
C. This is nothing more than poly-morphism... its not specific to WPF. Just make user controls that inherit others.
D. This is a personal preference... I HATE when code is created for me. I want to have complete access to everything.
E. Win Forms has OpenGL using OpenTK, which is again cross platform (Direct X is not).
F. THIS IS THE MAIN BENEFIT TO WPF OVER WIN FORMS. I can't argue it.
G. Pixel control is BETTER! Just make you own equations to convert from pixel to relative positioning. Win Forms give you more control.
I'm not saying WPF is bad... but I Win Forms are overall much better IMO.
Aaron Da Dev Win forms ARE cross platform using Mono as I said. You are incorrect.
Sure its a different library under the hood, but that's not the point and who cares. Coding a UI using Win Forms is DIRECTLY executable (without changing code or re-compiling) on mac and linux using Mono. As far as I'm aware, there is no cross-platform implementation for the WPF library. Until one is made (which probably won't happen anytime soon because WPF uses Direct3D), project written in WPF will NOT be portable to other operating systems.
You are getting off topic. It doesn't matter what is going on under the hood, the fact is: If I code a project using the Win Forms library, it can run on windows, mac, or linux without any modification to my code, because there is a cross platform implementation of Win Forms. Who cares what libraries they use under the hood. Go and try it for yourself. Make a Win Forms application, compile it, install mono on a linux/max environment, and run your Win Forms application on that environment. IT WILL RUN. I'VE DONE IT. You are trying to disprove me without even trying anything for yourself.
Aaron Da Dev I'm hope I'm not comming off as rude because I'm not trying to. I'm trying help you and people understand that WPF is a good library, but it is not necessarily better than Win Forms at this time.
chalz37 A binding is nothing more than an event handler so that when a value is changed, it will change all binded values. If you can't wrap your head around how simple that is, then feel free to call me a know it all.
visual studio 2012 and 2013 is made with WPF
good
damn good teaching
WPF != Windows Store App, right?
MrReynevan2 Yep right
MrReynevan2 No it isn't ... WPF is older and Window Store App (Universal App) was released later
Both use XAML :)
9:47 is not true. You can set at once in WinForms
so basically is better because better graphics?, serial port comunication and datagridview work i this forms?, man you only show visual effects
Really dam videos how can get more videos
there was directive programming...
chi charp
Web application if you cant run it in firefox or google chrome ? lel
Still cannot see why you need wpf, all the things can be done in web forms.
The only usage for wpf is to dev pc games.
All these animations can be done by flash.
No wonder ms is down the hill
aaaaaaaaalso 3,200th like
Too much accent
Max Vejay Well said. I do have a lot of accent issues when I talk but my American colleagues use to appreciate me because I am able to communicate what is really required. They dont care about the accent they care about the content :)
totally agree ,we should appreciate the effort and time taken to provide us with a good educational package by the way your english is much better than my attempts at learning german keep it up
Thanks for the great explanation..