improvements
This commit is contained in:
@@ -9,8 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.Desktop", "Cande
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.Browser", "Candelator.Browser\Candelator.Browser.csproj", "{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.Browser", "Candelator.Browser\Candelator.Browser.csproj", "{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.iOS", "Candelator.iOS\Candelator.iOS.csproj", "{EBD9022F-BC83-4846-9A11-6F7F3772DC64}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.Android", "Candelator.Android\Candelator.Android.csproj", "{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Candelator.Android", "Candelator.Android\Candelator.Android.csproj", "{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3DA99C4E-89E3-4049-9C22-0A7EC60D83D8}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3DA99C4E-89E3-4049-9C22-0A7EC60D83D8}"
|
||||||
@@ -36,10 +34,6 @@ Global
|
|||||||
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.Build.0 = Release|Any CPU
|
{1C1A049E-235C-4CD0-B6FA-D53AC418F4DA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{EBD9022F-BC83-4846-9A11-6F7F3772DC64}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{7AD1DAC8-7FBE-49D5-8614-7321233DB82E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</Application.DataTemplates>
|
</Application.DataTemplates>
|
||||||
|
|
||||||
<Application.Styles>
|
<Application.Styles>
|
||||||
<FluentTheme />
|
<FluentTheme/>
|
||||||
<StyleInclude Source="avares://Pilz.UI.AvaloniaUI/Assets/Styles/EnhancedDefaults.axaml"/>
|
<StyleInclude Source="avares://Pilz.UI.AvaloniaUI/Assets/Styles/EnhancedDefaults.axaml"/>
|
||||||
</Application.Styles>
|
</Application.Styles>
|
||||||
</Application>
|
</Application>
|
||||||
@@ -3,6 +3,7 @@ using Avalonia.Controls.ApplicationLifetimes;
|
|||||||
using Avalonia.Data.Core;
|
using Avalonia.Data.Core;
|
||||||
using Avalonia.Data.Core.Plugins;
|
using Avalonia.Data.Core.Plugins;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Avalonia.Layout;
|
||||||
using Avalonia.Markup.Xaml;
|
using Avalonia.Markup.Xaml;
|
||||||
using Candelator.ViewModels;
|
using Candelator.ViewModels;
|
||||||
using Candelator.Views;
|
using Candelator.Views;
|
||||||
@@ -25,15 +26,20 @@ public partial class App : Application
|
|||||||
DisableAvaloniaDataAnnotationValidation();
|
DisableAvaloniaDataAnnotationValidation();
|
||||||
desktop.MainWindow = new MainWindow
|
desktop.MainWindow = new MainWindow
|
||||||
{
|
{
|
||||||
DataContext = new MainViewModel()
|
DataContext = new MainViewModel(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
|
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
|
||||||
{
|
{
|
||||||
singleViewPlatform.MainView = new MainView
|
singleViewPlatform.MainView = new MainView
|
||||||
{
|
{
|
||||||
DataContext = new MainViewModel()
|
DataContext = new MainViewModel(),
|
||||||
};
|
};
|
||||||
|
// if (false)
|
||||||
|
// {
|
||||||
|
// singleViewPlatform.MainView.VerticalAlignment = VerticalAlignment.Top;
|
||||||
|
// singleViewPlatform.MainView.MaxWidth = 400;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnFrameworkInitializationCompleted();
|
base.OnFrameworkInitializationCompleted();
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
xmlns:langRes="clr-namespace:Candelator.LangRes"
|
xmlns:langRes="clr-namespace:Candelator.LangRes"
|
||||||
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="600"
|
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="600"
|
||||||
x:Class="Candelator.Views.MainView"
|
x:Class="Candelator.Views.MainView"
|
||||||
x:DataType="vm:MainViewModel">
|
x:DataType="vm:MainViewModel"
|
||||||
|
Padding="3">
|
||||||
|
|
||||||
<Design.DataContext>
|
<Design.DataContext>
|
||||||
<vm:MainViewModel/>
|
<vm:MainViewModel/>
|
||||||
|
|||||||
Reference in New Issue
Block a user