This commit is contained in:
Brandon Minnick 2024-10-10 14:47:57 -07:00
Родитель 305a33d545
Коммит c74c9d58bb
20 изменённых файлов: 33 добавлений и 32 удалений

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.App">
x:Class="MvvmSampleMAUI.App">
<Application.Resources>
<Color x:Key="PrimaryColor">#3750D1</Color>
<Color x:Key="FrameBackgroundColorDark">#1AFFFFFF</Color>

Просмотреть файл

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
xmlns:views="clr-namespace:MvvmSampleXF.Views"
x:Class="MvvmSampleXF.AppShell">
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
xmlns:views="clr-namespace:MvvmSampleMAUI.Views"
x:Class="MvvmSampleMAUI.AppShell">
<Shell.FlyoutHeader>
<controls:FlyoutHeader />
</Shell.FlyoutHeader>

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MvvmSampleXF.Controls.FlyoutHeader">
x:Class="MvvmSampleMAUI.Controls.FlyoutHeader">
<Grid BackgroundColor="{AppThemeBinding Dark=Black, Light=White}">
<Image Aspect="AspectFill"
Source="headerBg"

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Controls.InteractiveSample">
x:Class="MvvmSampleMAUI.Controls.InteractiveSample">
<ContentView.Resources>
<ControlTemplate x:Key="InteractiveSampleTemplate">
<Border CornerRadius="4"

Просмотреть файл

@ -3,9 +3,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
xmlns:converters="clr-namespace:MvvmSampleXF.Converters"
x:Class="MvvmSampleXF.Views.AsyncRelayCommandPage"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
xmlns:converters="clr-namespace:MvvmSampleMAUI.Converters"
xmlns:pages="clr-namespace:CommunityToolkit.Maui.Sample.Pages"
x:Class="MvvmSampleMAUI.Views.AsyncRelayCommandPage"
x:DataType="vm:AsyncRelayCommandPageViewModel"
Title="Commands">
<ContentPage.Resources>

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Views.BuildingTheUIPage"
x:Class="MvvmSampleMAUI.Views.BuildingTheUIPage"
x:DataType="vm:SamplePageViewModel"
Title="Building the UI">
<ScrollView Padding="16">

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Views.IntroductionPage"
x:Class="MvvmSampleMAUI.Views.IntroductionPage"
x:DataType="vm:ObservableObjectPageViewModel"
Title="Introduction">
<ScrollView Padding="16">

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Views.IoCPage"
x:Class="MvvmSampleMAUI.Views.IoCPage"
x:DataType="vm:IocPageViewModel"
Title="Inversion of Control">
<ScrollView Padding="16">

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Views.MessengerPage"
x:Class="MvvmSampleMAUI.Views.MessengerPage"
x:DataType="vm:MessengerPageViewModel"
Title="Messenger">
<ScrollView Padding="16">

Просмотреть файл

@ -3,8 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
x:Class="MvvmSampleXF.Views.MessengerRequestPage"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
x:Class="MvvmSampleMAUI.Views.MessengerRequestPage"
Title="Messenger">
<ScrollView Padding="16">
<VerticalStackLayout Padding="16">

Просмотреть файл

@ -3,8 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
x:Class="MvvmSampleXF.Views.MessengerSendPage"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
x:Class="MvvmSampleMAUI.Views.MessengerSendPage"
x:DataType="vm:MessengerPageViewModel"
Title="Messenger">
<ScrollView Padding="16">

Просмотреть файл

@ -3,8 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
x:Class="MvvmSampleXF.Views.ObservableObjectPage"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
x:Class="MvvmSampleMAUI.Views.ObservableObjectPage"
x:DataType="vm:ObservableObjectPageViewModel"
Title="ObservableObject">
<ScrollView Padding="16">

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:Class="MvvmSampleXF.Views.PuttingThingsTogetherPage"
x:Class="MvvmSampleMAUI.Views.PuttingThingsTogetherPage"
x:DataType="vm:SamplePageViewModel">
<ScrollView Padding="16">
<VerticalStackLayout Spacing="16">

Просмотреть файл

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:widgets="clr-namespace:MvvmSampleXF.Views.Widgets"
x:Class="MvvmSampleXF.Views.RedditBrowserPage"
xmlns:widgets="clr-namespace:MvvmSampleMAUI.Views.Widgets"
x:Class="MvvmSampleMAUI.Views.RedditBrowserPage"
Title="The Final Result!">
<Grid Padding="16">
<controls:InteractiveSample ControlTemplate="{StaticResource InteractiveSampleTemplate}">

Просмотреть файл

@ -4,7 +4,7 @@
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:DataType="vm:SamplePageViewModel"
x:Class="MvvmSampleXF.Views.RedditServicePage"
x:Class="MvvmSampleMAUI.Views.RedditServicePage"
Title="Creating a Service">
<ScrollView Padding="16">
<VerticalStackLayout Spacing="16">

Просмотреть файл

@ -3,8 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:controls="clr-namespace:MvvmSampleXF.Controls"
x:Class="MvvmSampleXF.Views.RelayCommandPage"
xmlns:controls="clr-namespace:MvvmSampleMAUI.Controls"
x:Class="MvvmSampleMAUI.Views.RelayCommandPage"
x:DataType="vm:RelayCommandPageViewModel"
Title="Commands">
<ScrollView Padding="16">

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MvvmSampleXF.Views.SettingUpTheViewModelsPage"
x:Class="MvvmSampleMAUI.Views.SettingUpTheViewModelsPage"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:DataType="vm:SamplePageViewModel"

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MvvmSampleXF.Views.SettingsServicePage"
x:Class="MvvmSampleMAUI.Views.SettingsServicePage"
xmlns:vm="clr-namespace:MvvmSample.Core.ViewModels;assembly=MvvmSample.Core"
xmlns:md="clr-namespace:Xam.Forms.Markdown;assembly=Xam.Forms.MarkdownView"
x:DataType="vm:SamplePageViewModel"

Просмотреть файл

@ -2,8 +2,8 @@
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:widgets="clr-namespace:MvvmSample.Core.ViewModels.Widgets;assembly=MvvmSample.Core"
xmlns:converters="clr-namespace:MvvmSampleXF.Converters"
x:Class="MvvmSampleXF.Views.Widgets.PostWidget">
xmlns:converters="clr-namespace:MvvmSampleMAUI.Converters"
x:Class="MvvmSampleMAUI.Views.Widgets.PostWidget">
<ContentView.Resources>
<converters:IsSelfPostToWidthRequestConverter WidthRequest="160"
x:Key="IsSelfPostToWidthRequestConverter" />

Просмотреть файл

@ -4,8 +4,8 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:models="clr-namespace:MvvmSample.Core.Models;assembly=MvvmSample.Core"
xmlns:widgets="clr-namespace:MvvmSample.Core.ViewModels.Widgets;assembly=MvvmSample.Core"
xmlns:converters="clr-namespace:MvvmSampleXF.Converters"
x:Class="MvvmSampleXF.Views.Widgets.SubredditWidget">
xmlns:converters="clr-namespace:MvvmSampleMAUI.Converters"
x:Class="MvvmSampleMAUI.Views.Widgets.SubredditWidget">
<ContentView.Resources>
<converters:IsSelfPostToWidthRequestConverter WidthRequest="120"
x:Key="IsSelfPostToWidthRequestConverter" />