473,587 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Backgrounder needed. Why WPF

I have been through two books where they talk about the (almost)
parallel control set for WPF and VB. They go through the small
difference and talk about everything going on a form but what they don't
say is...

WHY WPF?

What did we get by having a (almost) parallel design palette. If the
features were so good, why not just fold them into the parallel controls
in VB?

This makes for another set of hundreds of things to remember and I can't
see the overriding benefit.

Possibly there is a White Paper on this somewhere or someone in the know
can say why. Wrox book talk about the what but not why this duality
came about.

Thanks for any help with this. I can't help but think that two
competing groups of designers got to load their almost identical but
incompatible stuff into the same IDE. Just seems odd to me. Anyone
else?

Mike

-----------------------------------------------------------

There are a variety of enhancements to the WPF Designer that are not
available in the Windows Forms Designer. These enhancements include:

Margin lines and stubs: Margin lines around each control indicate that a
margin has been set for that control. A margin stub indicates that no
margin has been set for that control edge.

Zoom control: The Zoom control appears in the upper-left corner of
Design view and allows the developer to zoom in or out on the design
surface to perform exact adjustments.

Snaplines: While snaplines appear in both the WPF Designer and the
Windows Forms Designer, in the WPF Designer they also display exact
values. In addition to displaying control alignment, snaplines also show
text alignment for text-based controls. For more information, see How
to: Align to Both Text Baselines and Margins.
Jun 27 '08 #1
3 1269
WPF is redesigned while Windows Forms still builds on the good old concepts
introduced years ago...

Examples of things allowed by this redesign in WPF are :

- rendering is "standardiz ed" so that an item rendered in a list box can be
whatever you want from text to images or even videos. It was previously more
complicated to create listboxes with custom elements

- the rendering tree doesn't stop at the control level, i.e. by customizing
the template for a control you can customize its appearance much more easily
than previously. For example if you have first a listbox of video names you
could customize the listbox to render it as a "video carrousel" but
technically speaking this is still a listbox

- improvements in layout capabilities, styling, sizing and countless others
(vector graphics, animations, transformations allowing to render non axis
aligned UIs etc...)

---
Patrice

<Ju********@hom e.neta écrit dans le message de groupe de discussion :
3t************* *************** ****@4ax.com...
I have been through two books where they talk about the (almost)
parallel control set for WPF and VB. They go through the small
difference and talk about everything going on a form but what they don't
say is...

WHY WPF?

What did we get by having a (almost) parallel design palette. If the
features were so good, why not just fold them into the parallel controls
in VB?

This makes for another set of hundreds of things to remember and I can't
see the overriding benefit.

Possibly there is a White Paper on this somewhere or someone in the know
can say why. Wrox book talk about the what but not why this duality
came about.

Thanks for any help with this. I can't help but think that two
competing groups of designers got to load their almost identical but
incompatible stuff into the same IDE. Just seems odd to me. Anyone
else?

Mike

-----------------------------------------------------------

There are a variety of enhancements to the WPF Designer that are not
available in the Windows Forms Designer. These enhancements include:

Margin lines and stubs: Margin lines around each control indicate that a
margin has been set for that control. A margin stub indicates that no
margin has been set for that control edge.

Zoom control: The Zoom control appears in the upper-left corner of
Design view and allows the developer to zoom in or out on the design
surface to perform exact adjustments.

Snaplines: While snaplines appear in both the WPF Designer and the
Windows Forms Designer, in the WPF Designer they also display exact
values. In addition to displaying control alignment, snaplines also show
text alignment for text-based controls. For more information, see How
to: Align to Both Text Baselines and Margins.

Jun 27 '08 #2
Why WPF?

It may be parallel for now, but prepare for it to surpass WinForms in the
near future. MS have clearly opted to invest into WPF, XAML, Silverlight,
XPS, and all the other new 3.5 technologies as heavily as they can (someone
at Adobe pissed them off maybe?) so in many respects it makes sense to start
investing into it yourself and get ahead of the game.

In terms of coding advantages, it makes the separation of the GUI from the
business logic a lot more clear cut, it actually makes more sense to define
a UI in markup rather than code, the presentation capabilities are
impressive, front end performance is generally better, customisation &
skinning of UI is a lot easier and more powerful, you can do more with
standard controls by editing templates without having to resort to creating
custom controls, and it makes conversion of an app from the desktop to the
web a lot simpler.

But, why *not* WPF...?

