diff --git a/MAUI_Weather/App.xaml.cs b/MAUI_Weather/App.xaml.cs index 9f17e79..aac466f 100644 --- a/MAUI_Weather/App.xaml.cs +++ b/MAUI_Weather/App.xaml.cs @@ -1,4 +1,6 @@ -namespace MAUI_Weather; +using MAUI_Weather.MVVM.Views; + +namespace MAUI_Weather; public partial class App : Application { @@ -6,6 +8,6 @@ public partial class App : Application { InitializeComponent(); - MainPage = new AppShell(); + MainPage = new WeatherView(); } } diff --git a/MAUI_Weather/MAUI_Weather.csproj b/MAUI_Weather/MAUI_Weather.csproj index 6d5cb9d..862e6fe 100644 --- a/MAUI_Weather/MAUI_Weather.csproj +++ b/MAUI_Weather/MAUI_Weather.csproj @@ -54,8 +54,12 @@ - - + + + + + MSBuild:Compile + diff --git a/MAUI_Weather/MVVM/ViewModels/WeatherViewModel.cs b/MAUI_Weather/MVVM/ViewModels/WeatherViewModel.cs new file mode 100644 index 0000000..43856a3 --- /dev/null +++ b/MAUI_Weather/MVVM/ViewModels/WeatherViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MAUI_Weather.MVVM.ViewModels +{ + public class WeatherViewModel + { + } +} diff --git a/MAUI_Weather/MVVM/Views/WeatherView.xaml b/MAUI_Weather/MVVM/Views/WeatherView.xaml new file mode 100644 index 0000000..508eda8 --- /dev/null +++ b/MAUI_Weather/MVVM/Views/WeatherView.xaml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/MAUI_Weather/MVVM/Views/WeatherView.xaml.cs b/MAUI_Weather/MVVM/Views/WeatherView.xaml.cs new file mode 100644 index 0000000..60102e8 --- /dev/null +++ b/MAUI_Weather/MVVM/Views/WeatherView.xaml.cs @@ -0,0 +1,12 @@ +using MAUI_Weather.MVVM.ViewModels; + +namespace MAUI_Weather.MVVM.Views; + +public partial class WeatherView : ContentPage +{ + public WeatherView() + { + InitializeComponent(); + BindingContext = new WeatherViewModel(); + } +} \ No newline at end of file diff --git a/MAUI_Weather/Resources/Styles/Colors.xaml b/MAUI_Weather/Resources/Styles/Colors.xaml index 245758b..0184720 100644 --- a/MAUI_Weather/Resources/Styles/Colors.xaml +++ b/MAUI_Weather/Resources/Styles/Colors.xaml @@ -4,6 +4,11 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> + + #0c134f + #512BD4 #DFD8F7 #2B0B98 diff --git a/MAUI_Weather/Resources/Styles/Styles.xaml b/MAUI_Weather/Resources/Styles/Styles.xaml index dc4a034..c8d0892 100644 --- a/MAUI_Weather/Resources/Styles/Styles.xaml +++ b/MAUI_Weather/Resources/Styles/Styles.xaml @@ -373,7 +373,7 @@