search
Twitter Rss Feeds
MicrosoftArticlesForumsGroups
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml/Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsGroups
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsGroups
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsGroups
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsGroups
Microsoft Excel
Microsoft Word
Microsoft Powerpoint
Publisher
Money

Operating SystemsArticlesForumsGroups
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsGroups
Share Point
BizTalk
Site Server
Exhange Server
IIS
Transaction Server

Graphic DesignArticlesForumsGroups
Macromedia Flash
Adobe PhotoShop
Microsoft Expression

OtherArticlesForumsGroups
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Reviews
Search Engines
Resumes

 

Previous Thread:   Rotate3dAnimate and OffsetAnimate not working properly together

8/8/2005 9:05:12 AM    Re: Declarative forms using Xaml
DESIGNER WRITTEN CODE:  
  
</Window.Resources>  
  
<Style x:Key="LinkButton" TargetType="{x:Type Button}">  
  
<Setter Property="Template">  
  
<Setter.Value>  
  
<ControlTemplate>  
  
<TextBlock  
  
Foreground="Blue"><Underline>  
  
<ContentPresenter />  
  
</Underline></TextBlock>  
  
</ControlTemplate>  
  
</Setter.Value>  
  
</Setter>  
  
</Style>  
  
<//Window.Resources>  
  
DEVELOPER CODE:  
  
<Button Style="{StaticResource LinkButton}"  
  
Click="DeveloperFunctionHere">Button Title</Button>  
  
Code-Behind Handler code...  
  
------------------------------------------------------------------  
  
In the above, the designer can do whatever they want to with the visual  
  
style, and it won't have any effect on the code-behind. They can even go  
  
as far as to use triggers, animation timelines, and many other things to  
  
provide a unique look, feel, & reaction to whatever they want...with no  
  
effect on the code-behind or event handling.  
  
-----Original Message-----  
  
From: Graham Allwood [mailto:gravy@newsgroups.nospam]  
  
Posted At: Monday, August 08, 2005 6:58 AM  
  
Posted To: microsoft.public.windows.developer.winfx.avalon  
  
Conversation: Declarative forms using Xaml  
  
Subject: Declarative forms using Xaml  
  
Hi all,  
  
I have been doing a bit of thinking around declarative forms using Xaml  
  
and  
  
I can't seem to get my head around one issue (I'm sure there will be  
  
more  
  
though!!).  
  
I thought the idea behind Xaml was that the UI design and the UI Code is  
  
separated thus allowing a graphics designer / artist to play around with  
  
the  
  
look of the form and the developer to concentrate on code behind. Based  
  
on  
  
this assumption I was thinking: How would the button handlers be dealt  
  
with?  
  
Take for example a button on a page. The developer would write a click  
  
handler for the button. Now, when the graphics designers seems the form,  
  
they decide that rather than a button being used, they want to use a  
  
LinkButton. A standard button and a link button have different delecate  
  
types, so now the link button click event could not be handled by the  
  
original click event the developer provided.  
  
Are they some fundamentals I'm missing? Or is it expected that once a  
  
graphics designer 'gets they hands' on the UI it will no longer work  
  
with  
  
the code behind?  
  
Thanks for any advice  
  
Graham

8/8/2005 11:58:01 AM    Declarative forms using Xaml
Hi all,  
  
I have been doing a bit of thinking around declarative forms using Xaml and  
  
I can't seem to get my head around one issue (I'm sure there will be more  
  
though!!).  
  
I thought the idea behind Xaml was that the UI design and the UI Code is  
  
separated thus allowing a graphics designer / artist to play around with the  
  
look of the form and the developer to concentrate on code behind. Based on  
  
this assumption I was thinking: How would the button handlers be dealt with?  
  
Take for example a button on a page. The developer would write a click  
  
handler for the button. Now, when the graphics designers seems the form,  
  
they decide that rather than a button being used, they want to use a  
  
LinkButton. A standard button and a link button have different delecate  
  
types, so now the link button click event could not be handled by the  
  
original click event the developer provided.  
  
Are they some fundamentals I'm missing? Or is it expected that once a  
  
graphics designer 'gets they hands' on the UI it will no longer work with  
  
the code behind?  
  
Thanks for any advice  
  
Graham

8/8/2005 2:18:58 PM    Re: Declarative forms using Xaml
Wow. There is soooo much I don't know about WPF.  
  
"Darius Riggins" <driggins@vcgsoftware.com> wrote in message  
  
news:%23i5TRnBnFHA.3608@TK2MSFTNGP15.phx.gbl...


Pete's Blog   |    Pete's Resume   |    Robbe's Blog   |    Robbe's Resume   |    Archive #2   |    Archive #3   |    Dotnetslackers   |    XmlPitStop   |    Advertise   |   Contact Us   |   Privacy   |   Copyright (c) 2000 - 2009 eggheadcafe.com  All rights reserved.