First off, despite the 1.0 moniker, it simply is not finished. Some
controls are missing, others don't support the full set of functionality
you've probably come to expect from doing WinForms development, and there's
a bit of a learning curve associated with it. I was all ready to start
coding a simple explorer style app until I realised that the TreeView
doesn't have a rootlines property, and to implement such a simple thing
manually required over a hundred lines of template modifying XAML that I
didn't really understand, and even then it didn't work perfectly. Ditto for
another app of mine that I wanted to rewrite in WPF - right up until I found
that the WebBrowser control and DateTime picker don't exist, and would
require WinForms interop.

If I were you, I'd invest the time in learning it now so that you're ready
and tooled up for later in the year when MS will *hopefully* fix these
shortcomings with an update.

-Alex

<Ju********@hom e.netwrote in message
news:3t******** *************** *********@4ax.c om...
>I have been through two books where they talk about the (almost)
parallel control set for WPF and VB. They go through the small
difference and talk about everything going on a form but what they don't
say is...

WHY WPF?

What did we get by having a (almost) parallel design palette. If the
features were so good, why not just fold them into the parallel controls
in VB?

This makes for another set of hundreds of things to remember and I can't
see the overriding benefit.

Possibly there is a White Paper on this somewhere or someone in the know
can say why. Wrox book talk about the what but not why this duality
came about.

Thanks for any help with this. I can't help but think that two
competing groups of designers got to load their almost identical but
incompatible stuff into the same IDE. Just seems odd to me. Anyone
else?

Mike

-----------------------------------------------------------

There are a variety of enhancements to the WPF Designer that are not
available in the Windows Forms Designer. These enhancements include:

Margin lines and stubs: Margin lines around each control indicate that a
margin has been set for that control. A margin stub indicates that no
margin has been set for that control edge.

Zoom control: The Zoom control appears in the upper-left corner of
Design view and allows the developer to zoom in or out on the design
surface to perform exact adjustments.

Snaplines: While snaplines appear in both the WPF Designer and the
Windows Forms Designer, in the WPF Designer they also display exact
values. In addition to displaying control alignment, snaplines also show
text alignment for text-based controls. For more information, see How
to: Align to Both Text Baselines and Margins.


Jul 12 '08 #3
Thanks. Nicely said.

The sticking point is, as you mentioned, that 1.0 is a fooler. Not
ready for prime time. Maybe next time around, it will be.

I finally found some stuff on it in a book. It is like learning yet
another new, full programming language. Everything changes. No longer
VB at all from the demo code I saw.

I am about to turn 61 and think I have learned my last full-blown new
language. I have learned a dozen of them (all listed on another thread)
and I think #13 may be my stopping point.

(tired)Mike

On Fri, 11 Jul 2008 23:00:19 -0500, in
microsoft.publi c.dotnet.langua ges.vb "Alex Clark"
<qu****@noemail .noemailwrote:
>Why WPF?

It may be parallel for now, but prepare for it to surpass WinForms in the
near future. MS have clearly opted to invest into WPF, XAML, Silverlight,
XPS, and all the other new 3.5 technologies as heavily as they can (someone
at Adobe pissed them off maybe?) so in many respects it makes sense to start
investing into it yourself and get ahead of the game.

In terms of coding advantages, it makes the separation of the GUI from the
business logic a lot more clear cut, it actually makes more sense to define
a UI in markup rather than code, the presentation capabilities are
impressive, front end performance is generally better, customisation &
skinning of UI is a lot easier and more powerful, you can do more with
standard controls by editing templates without having to resort to creating
custom controls, and it makes conversion of an app from the desktop to the
web a lot simpler.

But, why *not* WPF...?

First off, despite the 1.0 moniker, it simply is not finished. Some
controls are missing, others don't support the full set of functionality
you've probably come to expect from doing WinForms development, and there's
a bit of a learning curve associated with it. I was all ready to start
coding a simple explorer style app until I realised that the TreeView
doesn't have a rootlines property, and to implement such a simple thing
manually required over a hundred lines of template modifying XAML that I
didn't really understand, and even then it didn't work perfectly. Ditto for
another app of mine that I wanted to rewrite in WPF - right up until I found
that the WebBrowser control and DateTime picker don't exist, and would
require WinForms interop.

If I were you, I'd invest the time in learning it now so that you're ready
and tooled up for later in the year when MS will *hopefully* fix these
shortcomings with an update.

-Alex

<Ju********@ho me.netwrote in message
news:3t******* *************** **********@4ax. com...
>>I have been through two books where they talk about the (almost)
parallel control set for WPF and VB. They go through the small
difference and talk about everything going on a form but what they don't
say is...

