diff --git a/.gitmodules b/.gitmodules
index 93467688c1..057007f213 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,4 +7,4 @@
branch = perspex-pcl
[submodule "src/Markup/Perspex.Markup.Xaml/OmniXAML"]
path = src/Markup/Perspex.Markup.Xaml/OmniXAML
- url = https://github.com/SuperJMN/OmniXAML.git
+ url = https://github.com/Perspex/OmniXAML.git
diff --git a/Perspex.sln b/Perspex.sln
index 33c2badced..e2d114da8a 100644
--- a/Perspex.sln
+++ b/Perspex.sln
@@ -97,6 +97,12 @@ EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "PlatformSupport", "src\Shared\PlatformSupport\PlatformSupport.shproj", "{E4D9629C-F168-4224-3F51-A5E482FFBC42}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perspex.TinyWM", "src\Perspex.TinyWM\Perspex.TinyWM.csproj", "{1D36D6B3-2994-41C5-8330-19FBDEC5769B}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perspex.Markup", "src\Markup\Perspex.Markup\Perspex.Markup.csproj", "{6417E941-21BC-467B-A771-0DE389353CE6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perspex.Markup.UnitTests", "tests\Perspex.Markup.UnitTests\Perspex.Markup.UnitTests.csproj", "{8EF392D5-1416-45AA-9956-7CBBC3229E8A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindingTest", "samples\BindingTest\BindingTest.csproj", "{08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}"
+EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamlTestApplicationPcl", "samples\XamlTestApplicationPcl\XamlTestApplicationPcl.csproj", "{EA113F1A-D8D7-4142-9948-353270E7EBAE}"
EndProject
Global
@@ -242,6 +248,18 @@ Global
{1D36D6B3-2994-41C5-8330-19FBDEC5769B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D36D6B3-2994-41C5-8330-19FBDEC5769B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D36D6B3-2994-41C5-8330-19FBDEC5769B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6417E941-21BC-467B-A771-0DE389353CE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6417E941-21BC-467B-A771-0DE389353CE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6417E941-21BC-467B-A771-0DE389353CE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6417E941-21BC-467B-A771-0DE389353CE6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8EF392D5-1416-45AA-9956-7CBBC3229E8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8EF392D5-1416-45AA-9956-7CBBC3229E8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8EF392D5-1416-45AA-9956-7CBBC3229E8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8EF392D5-1416-45AA-9956-7CBBC3229E8A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}.Release|Any CPU.Build.0 = Release|Any CPU
{EA113F1A-D8D7-4142-9948-353270E7EBAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA113F1A-D8D7-4142-9948-353270E7EBAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA113F1A-D8D7-4142-9948-353270E7EBAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -271,6 +289,9 @@ Global
{54F237D5-A70A-4752-9656-0C70B1A7B047} = {B9894058-278A-46B5-B6ED-AD613FCC03B3}
{FB05AC90-89BA-4F2F-A924-F37875FB547C} = {B9894058-278A-46B5-B6ED-AD613FCC03B3}
{E4D9629C-F168-4224-3F51-A5E482FFBC42} = {A689DEF5-D50F-4975-8B72-124C9EB54066}
+ {6417E941-21BC-467B-A771-0DE389353CE6} = {8B6A8209-894F-4BA1-B880-965FD453982C}
+ {8EF392D5-1416-45AA-9956-7CBBC3229E8A} = {C5A00AC3-B34C-4564-9BDD-2DA473EF4D8B}
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162} = {9B9E3891-2366-4253-A952-D08BCEB71098}
{EA113F1A-D8D7-4142-9948-353270E7EBAE} = {9B9E3891-2366-4253-A952-D08BCEB71098}
EndGlobalSection
EndGlobal
diff --git a/nuget/build-version.ps1 b/nuget/build-version.ps1
index 1cce68564d..f458b30ffd 100644
--- a/nuget/build-version.ps1
+++ b/nuget/build-version.ps1
@@ -28,6 +28,8 @@ Copy-Item ..\src\Perspex.Styling\bin\Release\Perspex.Styling.dll $lib
Copy-Item ..\src\Perspex.Styling\bin\Release\Perspex.Styling.xml $lib
Copy-Item ..\src\Perspex.Themes.Default\bin\Release\Perspex.Themes.Default.dll $lib
Copy-Item ..\src\Perspex.Themes.Default\bin\Release\Perspex.Themes.Default.xml $lib
+Copy-Item ..\src\Markup\Perspex.Markup\bin\Release\Perspex.Markup.dll $lib
+Copy-Item ..\src\Markup\Perspex.Markup\bin\Release\Perspex.Markup.xml $lib
Copy-Item ..\src\Markup\Perspex.Markup.Xaml\bin\Release\Perspex.Markup.Xaml.dll $lib
Copy-Item ..\src\Markup\Perspex.Markup.Xaml\bin\Release\Perspex.Markup.Xaml.xml $lib
Copy-Item ..\src\Perspex.HtmlRenderer\bin\Release\Perspex.HtmlRenderer.dll $lib
diff --git a/samples/BindingTest/App.config b/samples/BindingTest/App.config
new file mode 100644
index 0000000000..8324aa6ff1
--- /dev/null
+++ b/samples/BindingTest/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/BindingTest/App.cs b/samples/BindingTest/App.cs
new file mode 100644
index 0000000000..70cfcfb44b
--- /dev/null
+++ b/samples/BindingTest/App.cs
@@ -0,0 +1,40 @@
+using System;
+using Perspex;
+using Perspex.Controls;
+using Perspex.Diagnostics;
+using Perspex.Themes.Default;
+using Serilog;
+using Serilog.Filters;
+
+namespace BindingTest
+{
+ public class App : Application
+ {
+ public App()
+ {
+ RegisterServices();
+ InitializeSubsystems((int)Environment.OSVersion.Platform);
+ Styles = new DefaultTheme();
+
+ Log.Logger = new LoggerConfiguration()
+ .Filter.ByIncludingOnly(Matching.WithProperty("Area", "Property"))
+ .Filter.ByIncludingOnly(Matching.WithProperty("Property", "Text"))
+ .MinimumLevel.Verbose()
+ .WriteTo.Trace(outputTemplate: "[{Id:X8}] [{SourceContext}] {Message}")
+ .CreateLogger();
+ }
+
+ public static void AttachDevTools(Window window)
+ {
+ DevTools.Attach(window);
+ }
+
+ private static void Main()
+ {
+ var app = new App();
+ var window = new MainWindow();
+ window.Show();
+ app.Run(window);
+ }
+ }
+}
diff --git a/samples/BindingTest/BindingTest.csproj b/samples/BindingTest/BindingTest.csproj
new file mode 100644
index 0000000000..62914fdc13
--- /dev/null
+++ b/samples/BindingTest/BindingTest.csproj
@@ -0,0 +1,167 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {08B3E6B9-1CD5-443C-9F61-6D49D1C5F162}
+ WinExe
+ Properties
+ BindingTest
+ BindingTest
+ v4.6
+ 512
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+ ..\..\packages\Serilog.1.5.9\lib\net45\Serilog.dll
+ True
+
+
+ ..\..\packages\Serilog.1.5.9\lib\net45\Serilog.FullNetFx.dll
+ True
+
+
+ ..\..\packages\Splat.1.6.2\lib\Net45\Splat.dll
+ True
+
+
+
+
+ ..\..\packages\Rx-Core.2.2.5\lib\net45\System.Reactive.Core.dll
+ True
+
+
+ ..\..\packages\Rx-Interfaces.2.2.5\lib\net45\System.Reactive.Interfaces.dll
+ True
+
+
+ ..\..\packages\Rx-Linq.2.2.5\lib\net45\System.Reactive.Linq.dll
+ True
+
+
+ ..\..\packages\Rx-PlatformServices.2.2.5\lib\net45\System.Reactive.PlatformServices.dll
+ True
+
+
+
+
+
+
+
+
+
+
+
+ MainWindow.paml
+
+
+
+
+
+
+
+
+ Designer
+ MSBuild:Compile
+
+
+
+
+
+ {3e53a01a-b331-47f3-b828-4a5717e77a24}
+ Perspex.Markup.Xaml
+
+
+ {6417e941-21bc-467b-a771-0de389353ce6}
+ Perspex.Markup
+
+
+ {d211e587-d8bc-45b9-95a4-f297c8fa5200}
+ Perspex.Animation
+
+
+ {799a7bb5-3c2c-48b6-85a7-406a12c420da}
+ Perspex.Application
+
+
+ {b09b78d8-9b26-48b0-9149-d64a2f120f3f}
+ Perspex.Base
+
+
+ {d2221c82-4a25-4583-9b43-d791e3f6820c}
+ Perspex.Controls
+
+
+ {7062ae20-5dcc-4442-9645-8195bdece63e}
+ Perspex.Diagnostics
+
+
+ {62024b2d-53eb-4638-b26b-85eeaa54866e}
+ Perspex.Input
+
+
+ {6b0ed19d-a08b-461c-a9d9-a9ee40b0c06b}
+ Perspex.Interactivity
+
+
+ {42472427-4774-4c81-8aff-9f27b8e31721}
+ Perspex.Layout
+
+
+ {6417b24e-49c2-4985-8db2-3ab9d898ec91}
+ Perspex.ReactiveUI
+
+
+ {eb582467-6abb-43a1-b052-e981ba910e3a}
+ Perspex.SceneGraph
+
+
+ {f1baa01a-f176-4c6a-b39d-5b40bb1b148f}
+ Perspex.Styling
+
+
+ {3e10a5fa-e8da-48b1-ad44-6a5b6cb7750f}
+ Perspex.Themes.Default
+
+
+ {3e908f67-5543-4879-a1dc-08eace79b3cd}
+ Perspex.Direct2D1
+
+
+ {811a76cf-1cf6-440f-963b-bbe31bd72a82}
+ Perspex.Win32
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/BindingTest/MainWindow.paml b/samples/BindingTest/MainWindow.paml
new file mode 100644
index 0000000000..739651b21e
--- /dev/null
+++ b/samples/BindingTest/MainWindow.paml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ !BooleanString
+ !!BooleanString
+
+
+
\ No newline at end of file
diff --git a/samples/BindingTest/MainWindow.paml.cs b/samples/BindingTest/MainWindow.paml.cs
new file mode 100644
index 0000000000..a8e64485cb
--- /dev/null
+++ b/samples/BindingTest/MainWindow.paml.cs
@@ -0,0 +1,21 @@
+using BindingTest.ViewModels;
+using Perspex.Controls;
+using Perspex.Markup.Xaml;
+
+namespace BindingTest
+{
+ public class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ this.InitializeComponent();
+ this.DataContext = new MainWindowViewModel();
+ App.AttachDevTools(this);
+ }
+
+ private void InitializeComponent()
+ {
+ PerspexXamlLoader.Load(this);
+ }
+ }
+}
diff --git a/samples/BindingTest/Properties/AssemblyInfo.cs b/samples/BindingTest/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..648b1cb406
--- /dev/null
+++ b/samples/BindingTest/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("BindingTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("BindingTest")]
+[assembly: AssemblyCopyright("Copyright © 2015")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("08b3e6b9-1cd5-443c-9f61-6d49d1c5f162")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/samples/BindingTest/ViewModels/MainWindowViewModel.cs b/samples/BindingTest/ViewModels/MainWindowViewModel.cs
new file mode 100644
index 0000000000..8722568aee
--- /dev/null
+++ b/samples/BindingTest/ViewModels/MainWindowViewModel.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.ObjectModel;
+using ReactiveUI;
+
+namespace BindingTest.ViewModels
+{
+ public class MainWindowViewModel : ReactiveObject
+ {
+ private string _booleanString = "True";
+ private string _stringValue = "Simple Binding";
+
+ public MainWindowViewModel()
+ {
+ Items = new ObservableCollection
+ {
+ new TestItem { StringValue = "Foo" },
+ new TestItem { StringValue = "Bar" },
+ new TestItem { StringValue = "Baz" },
+ };
+
+ ShuffleItems = ReactiveCommand.Create();
+ ShuffleItems.Subscribe(_ =>
+ {
+ var r = new Random();
+ Items.Move(r.Next(Items.Count), 1);
+ });
+ }
+
+ public ObservableCollection Items { get; }
+ public ReactiveCommand