--- In [email protected], "Alastair Fettes" <[EMAIL PROTECTED]> wrote: > Hi Don. > > So you really want to write an entire application in X(A)ML? Could > you write a program even close to as powerful in XAML as in other > languages? > > Alastair >
Hi Alastair, I think your missing it here a bit, maybe this would clarify.... Imagine SVG and the SVGDOM with Java as the code behind language instead of ECMA Script. Now you're starting to move more in the direction of XAML and Avalon. Now imagine the SVG not being interpreted, but converted directly into Java runtime code. XAML defines all of the user interface, look feel, animations and some basic behaviors of the UI. But for application development you still use a .NET language with your XAML document. The objects are defined in XAML, but the advanced logic is done in your .NET language, kind of how ECMA acts on the SVG objects in the DOM. You can use XAML like SVG with no code behind, or you can use code behind to create a full blown Windows .NET application much the same way that you do today with .NET 1.1. (There is also an in-between application for the Internet called an Express Application) Our Aurora XAML Designer application is written entirely in C# with XAML. One of the cool features we are building in is the ability to select a *Theme* for the user interface. This is done using XAML and Styles. The application logic is still a .NET program; the UI and styles were defined in XAML. > What happens if you want to do something that isn't in the XAML schema? Doesn't matter. I can create custom objects and use them in the XAML. There are no restrictions. Consider the following code. This is an PieChart Control with Pie Slices that we wrote in Avalon and C#. We can use this in control in the XAML, note the XAML linear gradient brush being used by one of the pie slices....we can do XAML styling, animation, .... no limits. <!-- Saved from Aurora XAML Designer for WinFX - Mobiform Software Ltd. - Tuesday, June 21, 2005 3:48:47 PM --> <Canvas xmlns="http://schemas.microsoft.com/winfx/avalon/2005" Background="#FFFFFFFF" Height="400" Name="ROOT" Width="500"> <Panel.Children> <?Mapping XmlNamespace="AuroraPieChart_SmartControl_1ns" ClrNamespace="SmartControl" Assembly="AuroraPieChart" ?> <AuroraPieChart_SmartControl_1:AuroraPieChart Background="#FFFFFFFF" Height="209" Canvas.Left="104" Name="AuroraPieChart1" Canvas.Top="107.361666666667" Width="322" xmlns:AuroraPieChart_SmartControl_1="AuroraPieChart_SmartControl_1ns" > <Panel.Children> <AuroraPieChart_SmartControl_1:AuroraPieSlice Fill="#FF1505EA" Canvas.Left="0" Name="AuroraPieSlice1" Percent="20" Canvas.Top="0" /> <AuroraPieChart_SmartControl_1:AuroraPieSlice Canvas.Left="0" Name="AuroraPieSlice2" Percent="20" Canvas.Top="0"> <AuroraPieChart_SmartControl_1:AuroraPieSlice.Fill> <LinearGradientBrush EndPoint="1,1" Opacity="1"> <GradientBrush.GradientStops> <GradientStopCollection> <GradientStop Color="#FF0000FF" Offset="0" /> <GradientStop Color="#FFA52A2A" Offset="0.5" /> </GradientStopCollection> </GradientBrush.GradientStops> </LinearGradientBrush> </AuroraPieChart_SmartControl_1:AuroraPieSlice.Fill> </AuroraPieChart_SmartControl_1:AuroraPieSlice> <AuroraPieChart_SmartControl_1:AuroraPieSlice Fill="#FFD88543" Canvas.Left="0" Name="AuroraPieSlice3" Percent="20" Canvas.Top="0" /> <AuroraPieChart_SmartControl_1:AuroraPieSlice Fill="#FF26BEB8" Canvas.Left="0" Name="AuroraPieSlice4" Percent="20" Canvas.Top="0" /> </Panel.Children> </AuroraPieChart_SmartControl_1:AuroraPieChart> </Panel.Children> </Canvas> Ron @ Mobiform http://www.mobiform.com ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

