Merge branch 'master' of https://github.com/AvaloniaUI/Avalonia
This commit is contained in:
@@ -0,0 +1 @@
|
||||
open_collective: avalonia
|
||||
+2
-1
@@ -196,7 +196,8 @@ ModuleCache.noindex/
|
||||
Build/Intermediates.noindex/
|
||||
info.plist
|
||||
build-intermediate
|
||||
|
||||
obj-Direct2D1/
|
||||
obj-Skia/
|
||||
|
||||
##################
|
||||
# Vim
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
[submodule "src/Markup/Avalonia.Markup.Xaml/PortableXaml/portable.xaml.github"]
|
||||
path = src/Markup/Avalonia.Markup.Xaml/PortableXaml/portable.xaml.github
|
||||
url = https://github.com/AvaloniaUI/Portable.Xaml.git
|
||||
[submodule "nukebuild/Numerge"]
|
||||
path = nukebuild/Numerge
|
||||
url = https://github.com/kekekeks/Numerge.git
|
||||
[submodule "src/Markup/Avalonia.Markup.Xaml/XamlIl/xamlil.github"]
|
||||
path = src/Markup/Avalonia.Markup.Xaml/XamlIl/xamlil.github
|
||||
url = https://github.com/kekekeks/XamlIl.git
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,5 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<IgnoreThisComponentCompletely>True</IgnoreThisComponentCompletely>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -4,6 +4,9 @@
|
||||
<Value>..\TestFiles\Direct2D1\**.*</Value>
|
||||
</AdditionalFilesToIncludeForProject>
|
||||
<DefaultTestTimeout>3000</DefaultTestTimeout>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,3 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings />
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -4,6 +4,9 @@
|
||||
<Value>..\TestFiles\Skia\**.*</Value>
|
||||
</AdditionalFilesToIncludeForProject>
|
||||
<DefaultTestTimeout>3000</DefaultTestTimeout>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,3 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings />
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>DerivedFilesIncludedInWorkspace</Value>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>DerivedFilesIncludedInWorkspace</Value>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -1,5 +1,8 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -0,0 +1,7 @@
|
||||
<ProjectConfiguration>
|
||||
<Settings>
|
||||
<HiddenComponentWarnings>
|
||||
<Value>MissingOrIgnoredProjectReference</Value>
|
||||
</HiddenComponentWarnings>
|
||||
</Settings>
|
||||
</ProjectConfiguration>
|
||||
@@ -63,8 +63,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{A689DE
|
||||
src\Shared\SharedAssemblyInfo.cs = src\Shared\SharedAssemblyInfo.cs
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Gtk", "Gtk", "{B9894058-278A-46B5-B6ED-AD613FCC03B3}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.ReactiveUI", "src\Avalonia.ReactiveUI\Avalonia.ReactiveUI.csproj", "{6417B24E-49C2-4985-8DB2-3AB9D898EC91}"
|
||||
EndProject
|
||||
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "PlatformSupport", "src\Shared\PlatformSupport\PlatformSupport.shproj", "{E4D9629C-F168-4224-3F51-A5E482FFBC42}"
|
||||
@@ -123,8 +121,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlCatalog.Android", "s
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.Skia", "src\Skia\Avalonia.Skia\Avalonia.Skia.csproj", "{7D2D3083-71DD-4CC9-8907-39A0D86FB322}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Avalonia.Gtk3", "src\Gtk\Avalonia.Gtk3\Avalonia.Gtk3.csproj", "{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ControlCatalog.NetCore", "samples\ControlCatalog.NetCore\ControlCatalog.NetCore.csproj", "{39D7B147-1A5B-47C2-9D01-21FB7C47C4B3}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Props", "Props", "{F3AC8BC1-27F5-4255-9AFC-04ABFD11683A}"
|
||||
@@ -146,7 +142,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Props", "Props", "{F3AC8BC1
|
||||
build\Serilog.props = build\Serilog.props
|
||||
build\SharpDX.props = build\SharpDX.props
|
||||
build\SkiaSharp.props = build\SkiaSharp.props
|
||||
build\Splat.props = build\Splat.props
|
||||
build\System.Memory.props = build\System.Memory.props
|
||||
build\XUnit.props = build\XUnit.props
|
||||
EndProjectSection
|
||||
@@ -1319,30 +1314,6 @@ Global
|
||||
{7D2D3083-71DD-4CC9-8907-39A0D86FB322}.Release|iPhone.Build.0 = Release|Any CPU
|
||||
{7D2D3083-71DD-4CC9-8907-39A0D86FB322}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{7D2D3083-71DD-4CC9-8907-39A0D86FB322}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|Any CPU.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|iPhone.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|iPhone.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|iPhone.Build.0 = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|iPhone.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|iPhone.Build.0 = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{39D7B147-1A5B-47C2-9D01-21FB7C47C4B3}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{39D7B147-1A5B-47C2-9D01-21FB7C47C4B3}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
||||
{39D7B147-1A5B-47C2-9D01-21FB7C47C4B3}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
||||
@@ -1912,7 +1883,6 @@ Global
|
||||
{F1FDC5B0-4654-416F-AE69-E3E9BBD87801} = {9B9E3891-2366-4253-A952-D08BCEB71098}
|
||||
{29132311-1848-4FD6-AE0C-4FF841151BD3} = {9B9E3891-2366-4253-A952-D08BCEB71098}
|
||||
{7D2D3083-71DD-4CC9-8907-39A0D86FB322} = {3743B0F2-CC41-4F14-A8C8-267F579BF91E}
|
||||
{BB1F7BB5-6AD4-4776-94D9-C09D0A972658} = {B9894058-278A-46B5-B6ED-AD613FCC03B3}
|
||||
{39D7B147-1A5B-47C2-9D01-21FB7C47C4B3} = {9B9E3891-2366-4253-A952-D08BCEB71098}
|
||||
{854568D5-13D1-4B4F-B50D-534DC7EFD3C9} = {86C53C40-57AA-45B8-AD42-FAE0EFDF0F2B}
|
||||
{638580B0-7910-40EF-B674-DCB34DA308CD} = {A0CC0258-D18C-4AB3-854F-7101680FC3F9}
|
||||
|
||||
Regular → Executable
+1
-1
@@ -2,4 +2,4 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<Compile Update="**\*.xaml.cs">
|
||||
<DependentUpon>%(Filename)</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="**\*.xaml">
|
||||
<AvaloniaResource Include="**\*.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</AvaloniaResource>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -5,4 +5,9 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\Avalonia.Desktop\Avalonia.Desktop.csproj" />
|
||||
</ItemGroup>
|
||||
<Target Name="GatherReferences" AfterTargets="CoreCompile">
|
||||
<WriteLinesToFile File="$(TargetPath).refs"
|
||||
Lines="@(ReferencePathWithRefAssemblies)"
|
||||
Overwrite="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Product>Avalonia</Product>
|
||||
<Version>0.8.1</Version>
|
||||
<Version>0.8.999</Version>
|
||||
<Copyright>Copyright 2019 © The AvaloniaUI Project</Copyright>
|
||||
<PackageLicenseUrl>https://github.com/AvaloniaUI/Avalonia/blob/master/licence.md</PackageLicenseUrl>
|
||||
<PackageProjectUrl>https://github.com/AvaloniaUI/Avalonia/</PackageProjectUrl>
|
||||
|
||||
@@ -6,12 +6,13 @@
|
||||
<ProjectReference Include="packages/**/*.*proj" />
|
||||
<ProjectReference Remove="**/*.shproj" />
|
||||
<ProjectReference Remove="src/Markup/Avalonia.Markup.Xaml/PortableXaml/**/*.*proj" />
|
||||
<ProjectReference Remove="src/Markup/Avalonia.Markup.Xaml/XamlIl/**/*.*proj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="!Exists('$(MSBuildExtensionsPath)\Xamarin\Android')">
|
||||
<ProjectReference Remove="src/Android/**/*.*proj" />
|
||||
<ProjectReference Remove="samples/ControlCatalog.Android/ControlCatalog.Android.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="!Exists('$(MSBuildExtensionsPath)\Xamarin\iOS')">
|
||||
<ItemGroup Condition="!Exists('$(MSBuildExtensionsPath)\Xamarin\iOS') Or $([MSBuild]::IsOsPlatform('Windows')) ">
|
||||
<ProjectReference Remove="src/iOS/**/*.*proj" />
|
||||
<ProjectReference Remove="samples/ControlCatalog.iOS/ControlCatalog.iOS.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -144,6 +144,7 @@ enum AvnStandardCursorType
|
||||
CursorDragMove,
|
||||
CursorDragCopy,
|
||||
CursorDragLink,
|
||||
CursorNone
|
||||
};
|
||||
|
||||
enum AvnWindowEdge
|
||||
|
||||
@@ -26,7 +26,7 @@ const int kVK_ANSI_3 = 0x14;
|
||||
const int kVK_ANSI_4 = 0x15;
|
||||
const int kVK_ANSI_6 = 0x16;
|
||||
const int kVK_ANSI_5 = 0x17;
|
||||
//const int kVK_ANSI_Equal = 0x18;
|
||||
const int kVK_ANSI_Equal = 0x18;
|
||||
const int kVK_ANSI_9 = 0x19;
|
||||
const int kVK_ANSI_7 = 0x1A;
|
||||
const int kVK_ANSI_Minus = 0x1B;
|
||||
@@ -45,11 +45,11 @@ const int kVK_ANSI_K = 0x28;
|
||||
const int kVK_ANSI_Semicolon = 0x29;
|
||||
const int kVK_ANSI_Backslash = 0x2A;
|
||||
const int kVK_ANSI_Comma = 0x2B;
|
||||
//const int kVK_ANSI_Slash = 0x2C;
|
||||
const int kVK_ANSI_Slash = 0x2C;
|
||||
const int kVK_ANSI_N = 0x2D;
|
||||
const int kVK_ANSI_M = 0x2E;
|
||||
const int kVK_ANSI_Period = 0x2F;
|
||||
//const int kVK_ANSI_Grave = 0x32;
|
||||
const int kVK_ANSI_Grave = 0x32;
|
||||
const int kVK_ANSI_KeypadDecimal = 0x41;
|
||||
const int kVK_ANSI_KeypadMultiply = 0x43;
|
||||
const int kVK_ANSI_KeypadPlus = 0x45;
|
||||
@@ -57,7 +57,7 @@ const int kVK_ANSI_KeypadClear = 0x47;
|
||||
const int kVK_ANSI_KeypadDivide = 0x4B;
|
||||
const int kVK_ANSI_KeypadEnter = 0x4C;
|
||||
const int kVK_ANSI_KeypadMinus = 0x4E;
|
||||
//const int kVK_ANSI_KeypadEquals = 0x51;
|
||||
const int kVK_ANSI_KeypadEquals = 0x51;
|
||||
const int kVK_ANSI_Keypad0 = 0x52;
|
||||
const int kVK_ANSI_Keypad1 = 0x53;
|
||||
const int kVK_ANSI_Keypad2 = 0x54;
|
||||
@@ -121,7 +121,7 @@ const int kVK_UpArrow = 0x7E;
|
||||
//const int kVK_JIS_Underscore = 0x5E;
|
||||
//const int kVK_JIS_KeypadComma = 0x5F;
|
||||
//const int kVK_JIS_Eisu = 0x66;
|
||||
//const int kVK_JIS_Kana = 0x68;
|
||||
const int kVK_JIS_Kana = 0x68;
|
||||
|
||||
std::map<int, AvnKey> s_KeyMap =
|
||||
{
|
||||
@@ -148,7 +148,7 @@ const int kVK_UpArrow = 0x7E;
|
||||
{kVK_ANSI_4, D4},
|
||||
{kVK_ANSI_6, D6},
|
||||
{kVK_ANSI_5, D5},
|
||||
//{kVK_ANSI_Equal, ?},
|
||||
{kVK_ANSI_Equal, OemPlus},
|
||||
{kVK_ANSI_9, D9},
|
||||
{kVK_ANSI_7, D7},
|
||||
{kVK_ANSI_Minus, OemMinus},
|
||||
@@ -167,11 +167,11 @@ const int kVK_UpArrow = 0x7E;
|
||||
{kVK_ANSI_Semicolon, OemSemicolon},
|
||||
{kVK_ANSI_Backslash, OemBackslash},
|
||||
{kVK_ANSI_Comma, OemComma},
|
||||
//{kVK_ANSI_Slash, ?},
|
||||
{kVK_ANSI_Slash, Oem2},
|
||||
{kVK_ANSI_N, N},
|
||||
{kVK_ANSI_M, M},
|
||||
{kVK_ANSI_Period, OemPeriod},
|
||||
//{kVK_ANSI_Grave, ?},
|
||||
{kVK_ANSI_Grave, OemTilde},
|
||||
{kVK_ANSI_KeypadDecimal, Decimal},
|
||||
{kVK_ANSI_KeypadMultiply, Multiply},
|
||||
{kVK_ANSI_KeypadPlus, OemPlus},
|
||||
@@ -179,7 +179,7 @@ const int kVK_UpArrow = 0x7E;
|
||||
{kVK_ANSI_KeypadDivide, Divide},
|
||||
{kVK_ANSI_KeypadEnter, AvnKeyEnter},
|
||||
{kVK_ANSI_KeypadMinus, OemMinus},
|
||||
//{kVK_ANSI_KeypadEquals, ?},
|
||||
{kVK_ANSI_KeypadEquals, OemPlus},
|
||||
{kVK_ANSI_Keypad0, NumPad0},
|
||||
{kVK_ANSI_Keypad1, NumPad1},
|
||||
{kVK_ANSI_Keypad2, NumPad2},
|
||||
@@ -237,5 +237,6 @@ const int kVK_UpArrow = 0x7E;
|
||||
{kVK_LeftArrow, Left},
|
||||
{kVK_RightArrow, Right},
|
||||
{kVK_DownArrow, Down},
|
||||
{kVK_UpArrow, Up}
|
||||
{kVK_UpArrow, Up},
|
||||
{kVK_JIS_Kana, AvnKeyKanaMode},
|
||||
};
|
||||
|
||||
@@ -11,18 +11,24 @@ class Cursor : public ComSingleObject<IAvnCursor, &IID_IAvnCursor>
|
||||
{
|
||||
private:
|
||||
NSCursor * _native;
|
||||
|
||||
bool _isHidden;
|
||||
public:
|
||||
FORWARD_IUNKNOWN()
|
||||
Cursor(NSCursor * cursor)
|
||||
Cursor(NSCursor * cursor, bool isHidden = false)
|
||||
{
|
||||
_native = cursor;
|
||||
_isHidden = isHidden;
|
||||
}
|
||||
|
||||
NSCursor* GetNative()
|
||||
{
|
||||
return _native;
|
||||
}
|
||||
|
||||
bool IsHidden ()
|
||||
{
|
||||
return _isHidden;
|
||||
}
|
||||
};
|
||||
|
||||
extern std::map<AvnStandardCursorType, Cursor*> s_cursorMap;
|
||||
|
||||
@@ -21,6 +21,7 @@ class CursorFactory : public ComSingleObject<IAvnCursorFactory, &IID_IAvnCursorF
|
||||
Cursor* resizeRightCursor = new Cursor([NSCursor resizeRightCursor]);
|
||||
Cursor* resizeWestEastCursor = new Cursor([NSCursor resizeLeftRightCursor]);
|
||||
Cursor* operationNotAllowedCursor = new Cursor([NSCursor operationNotAllowedCursor]);
|
||||
Cursor* noCursor = new Cursor([NSCursor arrowCursor], true);
|
||||
|
||||
std::map<AvnStandardCursorType, Cursor*> s_cursorMap =
|
||||
{
|
||||
@@ -46,11 +47,13 @@ class CursorFactory : public ComSingleObject<IAvnCursorFactory, &IID_IAvnCursorF
|
||||
{ CursorIbeam, IBeamCursor },
|
||||
{ CursorLeftSide, resizeLeftCursor },
|
||||
{ CursorRightSide, resizeRightCursor },
|
||||
{ CursorNo, operationNotAllowedCursor }
|
||||
{ CursorNo, operationNotAllowedCursor },
|
||||
{ CursorNone, noCursor }
|
||||
};
|
||||
|
||||
public:
|
||||
FORWARD_IUNKNOWN()
|
||||
|
||||
virtual HRESULT GetCursor (AvnStandardCursorType cursorType, IAvnCursor** retOut) override
|
||||
{
|
||||
*retOut = s_cursorMap[cursorType];
|
||||
|
||||
@@ -353,6 +353,16 @@ public:
|
||||
Cursor* avnCursor = dynamic_cast<Cursor*>(cursor);
|
||||
this->cursor = avnCursor->GetNative();
|
||||
UpdateCursor();
|
||||
|
||||
if(avnCursor->IsHidden())
|
||||
{
|
||||
[NSCursor hide];
|
||||
}
|
||||
else
|
||||
{
|
||||
[NSCursor unhide];
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
+23
-5
@@ -19,7 +19,7 @@ using static Nuke.Common.IO.PathConstruction;
|
||||
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
|
||||
using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
||||
using static Nuke.Common.Tools.Xunit.XunitTasks;
|
||||
|
||||
using static Nuke.Common.Tools.VSWhere.VSWhereTasks;
|
||||
|
||||
/*
|
||||
Before editing this file, install support plugin for your IDE,
|
||||
@@ -30,7 +30,26 @@ using static Nuke.Common.Tools.Xunit.XunitTasks;
|
||||
*/
|
||||
|
||||
partial class Build : NukeBuild
|
||||
{
|
||||
{
|
||||
static Lazy<string> MsBuildExe = new Lazy<string>(() =>
|
||||
{
|
||||
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
return null;
|
||||
|
||||
var msBuildDirectory = VSWhere("-latest -nologo -property installationPath -format value -prerelease").FirstOrDefault().Text;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(msBuildDirectory))
|
||||
{
|
||||
string msBuildExe = Path.Combine(msBuildDirectory, @"MSBuild\Current\Bin\MSBuild.exe");
|
||||
if (!System.IO.File.Exists(msBuildExe))
|
||||
msBuildExe = Path.Combine(msBuildDirectory, @"MSBuild\15.0\Bin\MSBuild.exe");
|
||||
|
||||
return msBuildExe;
|
||||
}
|
||||
|
||||
return null;
|
||||
}, false);
|
||||
|
||||
BuildParameters Parameters { get; set; }
|
||||
protected override void OnBuildInitialized()
|
||||
{
|
||||
@@ -85,7 +104,6 @@ partial class Build : NukeBuild
|
||||
.DependsOn(Clean)
|
||||
.Executes(() =>
|
||||
{
|
||||
|
||||
if (Parameters.IsRunningOnWindows)
|
||||
MSBuild(Parameters.MSBuildSolution, c => c
|
||||
.SetArgumentConfigurator(a => a.Add("/r"))
|
||||
@@ -93,7 +111,7 @@ partial class Build : NukeBuild
|
||||
.SetVerbosity(MSBuildVerbosity.Minimal)
|
||||
.AddProperty("PackageVersion", Parameters.Version)
|
||||
.AddProperty("iOSRoslynPathHackRequired", "true")
|
||||
.SetToolsVersion(MSBuildToolsVersion._15_0)
|
||||
.SetToolPath(MsBuildExe.Value)
|
||||
.AddTargets("Build")
|
||||
);
|
||||
|
||||
@@ -224,7 +242,7 @@ partial class Build : NukeBuild
|
||||
.SetVerbosity(MSBuildVerbosity.Minimal)
|
||||
.AddProperty("PackageVersion", Parameters.Version)
|
||||
.AddProperty("iOSRoslynPathHackRequired", "true")
|
||||
.SetToolsVersion(MSBuildToolsVersion._15_0)
|
||||
.SetToolPath(MsBuildExe.Value)
|
||||
.AddTargets("Pack"));
|
||||
else
|
||||
DotNetPack(Parameters.MSBuildSolution, c =>
|
||||
|
||||
+1
-1
Submodule nukebuild/Numerge updated: aef10ae67d...4464343aef
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
@@ -13,6 +13,7 @@
|
||||
<PackageReference Include="Nuke.Common" Version="0.12.3" />
|
||||
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
|
||||
<PackageReference Include="JetBrains.dotMemoryUnit" Version="3.0.20171219.105559" />
|
||||
<PackageReference Include="vswhere" Version="2.6.7" Condition=" '$(OS)' == 'Windows_NT' " />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net461;netcoreapp2.0</TargetFrameworks>
|
||||
<PackageId>Avalonia</PackageId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
AssemblyFile="$(AvaloniaBuildTasksLocation)"
|
||||
/>
|
||||
|
||||
<UsingTask TaskName="CompileAvaloniaXamlTask"
|
||||
AssemblyFile="$(AvaloniaBuildTasksLocation)"
|
||||
/>
|
||||
|
||||
|
||||
<Target Name="AddAvaloniaResources" BeforeTargets="ResolveReferences">
|
||||
<PropertyGroup>
|
||||
@@ -20,11 +24,15 @@
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<PropertyGroup>
|
||||
<BuildAvaloniaResourcesDependsOn>$(BuildAvaloniaResourcesDependsOn);AddAvaloniaResources;ResolveReferences</BuildAvaloniaResourcesDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GenerateAvaloniaResources"
|
||||
BeforeTargets="CoreCompile;CoreResGen"
|
||||
Inputs="@(AvaloniaResource);$(MSBuildAllProjects)"
|
||||
Outputs="$(AvaloniaResourcesTemporaryFilePath)"
|
||||
DependsOnTargets="$(BuildAvaloniaResourcesDependsOn);AddAvaloniaResources;ResolveReferences">
|
||||
DependsOnTargets="$(BuildAvaloniaResourcesDependsOn)">
|
||||
<GenerateAvaloniaResourcesTask
|
||||
Condition="'$(_AvaloniaUseExternalMSBuild)' != 'true'"
|
||||
Output="$(AvaloniaResourcesTemporaryFilePath)"
|
||||
@@ -33,9 +41,36 @@
|
||||
EmbeddedResources="@(EmbeddedResources)"/>
|
||||
<Exec
|
||||
Condition="'$(_AvaloniaUseExternalMSBuild)' == 'true'"
|
||||
Command="dotnet msbuild /nodereuse:false $(MSBuildProjectFile) /t:GenerateAvaloniaResources /p:_AvaloniaForceInternalMSBuild=true /p:Configuration=$(Configuration)"/>
|
||||
Command="dotnet msbuild /nodereuse:false $(MSBuildProjectFile) /t:GenerateAvaloniaResources /p:_AvaloniaForceInternalMSBuild=true /p:Configuration=$(Configuration) /p:TargetFramework=$(TargetFramework) /p:BuildProjectReferences=false"/>
|
||||
|
||||
</Target>
|
||||
|
||||
<Target
|
||||
Name="CompileAvaloniaXaml"
|
||||
AfterTargets="AfterCompile"
|
||||
Condition="Exists('@(IntermediateAssembly)') And $(DesignTimeBuild) != true And $(EnableAvaloniaXamlCompilation) != false"
|
||||
>
|
||||
<PropertyGroup>
|
||||
<AvaloniaXamlReferencesTemporaryFilePath Condition="'$(AvaloniaXamlReferencesTemporaryFilePath)' == ''">$(IntermediateOutputPath)/Avalonia/references</AvaloniaXamlReferencesTemporaryFilePath>
|
||||
<AvaloniaXamlOriginalCopyFilePath Condition="'$(AvaloniaXamlOriginalCopyFilePath)' == ''">$(IntermediateOutputPath)/Avalonia/original.dll</AvaloniaXamlOriginalCopyFilePath>
|
||||
</PropertyGroup>
|
||||
<WriteLinesToFile
|
||||
Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'"
|
||||
File="$(AvaloniaXamlReferencesTemporaryFilePath)"
|
||||
Lines="@(ReferencePathWithRefAssemblies)"
|
||||
Overwrite="true" />
|
||||
<CompileAvaloniaXamlTask
|
||||
Condition="'$(_AvaloniaUseExternalMSBuild)' != 'true'"
|
||||
AssemblyFile="@(IntermediateAssembly)"
|
||||
ReferencesFilePath="$(AvaloniaXamlReferencesTemporaryFilePath)"
|
||||
OriginalCopyPath="$(AvaloniaXamlOriginalCopyFilePath)"
|
||||
ProjectDirectory="$(MSBuildProjectDirectory)"
|
||||
/>
|
||||
<Exec
|
||||
Condition="'$(_AvaloniaUseExternalMSBuild)' == 'true'"
|
||||
Command="dotnet msbuild /nodereuse:false $(MSBuildProjectFile) /t:CompileAvaloniaXaml /p:_AvaloniaForceInternalMSBuild=true /p:Configuration=$(Configuration) /p:TargetFramework=$(TargetFramework) /p:BuildProjectReferences=false"/>
|
||||
</Target>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<UpToDateCheckInput Include="@(AvaloniaResource)" />
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
## About
|
||||
|
||||
Avalonia is a WPF-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of OSs: Windows (.NET Framework, .NET Core), Linux (GTK), MacOS, Android and iOS.
|
||||
**Avalonia** is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
|
||||
|
||||
**Avalonia is currently in beta** which means that the framework is generally usable for writing applications, but there may be some bugs and breaking changes as we continue development.
|
||||
**Avalonia** is ready for **General-Purpose Desktop App Development**. However there may be some bugs and breaking changes as we continue along into this project's development. To see the status for some of our features, please see our [Roadmap here](https://github.com/AvaloniaUI/Avalonia/issues/2239).
|
||||
|
||||
| Control catalog | Desktop platforms | Mobile platforms |
|
||||
|---|---|---|
|
||||
@@ -40,11 +40,11 @@ https://github.com/AvaloniaUI/Avalonia/wiki/Using-nightly-build-feed
|
||||
|
||||
## Documentation
|
||||
|
||||
As mentioned above, Avalonia is still in beta and as such there's not much documentation yet. You can take a look at the [getting started page](http://avaloniaui.net/docs/quickstart/) for an overview of how to get started but probably the best thing to do for now is to already know a little bit about WPF/Silverlight/UWP/XAML and ask questions in our [Gitter room](https://gitter.im/AvaloniaUI/Avalonia).
|
||||
You can take a look at the [getting started page](http://avaloniaui.net/docs/quickstart/) for an overview of how to get started but probably the best thing to do for now is to already know a little bit about WPF/Silverlight/UWP/XAML and ask questions in our [Gitter room](https://gitter.im/AvaloniaUI/Avalonia).
|
||||
|
||||
There's also a high-level [architecture document](http://avaloniaui.net/architecture/project-structure) that is currently a little bit out of date, and I've also started writing blog posts on Avalonia at http://grokys.github.io/.
|
||||
|
||||
Contributions are always welcome!
|
||||
Contributions for our docs are always welcome!
|
||||
|
||||
## Building and Using
|
||||
|
||||
@@ -80,6 +80,4 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
||||
<a href="https://opencollective.com/Avalonia/sponsor/6/website" target="_blank"><img src="https://opencollective.com/Avalonia/sponsor/6/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/Avalonia/sponsor/7/website" target="_blank"><img src="https://opencollective.com/Avalonia/sponsor/7/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/Avalonia/sponsor/8/website" target="_blank"><img src="https://opencollective.com/Avalonia/sponsor/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/Avalonia/sponsor/9/website" target="_blank"><img src="https://opencollective.com/Avalonia/sponsor/9/avatar.svg"></a>
|
||||
|
||||
|
||||
<a href="https://opencollective.com/Avalonia/sponsor/9/website" target="_blank"><img src="https://opencollective.com/Avalonia/sponsor/9/avatar.svg"></a>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<Application xmlns="https://github.com/avaloniaui">
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
|
||||
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/>
|
||||
</Application.Styles>
|
||||
<Application
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="BindingDemo.App">
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
|
||||
</Application.Styles>
|
||||
</Application>
|
||||
@@ -14,4 +14,5 @@
|
||||
<Import Project="..\..\build\ReactiveUI.props" />
|
||||
<Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" />
|
||||
<Import Project="..\..\build\ReferenceCoreLibraries.props" />
|
||||
<Import Project="..\..\build\BuildTargets.targets" />
|
||||
</Project>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
|
||||
xmlns:vm="clr-namespace:BindingDemo.ViewModels"
|
||||
x:Class="BindingDemo.MainWindow"
|
||||
xmlns:vm="clr-namespace:BindingDemo.ViewModels"
|
||||
xmlns:local="clr-namespace:BindingDemo"
|
||||
Title="AvaloniaUI Bindings Test"
|
||||
Width="800"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui">
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
|
||||
x:Class="BindingDemo.TestItemView">
|
||||
<StackPanel>
|
||||
<TextBlock Classes="h1" Text="{Binding StringValue}"/>
|
||||
<TextBox Text="{Binding Detail}" AcceptsReturn="True"/>
|
||||
|
||||
@@ -26,8 +26,7 @@ namespace ControlCatalog
|
||||
=> AppBuilder.Configure<App>()
|
||||
.LogToDebug()
|
||||
.UsePlatformDetect()
|
||||
.UseReactiveUI()
|
||||
.UseDataGrid();
|
||||
.UseReactiveUI();
|
||||
|
||||
private static void ConfigureAssetAssembly(AppBuilder builder)
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -10,6 +11,7 @@
|
||||
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Desktop\Avalonia.Desktop.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.X11\Avalonia.X11.csproj" />
|
||||
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2019013001"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Skia;
|
||||
using Avalonia.ReactiveUI;
|
||||
|
||||
@@ -11,7 +12,7 @@ namespace ControlCatalog.NetCore
|
||||
static class Program
|
||||
{
|
||||
|
||||
static void Main(string[] args)
|
||||
static int Main(string[] args)
|
||||
{
|
||||
Thread.CurrentThread.TrySetApartmentState(ApartmentState.STA);
|
||||
if (args.Contains("--wait-for-attach"))
|
||||
@@ -25,30 +26,30 @@ namespace ControlCatalog.NetCore
|
||||
}
|
||||
}
|
||||
|
||||
var builder = BuildAvaloniaApp();
|
||||
if (args.Contains("--fbdev"))
|
||||
AppBuilder.Configure<App>().InitializeWithLinuxFramebuffer(tl =>
|
||||
{
|
||||
tl.Content = new MainView();
|
||||
System.Threading.ThreadPool.QueueUserWorkItem(_ => ConsoleSilencer());
|
||||
});
|
||||
{
|
||||
System.Threading.ThreadPool.QueueUserWorkItem(_ => ConsoleSilencer());
|
||||
return builder.StartLinuxFramebuffer(args);
|
||||
}
|
||||
else
|
||||
BuildAvaloniaApp().Start(AppMain, args);
|
||||
return builder.StartWithClassicDesktopLifetime(args);
|
||||
}
|
||||
|
||||
static void AppMain(Application app, string[] args)
|
||||
{
|
||||
app.Run(new MainWindow());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// This method is needed for IDE previewer infrastructure
|
||||
/// </summary>
|
||||
public static AppBuilder BuildAvaloniaApp()
|
||||
=> AppBuilder.Configure<App>()
|
||||
.UsePlatformDetect()
|
||||
.With(new X11PlatformOptions {EnableMultiTouch = true})
|
||||
.With(new Win32PlatformOptions
|
||||
{
|
||||
EnableMultitouch = true,
|
||||
AllowEglInitialization = true
|
||||
})
|
||||
.UseSkia()
|
||||
.UseReactiveUI()
|
||||
.UseDataGrid();
|
||||
.UseReactiveUI();
|
||||
|
||||
static void ConsoleSilencer()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
|
||||
<StyleInclude Source="resm:Avalonia.Controls.DataGrid.Themes.Default.xaml?assembly=Avalonia.Controls.DataGrid"/>
|
||||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Default.xaml"/>
|
||||
<Style Selector="TextBlock.h1">
|
||||
<Setter Property="FontSize" Value="{DynamicResource FontSizeLarge}"/>
|
||||
<Setter Property="FontWeight" Value="Medium"/>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace ControlCatalog
|
||||
@@ -9,5 +10,15 @@ namespace ControlCatalog
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
{
|
||||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime)
|
||||
desktopLifetime.MainWindow = new MainWindow();
|
||||
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewLifetime)
|
||||
singleViewLifetime.MainView = new MainView();
|
||||
|
||||
base.OnFrameworkInitializationCompleted();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
<TabItem Header="LayoutTransformControl"><pages:LayoutTransformControlPage/></TabItem>
|
||||
<TabItem Header="ListBox"><pages:ListBoxPage/></TabItem>
|
||||
<TabItem Header="Menu"><pages:MenuPage/></TabItem>
|
||||
<TabItem Header="Notifications"><pages:NotificationsPage/></TabItem>
|
||||
<TabItem Header="NumericUpDown"><pages:NumericUpDownPage/></TabItem>
|
||||
<TabItem Header="Pointers (Touch)"><pages:PointersPage/></TabItem>
|
||||
<TabItem Header="ProgressBar"><pages:ProgressBarPage/></TabItem>
|
||||
<TabItem Header="RadioButton"><pages:RadioButtonPage/></TabItem>
|
||||
<TabItem Header="Slider"><pages:SliderPage/></TabItem>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Markup.Xaml.MarkupExtensions;
|
||||
using Avalonia.Markup.Xaml.Styling;
|
||||
using Avalonia.Markup.Xaml.XamlIl;
|
||||
using Avalonia.Platform;
|
||||
using ControlCatalog.Pages;
|
||||
|
||||
@@ -12,7 +15,7 @@ namespace ControlCatalog
|
||||
{
|
||||
public MainView()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
if (AvaloniaLocator.Current.GetService<IRuntimePlatform>().GetRuntimeInfo().IsDesktop)
|
||||
{
|
||||
IList tabItems = ((IList)this.FindControl<TabControl>("Sidebar").Items);
|
||||
@@ -28,8 +31,17 @@ namespace ControlCatalog
|
||||
});
|
||||
|
||||
}
|
||||
var light = AvaloniaXamlLoader.Parse<StyleInclude>(@"<StyleInclude xmlns='https://github.com/avaloniaui' Source='resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default'/>");
|
||||
var dark = AvaloniaXamlLoader.Parse<StyleInclude>(@"<StyleInclude xmlns='https://github.com/avaloniaui' Source='resm:Avalonia.Themes.Default.Accents.BaseDark.xaml?assembly=Avalonia.Themes.Default'/>");
|
||||
|
||||
var light = new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog"))
|
||||
{
|
||||
Source = new Uri("resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default")
|
||||
};
|
||||
var dark = new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog"))
|
||||
{
|
||||
Source = new Uri("resm:Avalonia.Themes.Default.Accents.BaseDark.xaml?assembly=Avalonia.Themes.Default")
|
||||
};
|
||||
|
||||
|
||||
var themes = this.Find<ComboBox>("Themes");
|
||||
themes.SelectionChanged += (sender, e) =>
|
||||
{
|
||||
@@ -45,10 +57,5 @@ namespace ControlCatalog
|
||||
};
|
||||
Styles.Add(light);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
<Window xmlns="https://github.com/avaloniaui" MinWidth="500" MinHeight="300"
|
||||
xmlns:pages="clr-namespace:ControlCatalog.Pages"
|
||||
Title="Avalonia Control Gallery"
|
||||
Icon="/Assets/test_icon.ico"
|
||||
xmlns:local="clr-namespace:ControlCatalog"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="clr-namespace:ControlCatalog.ViewModels"
|
||||
xmlns:v="clr-namespace:ControlCatalog.Views"
|
||||
x:Class="ControlCatalog.MainWindow">
|
||||
<local:MainView/>
|
||||
<Window.DataTemplates>
|
||||
<DataTemplate DataType="vm:NotificationViewModel">
|
||||
<v:CustomNotificationView />
|
||||
</DataTemplate>
|
||||
</Window.DataTemplates>
|
||||
<Panel>
|
||||
<local:MainView/>
|
||||
</Panel>
|
||||
</Window>
|
||||
|
||||
@@ -1,18 +1,33 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Notifications;
|
||||
using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Threading;
|
||||
using ControlCatalog.ViewModels;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ControlCatalog
|
||||
{
|
||||
public class MainWindow : Window
|
||||
{
|
||||
private WindowNotificationManager _notificationArea;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.AttachDevTools();
|
||||
//Renderer.DrawFps = true;
|
||||
//Renderer.DrawDirtyRects = Renderer.DrawFps = true;
|
||||
|
||||
_notificationArea = new WindowNotificationManager(this)
|
||||
{
|
||||
Position = NotificationPosition.TopRight,
|
||||
MaxItems = 3
|
||||
};
|
||||
|
||||
DataContext = new MainWindowViewModel(_notificationArea);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
|
||||
@@ -5,14 +5,5 @@ namespace ControlCatalog.Pages
|
||||
{
|
||||
public class ButtonPage : UserControl
|
||||
{
|
||||
public ButtonPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace ControlCatalog.Pages
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
private void OnSpin(object sender, SpinEventArgs e)
|
||||
public void OnSpin(object sender, SpinEventArgs e)
|
||||
{
|
||||
var spinner = (ButtonSpinner)sender;
|
||||
var txtBox = (TextBlock)spinner.Content;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using ControlCatalog.ViewModels;
|
||||
@@ -12,6 +13,18 @@ namespace ControlCatalog.Pages
|
||||
DataContext = new ContextMenuPageViewModel();
|
||||
}
|
||||
|
||||
private ContextMenuPageViewModel _model;
|
||||
protected override void OnDataContextChanged(EventArgs e)
|
||||
{
|
||||
if (_model != null)
|
||||
_model.View = null;
|
||||
_model = DataContext as ContextMenuPageViewModel;
|
||||
if (_model != null)
|
||||
_model.View = this;
|
||||
|
||||
base.OnDataContextChanged(e);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<Setter Property="Background" Value="{Binding Path=GDP, Mode=OneWay, Converter={StaticResource GDPConverter}}" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
<Grid RowDefinitions="Auto,Auto">
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<StackPanel Orientation="Vertical" Spacing="4" Grid.Row="0">
|
||||
<TextBlock Classes="h1">DataGrid</TextBlock>
|
||||
<TextBlock Classes="h2">A control for displaying and interacting with a data source.</TextBlock>
|
||||
@@ -52,4 +52,4 @@
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
</UserControl>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive;
|
||||
using System.Threading.Tasks;
|
||||
@@ -21,5 +22,18 @@ namespace ControlCatalog.Pages
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
private MenuPageViewModel _model;
|
||||
protected override void OnDataContextChanged(EventArgs e)
|
||||
{
|
||||
if (_model != null)
|
||||
_model.View = null;
|
||||
_model = DataContext as MenuPageViewModel;
|
||||
if (_model != null)
|
||||
_model.View = this;
|
||||
|
||||
base.OnDataContextChanged(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="ControlCatalog.Pages.NotificationsPage">
|
||||
<StackPanel Orientation="Vertical" Spacing="4" HorizontalAlignment="Left">
|
||||
<TextBlock Classes="h1">Notifications</TextBlock>
|
||||
<Button Content="Show Standard Managed Notification" Command="{Binding ShowManagedNotificationCommand}" />
|
||||
<Button Content="Show Custom Managed Notification" Command="{Binding ShowCustomManagedNotificationCommand}" />
|
||||
<Button Content="Show Native Notification" Command="{Binding ShowNativeNotificationCommand}" />
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,18 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace ControlCatalog.Pages
|
||||
{
|
||||
public class NotificationsPage : UserControl
|
||||
{
|
||||
public NotificationsPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user