window default size

main
syneffort 1 year ago
parent 7345ab2ecb
commit 9d70c5f687
  1. 13
      MyFirstMauiApp/WeatherClient/App.xaml.cs
  2. 25
      MyFirstMauiApp/WeatherClient/WeatherClient.sln

@ -1,4 +1,5 @@
namespace WeatherClient

namespace WeatherClient
{
public partial class App : Application
{
@ -8,5 +9,15 @@
MainPage = new AppShell();
}
protected override Window CreateWindow(IActivationState activationState)
{
Window window = base.CreateWindow(activationState);
#if WINDOWS
window.Width = 500;
window.Height = 300;
#endif
return window;
}
}
}

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeatherClient", "WeatherClient.csproj", "{7628391E-6231-4B22-9EB9-4855B8426860}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7628391E-6231-4B22-9EB9-4855B8426860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7628391E-6231-4B22-9EB9-4855B8426860}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7628391E-6231-4B22-9EB9-4855B8426860}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7628391E-6231-4B22-9EB9-4855B8426860}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AD30111B-1180-41AC-93B0-BE512D191AB8}
EndGlobalSection
EndGlobal
Loading…
Cancel
Save