Cross-platform XAML Framework
Перейти к файлу
José Manuel Nieto 06b9f1642c Update README.md 2015-06-21 17:04:37 +02:00
Glass Reorganization and better naming 2015-06-19 16:44:46 +02:00
OmniXaml Ability to configure the root instance 2015-06-21 11:34:45 +02:00
Xaml.Tests.Resources Updated WPF empty namespace to be "classic" one. 2015-06-19 11:33:55 +02:00
.gitattributes Updated WPF empty namespace to be "classic" one. 2015-06-19 11:33:55 +02:00
.gitignore Yes, this one is the initial commit :) 2015-04-28 13:29:30 +02:00
GitTemplate.12.xaml Yes, this one is the initial commit :) 2015-04-28 13:29:30 +02:00
LICENSE Initial commit 2015-02-24 19:52:35 +01:00
README.md Update README.md 2015-06-21 17:04:37 +02:00
Settings.StyleCop Initial commit 2015-04-18 13:08:30 +02:00

README.md

OmniXAML

The Cross-platform XAML Framework.

I know you need it, I know you want it. I know you XAML!

Sample

OmniXAML is a library that allows you interpret XAML with ease. You can read XAML and get the object it represents, like a Window in WPF, a document, a diagram or whatever object you can describe.

In its current state it's able to interpret more or less complex XAML without problems.

It already can deal with the some features that make XAML the coolest descriptive XML-based language, like:

  • XAML namespaces
  • Prefix definitions
  • Content Properties
  • Markup Extensions (i.e. Bindings, x:Type, StaticResource…)
  • Deferred reading (DataTemplates, ControlTemplates)
  • Attachable Members. (Attached Properties in WPF/WinRT)
  • Type Converters. Ability to convert an instance of one type to another implicitly (usually from values in XAML that come as strings).

Using OmniXAML with WFP

It's super easy! Just follow this simple guide.

Sample XAML

The following an example of XAML that can be read with OmniXAML.

<Window Width="300" Height="300" 
        xmlns="perspex"
        xmlns:m="clr-namespace:TestApplication;Assembly=TestApplication">
    <ScrollViewer>
        <StackPanel>
            <ListBox Items="{Binding Path=People}">
                <ListBox.DataTemplates>
                    <XamlDataTemplate DataType="{Type TypeName=m:Person}">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Image Source="github_icon.png" Height="60" />
                            <Button Grid.Column="1" Content="{Binding Path=Name}" />
                        </Grid>
                    </XamlDataTemplate>
                </ListBox.DataTemplates>
            </ListBox>
        </StackPanel>
    </ScrollViewer>
</Window>

This project is linked with Perspex, the next-generation WPF.

Thanks to Nicholas Blumhardt for his awesome project Sprache that has introduced me in the world of parsers.

foreach (var thing in life) 
{
   world.Shout(string.Format("XAML is the best language to describe {0}", thing);
}