diff --git a/Source/Azure/ProjectLab_AzureIoTHub/ProjectLab_AzureIoTHub.csproj b/Source/Azure/ProjectLab_AzureIoTHub/ProjectLab_AzureIoTHub.csproj index 09f99486..ab9dec44 100644 --- a/Source/Azure/ProjectLab_AzureIoTHub/ProjectLab_AzureIoTHub.csproj +++ b/Source/Azure/ProjectLab_AzureIoTHub/ProjectLab_AzureIoTHub.csproj @@ -31,6 +31,9 @@ + + Always + PreserveNewest diff --git a/Source/Azure/ProjectLab_AzureIoTHub/app.build.yaml b/Source/Azure/ProjectLab_AzureIoTHub/app.build.yaml new file mode 100644 index 00000000..c74fbb0a --- /dev/null +++ b/Source/Azure/ProjectLab_AzureIoTHub/app.build.yaml @@ -0,0 +1,2 @@ +Deploy: + NoLink: [ ProjectLab ] \ No newline at end of file diff --git a/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml b/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml index 8e0307de..ebe17f12 100644 --- a/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml +++ b/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml @@ -7,6 +7,6 @@ - + diff --git a/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml.cs b/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml.cs index 2c4082bf..94f1ad68 100644 --- a/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml.cs +++ b/Source/Meadow.Desktop/AvaloniaMeadow/App.axaml.cs @@ -12,7 +12,7 @@ namespace AvaloniaMeadow { - public partial class App : AvaloniaMeadowApplication + public partial class App : AvaloniaMeadowApplication { public override void OnFrameworkInitializationCompleted() { diff --git a/Source/Meadow.Desktop/AvaloniaMeadow/AvaloniaMeadow.csproj b/Source/Meadow.Desktop/AvaloniaMeadow/AvaloniaMeadow.csproj index 18a15ea4..9aea5ce3 100644 --- a/Source/Meadow.Desktop/AvaloniaMeadow/AvaloniaMeadow.csproj +++ b/Source/Meadow.Desktop/AvaloniaMeadow/AvaloniaMeadow.csproj @@ -22,12 +22,17 @@ - - + + + + + - - - + + None + All + + diff --git a/Source/Meadow.Desktop/AvaloniaMeadow/ViewLocator.cs b/Source/Meadow.Desktop/AvaloniaMeadow/ViewLocator.cs index f05ef689..4dc3de79 100644 --- a/Source/Meadow.Desktop/AvaloniaMeadow/ViewLocator.cs +++ b/Source/Meadow.Desktop/AvaloniaMeadow/ViewLocator.cs @@ -7,9 +7,14 @@ namespace AvaloniaMeadow { public class ViewLocator : IDataTemplate { - public IControl Build(object data) + public bool Match(object data) + { + return data is ViewModelBase; + } + + Control? ITemplate.Build(object? param) { - var name = data.GetType().FullName!.Replace("ViewModel", "View"); + var name = param.GetType().FullName!.Replace("ViewModel", "View"); var type = Type.GetType(name); if (type != null) @@ -19,10 +24,5 @@ public IControl Build(object data) return new TextBlock { Text = "Not Found: " + name }; } - - public bool Match(object data) - { - return data is ViewModelBase; - } } } \ No newline at end of file