WHY WPF?

What did we get by having a (almost) parallel design palette. If the
features were so good, why not just fold them into the parallel controls
in VB?

This makes for another set of hundreds of things to remember and I can't
see the overriding benefit.

Possibly there is a White Paper on this somewhere or someone in the know
can say why. Wrox book talk about the what but not why this duality
came about.

Thanks for any help with this. I can't help but think that two
competing groups of designers got to load their almost identical but
incompatible stuff into the same IDE. Just seems odd to me. Anyone
else?

Mike

-----------------------------------------------------------

There are a variety of enhancements to the WPF Designer that are not
available in the Windows Forms Designer. These enhancements include:

Margin lines and stubs: Margin lines around each control indicate that a
margin has been set for that control. A margin stub indicates that no
margin has been set for that control edge.

Zoom control: The Zoom control appears in the upper-left corner of
Design view and allows the developer to zoom in or out on the design
surface to perform exact adjustments.

Snaplines: While snaplines appear in both the WPF Designer and the
Windows Forms Designer, in the WPF Designer they also display exact
values. In addition to displaying control alignment, snaplines also show
text alignment for text-based controls. For more information, see How
to: Align to Both Text Baselines and Margins.

Jul 19 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2763
by: System | last post by:
Hello All, Redhat 9.0 Mysql 3.23.56 ==> Running I want to upgarde to 4.0.13 but this is the error it says: # rpm -Uvh MySQL-server-4.0.13-0.i386.rpm warning: MySQL-server-4.0.13-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: libmysqlclient.so.10 is needed by (installed) mod_auth_mysql-1.11-12
8
1599
by: Stephen | last post by:
I am trying to add some code to below to include a datatable and fill the datatable. The reason for doing this is so as I can check to see whether there are any rows returned by the stored procedure. If there are no records returned then this would give me an indicator and I can re-direct the page somewhere more appropriate. Well this is the...
13
1730
by: Joe Feldman | last post by:
This position is located in the South Bay Area in Northern California. If you are interested please send me your resume in a word .doc so that I can review it. If this does not look like a match, we have over 100 other open positions. Senior Member of Technical Staff/ Principal Engineer- Protocols Infrastructure
0
1789
by: Cindy B | last post by:
Please send your resume and position to Cindy@AtlanticResource.com! I CAN NOT accept candidates that ARE OUTSIDE OF THE US! NO PHONE CALLS PLEASE! Email your resume to me! Position:SQL SERVER/PEOPLESOFT DBA Date: 03/07/05 Location: Richmond, VA Duration: 5 month conract to hire Salary: 65,000-80,000K Contract to Hire 5 months
3
2252
by: Wade | last post by:
I would like to install the .Net 1.1 framework on a Web Server running W2K to be able to run ASP.NET files, but I'm not sure where to find the files I need for the .Net framework. I have ".NET Framework 1.1 Service Pack 1" (NDP1.1sp1-KB867460-X86.exe) and "ASP.NET Security Update for .NET Framework 1.1 SP1" (NDP1.1sp1-KB886903-X86.exe). ...
17
2330
by: dingoatemydonut | last post by:
The C99 standard states: "In the abstract machine, all expressions are evaluated as specified by the semantics. An actual implementation need not evaluate part of an expression if it can deduce that its value is not used and that no needed side effects are produced (including any caused by calling a function or accessing a volatile object)."...
5
1704
by: Steve | last post by:
Hi, I am sitting down to design our next set of internal apps. I would like to approach this in a way that would allow me to break logical parts of the application that handle specific tasks into modules. For example, assuming we have 4 main tasks to accomplish: - Printing - Editing - Viewing - Inventory Management
0
1469
by: ultradiv | last post by:
I have a VB.NET application partly built that produces an xml output (just a file at present) I have a .NET webserver and SQLserver 2000 I need to be able to send the xml to the webserver/database (some crunching is needed before the data is stored) The database (stored proc.) will reply with several small pieces of data which need to be...
28
1921
by: Ian Davies | last post by:
Hello I would appreciate some help from someone who has knowledge of working with css, php javascript and how they interact. Ive been working on a task for the last few days and have started to hit a brick wall. I need general advice on whether I m tackling the problem the correct way and some solutions for my current problems Ive posted...
37
2383
by: C_guy | last post by:
Does anyone know of a (hopefully free) tool that can traverse a project and determine which "#include"s are not needed or needed in every .C file? This would be helpful in removing header inclusions that are redundant and/or unnecessary. Thanks!
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.