WPFfor d
rumbu
rumbu at rumbu.ro
Sun Feb 17 15:01:20 PST 2013
On Sunday, 17 February 2013 at 21:56:26 UTC, Adam Wilson wrote:
> On Sun, 17 Feb 2013 11:06:40 -0800, Jacob Carlborg
> <doob at me.com> wrote:
>
>> On 2013-02-17 20:00, Adam Wilson wrote:
>>
>> I've been thinking for a long time to try and serialize
>> widgets in DWT. And then build a tool for graphically creating
>> GUIs. I guess that's similar to how XAML works.
>>
>
> It is similar yes. In WPF, XAML is specialized XML that is
> deserialized at compile-time and translated into C#/VB.NET etc.
XAML code is embedded in assembly as BAML and deserialized to a
visual tree at *runtime* through Application.LoadComponent
subsequentely calling XamlReader.LoadBaml.
> I think for D compile-time deserialization makes sense for two
> reasons. The first is that you get more flexibility to work
> around D's lack of the deep reflection capabilites of .NET.
I doubt that it's possible to implement something like a
DependencyProperty mechanism or a simple INotifyPropertyChanged
without runtime reflection.
Anyway, if you intend to set-up a team in this direction, you can
count on me.
More information about the Digitalmars-d
mailing list