diff --git a/Samples.sln b/Samples.sln
index f0a068f..2f3cbeb 100644
--- a/Samples.sln
+++ b/Samples.sln
@@ -11,6 +11,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_BindingToA2dArray_contex
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_BindingToA2dArray_v2", "ch03_DataBinding\ex_BindingToA2dArray_v2\ex_BindingToA2dArray_v2.csproj", "{C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ch02_DesigningViews", "ch02_DesigningViews", "{1E07D063-F377-413B-B9A0-FB94AF14B1A9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_ShadowLabel", "ch02_DesigningViews\ex_ShadowLabel\ex_ShadowLabel.csproj", "{62F4D4C2-7C79-4090-BB4B-20F848322113}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_OutlineText", "ch02_DesigningViews\ex_OutlineText\ex_OutlineText.csproj", "{EAD02985-9DBA-459D-B12E-32A89D2C95C5}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -29,6 +35,14 @@ Global
{C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {62F4D4C2-7C79-4090-BB4B-20F848322113}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {62F4D4C2-7C79-4090-BB4B-20F848322113}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {62F4D4C2-7C79-4090-BB4B-20F848322113}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {62F4D4C2-7C79-4090-BB4B-20F848322113}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -37,5 +51,7 @@ Global
{AB5CCC4D-10B3-4116-A6B3-D1F720507608} = {E9273679-4D52-465F-8C23-8096DD8C2A7B}
{43E82F4F-6EBA-4708-A392-1B2E8130A19E} = {E9273679-4D52-465F-8C23-8096DD8C2A7B}
{C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4} = {E9273679-4D52-465F-8C23-8096DD8C2A7B}
+ {62F4D4C2-7C79-4090-BB4B-20F848322113} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9}
+ {EAD02985-9DBA-459D-B12E-32A89D2C95C5} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9}
EndGlobalSection
EndGlobal
diff --git a/ch02_DesigningViews/ex_OutlineText/App.xaml b/ch02_DesigningViews/ex_OutlineText/App.xaml
new file mode 100644
index 0000000..74bf477
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/App.xaml.cs b/ch02_DesigningViews/ex_OutlineText/App.xaml.cs
new file mode 100644
index 0000000..c34c496
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/App.xaml.cs
@@ -0,0 +1,11 @@
+namespace ex_OutlineText;
+
+public partial class App : Application
+{
+ public App()
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/AppShell.xaml b/ch02_DesigningViews/ex_OutlineText/AppShell.xaml
new file mode 100644
index 0000000..b4a4c77
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/AppShell.xaml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/AppShell.xaml.cs b/ch02_DesigningViews/ex_OutlineText/AppShell.xaml.cs
new file mode 100644
index 0000000..76b8e61
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/AppShell.xaml.cs
@@ -0,0 +1,9 @@
+namespace ex_OutlineText;
+
+public partial class AppShell : Shell
+{
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/MainPage.xaml b/ch02_DesigningViews/ex_OutlineText/MainPage.xaml
new file mode 100644
index 0000000..d3f808d
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/MainPage.xaml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/MainPage.xaml.cs b/ch02_DesigningViews/ex_OutlineText/MainPage.xaml.cs
new file mode 100644
index 0000000..2e740b0
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/MainPage.xaml.cs
@@ -0,0 +1,48 @@
+using SkiaSharp;
+using SkiaSharp.Views.Maui;
+
+namespace ex_OutlineText;
+
+public partial class MainPage : ContentPage
+{
+ public MainPage()
+ {
+ InitializeComponent();
+ }
+
+ private void OnPainting(object sender, SKPaintSurfaceEventArgs args)
+ {
+ SKImageInfo info = args.Info;
+ SKSurface surface = args.Surface;
+ SKCanvas canvas = surface.Canvas;
+
+ canvas.Clear();
+
+ string text = "OUTLINE";
+
+ // Create an SKPaint object to display the text
+ SKPaint textPaint = new SKPaint
+ {
+ Style = SKPaintStyle.Stroke,
+ StrokeWidth = 1,
+ FakeBoldText = true,
+ Color = SKColors.Blue
+ };
+
+ // Adjust TextSize property so text is 95% of screen width
+ float textWidth = textPaint.MeasureText(text);
+ textPaint.TextSize = 0.95f * info.Width * textPaint.TextSize / textWidth;
+
+ // Find the text bounds
+ SKRect textBounds = new SKRect();
+ textPaint.MeasureText(text, ref textBounds);
+
+ // Calculate offsets to center the text on the screen
+ float xText = info.Width / 2 - textBounds.MidX;
+ float yText = info.Height / 2 - textBounds.MidY;
+
+ // And draw the text
+ canvas.DrawText(text, xText, yText, textPaint);
+ }
+}
+
diff --git a/ch02_DesigningViews/ex_OutlineText/MauiProgram.cs b/ch02_DesigningViews/ex_OutlineText/MauiProgram.cs
new file mode 100644
index 0000000..51e8c8d
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/MauiProgram.cs
@@ -0,0 +1,26 @@
+using Microsoft.Extensions.Logging;
+using SkiaSharp.Views.Maui.Controls.Hosting;
+
+namespace ex_OutlineText;
+
+public static class MauiProgram
+{
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .UseSkiaSharp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Android/AndroidManifest.xml b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..bdec9b5
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainActivity.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..2132c8b
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainActivity.cs
@@ -0,0 +1,10 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace ex_OutlineText;
+
+[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+public class MainActivity : MauiAppCompatActivity
+{
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainApplication.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..89bc285
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/MainApplication.cs
@@ -0,0 +1,15 @@
+using Android.App;
+using Android.Runtime;
+
+namespace ex_OutlineText;
+
+[Application]
+public class MainApplication : MauiApplication
+{
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Android/Resources/values/colors.xml b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..5cd1604
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/AppDelegate.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..8f9ddc6
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace ex_OutlineText;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Entitlements.plist b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 0000000..8e87c0c
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Info.plist b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..f24aacc
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Program.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..1583885
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace ex_OutlineText;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/Main.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..5c7e598
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/Main.cs
@@ -0,0 +1,16 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace ex_OutlineText;
+
+class Program : MauiApplication
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/tizen-manifest.xml b/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..9a7cda5
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..926a48f
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..483fd08
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,24 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace ex_OutlineText.WinUI;
+
+///
+/// Provides application-specific behavior to supplement the default Application class.
+///
+public partial class App : MauiWinUIApplication
+{
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/Package.appxmanifest b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..3f400fd
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/app.manifest b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..faf2ff4
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/AppDelegate.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..8f9ddc6
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace ex_OutlineText;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Info.plist b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..358337b
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Program.cs b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..1583885
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Platforms/iOS/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace ex_OutlineText;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
diff --git a/ch02_DesigningViews/ex_OutlineText/Properties/launchSettings.json b/ch02_DesigningViews/ex_OutlineText/Properties/launchSettings.json
new file mode 100644
index 0000000..c16206a
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appicon.svg b/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..5f04fcf
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appiconfg.svg b/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..62d66d7
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Regular.ttf b/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..2d1edf0
Binary files /dev/null and b/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Semibold.ttf b/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..fe13d06
Binary files /dev/null and b/ch02_DesigningViews/ex_OutlineText/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Images/dotnet_bot.png b/ch02_DesigningViews/ex_OutlineText/Resources/Images/dotnet_bot.png
new file mode 100644
index 0000000..f93ce02
Binary files /dev/null and b/ch02_DesigningViews/ex_OutlineText/Resources/Images/dotnet_bot.png differ
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Raw/AboutAssets.txt b/ch02_DesigningViews/ex_OutlineText/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..50b8a7b
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Splash/splash.svg b/ch02_DesigningViews/ex_OutlineText/Resources/Splash/splash.svg
new file mode 100644
index 0000000..62d66d7
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Colors.xaml b/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..22f0a67
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Styles.xaml b/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..5bc20f1
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Resources/Styles/Styles.xaml
@@ -0,0 +1,426 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml b/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml
new file mode 100644
index 0000000..cc27e7f
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml.cs b/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml.cs
new file mode 100644
index 0000000..d36edac
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/Views/LabelOutline.xaml.cs
@@ -0,0 +1,100 @@
+using SkiaSharp;
+using SkiaSharp.Views.Maui;
+
+namespace ex_OutlineText.Views;
+
+public partial class LabelOutline : ContentView
+{
+ public LabelOutline()
+ {
+ InitializeComponent();
+ }
+
+ public static readonly BindableProperty TextProperty
+ = BindableProperty.Create(nameof(Text),
+ typeof(string),
+ typeof(LabelOutline),
+ "something");
+
+ public string Text
+ {
+ get { return (string)GetValue(TextProperty); }
+ set { SetValue(TextProperty, value); }
+ }
+
+ public static readonly BindableProperty FillProperty
+ = BindableProperty.Create(nameof(Fill),
+ typeof(Color),
+ typeof(LabelOutline),
+ Colors.DarkSalmon);
+
+ public Color Fill
+ {
+ get { return (Color)GetValue(FillProperty); }
+ set { SetValue(FillProperty, value); }
+ }
+
+ public static readonly BindableProperty StrokeProperty
+ = BindableProperty.Create(nameof(Stroke),
+ typeof(Color),
+ typeof(LabelOutline),
+ Colors.DarkSalmon);
+
+ public Color Stroke
+ {
+ get { return (Color)GetValue(StrokeProperty); }
+ set { SetValue(StrokeProperty, value); }
+ }
+
+ public static readonly BindableProperty StrokeWidthProperty
+ = BindableProperty.Create(nameof(StrokeWidth),
+ typeof(float),
+ typeof(LabelOutline),
+ 1.0f);
+
+ public float StrokeWidth
+ {
+ get { return (float)GetValue(StrokeWidthProperty); }
+ set { SetValue(StrokeWidthProperty, value); }
+ }
+
+ private void OnPainting(object sender, SKPaintSurfaceEventArgs args)
+ {
+ SKImageInfo info = args.Info;
+ SKSurface surface = args.Surface;
+ SKCanvas canvas = surface.Canvas;
+
+ canvas.Clear();
+
+ string text = Text;
+
+ // Create an SKPaint object to display the text
+ SKPaint textPaint = new SKPaint
+ {
+ Style = SKPaintStyle.Fill,
+ StrokeWidth = StrokeWidth,
+ FakeBoldText = true,
+ Color = Fill.ToSKColor()
+ };
+
+ // Adjust TextSize property so text is 95% of screen width
+ float textWidth = textPaint.MeasureText(text);
+ textPaint.TextSize = 0.95f * info.Width * textPaint.TextSize / textWidth;
+
+ // Find the text bounds
+ SKRect textBounds = new SKRect();
+ textPaint.MeasureText(text, ref textBounds);
+
+ // Calculate offsets to center the text on the screen
+ float xText = info.Width / 2 - textBounds.MidX;
+ float yText = info.Height / 2 - textBounds.MidY;
+
+ // And draw the text
+ canvas.DrawText(text, xText, yText, textPaint);
+
+ textPaint.Style = SKPaintStyle.Stroke;
+ textPaint.Color = Stroke.ToSKColor();
+
+ canvas.DrawText(text, xText, yText, textPaint);
+ }
+}
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_OutlineText/ex_OutlineText.csproj b/ch02_DesigningViews/ex_OutlineText/ex_OutlineText.csproj
new file mode 100644
index 0000000..db82c2d
--- /dev/null
+++ b/ch02_DesigningViews/ex_OutlineText/ex_OutlineText.csproj
@@ -0,0 +1,66 @@
+
+
+
+ net8.0-android;net8.0-ios;net8.0-maccatalyst
+ $(TargetFrameworks);net8.0-windows10.0.19041.0
+
+
+
+
+
+
+ Exe
+ ex_OutlineText
+ true
+ true
+ enable
+ enable
+
+
+ ex_OutlineText
+
+
+ com.companyname.ex_outlinetext
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/App.xaml b/ch02_DesigningViews/ex_ShadowLabel/App.xaml
new file mode 100644
index 0000000..4034f53
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/App.xaml.cs b/ch02_DesigningViews/ex_ShadowLabel/App.xaml.cs
new file mode 100644
index 0000000..078cb49
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/App.xaml.cs
@@ -0,0 +1,11 @@
+namespace ex_ShadowLabel;
+
+public partial class App : Application
+{
+ public App()
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml b/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml
new file mode 100644
index 0000000..398df7f
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml.cs b/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml.cs
new file mode 100644
index 0000000..d9b31bd
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/AppShell.xaml.cs
@@ -0,0 +1,9 @@
+namespace ex_ShadowLabel;
+
+public partial class AppShell : Shell
+{
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml b/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml
new file mode 100644
index 0000000..e56dcbd
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml.cs b/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml.cs
new file mode 100644
index 0000000..8392d34
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/MainPage.xaml.cs
@@ -0,0 +1,10 @@
+namespace ex_ShadowLabel;
+
+public partial class MainPage : ContentPage
+{
+ public MainPage()
+ {
+ InitializeComponent();
+ }
+}
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/MauiProgram.cs b/ch02_DesigningViews/ex_ShadowLabel/MauiProgram.cs
new file mode 100644
index 0000000..aa53208
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/MauiProgram.cs
@@ -0,0 +1,24 @@
+using Microsoft.Extensions.Logging;
+
+namespace ex_ShadowLabel;
+
+public static class MauiProgram
+{
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/AndroidManifest.xml b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..bdec9b5
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainActivity.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..8ca3e17
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainActivity.cs
@@ -0,0 +1,10 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace ex_ShadowLabel;
+
+[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+public class MainActivity : MauiAppCompatActivity
+{
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainApplication.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..4ece290
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/MainApplication.cs
@@ -0,0 +1,15 @@
+using Android.App;
+using Android.Runtime;
+
+namespace ex_ShadowLabel;
+
+[Application]
+public class MainApplication : MauiApplication
+{
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/Resources/values/colors.xml b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..5cd1604
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/AppDelegate.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..b49d418
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace ex_ShadowLabel;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Entitlements.plist b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 0000000..8e87c0c
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Info.plist b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..f24aacc
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Program.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..f7e30b9
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace ex_ShadowLabel;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/Main.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..70e937f
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/Main.cs
@@ -0,0 +1,16 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace ex_ShadowLabel;
+
+class Program : MauiApplication
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/tizen-manifest.xml b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..0e42142
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..fd5ab1d
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..4c563f0
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,24 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace ex_ShadowLabel.WinUI;
+
+///
+/// Provides application-specific behavior to supplement the default Application class.
+///
+public partial class App : MauiWinUIApplication
+{
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/Package.appxmanifest b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..71bf060
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/app.manifest b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..5728d5e
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/AppDelegate.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..b49d418
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace ex_ShadowLabel;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Info.plist b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..358337b
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Program.cs b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..f7e30b9
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Platforms/iOS/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace ex_ShadowLabel;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Properties/launchSettings.json b/ch02_DesigningViews/ex_ShadowLabel/Properties/launchSettings.json
new file mode 100644
index 0000000..c16206a
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appicon.svg b/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..5f04fcf
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appiconfg.svg b/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..62d66d7
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Regular.ttf b/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..2d1edf0
Binary files /dev/null and b/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Semibold.ttf b/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..fe13d06
Binary files /dev/null and b/ch02_DesigningViews/ex_ShadowLabel/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Images/dotnet_bot.png b/ch02_DesigningViews/ex_ShadowLabel/Resources/Images/dotnet_bot.png
new file mode 100644
index 0000000..f93ce02
Binary files /dev/null and b/ch02_DesigningViews/ex_ShadowLabel/Resources/Images/dotnet_bot.png differ
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Raw/AboutAssets.txt b/ch02_DesigningViews/ex_ShadowLabel/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..50b8a7b
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Splash/splash.svg b/ch02_DesigningViews/ex_ShadowLabel/Resources/Splash/splash.svg
new file mode 100644
index 0000000..62d66d7
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Colors.xaml b/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..22f0a67
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Styles.xaml b/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..5bc20f1
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/Resources/Styles/Styles.xaml
@@ -0,0 +1,426 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ch02_DesigningViews/ex_ShadowLabel/ex_ShadowLabel.csproj b/ch02_DesigningViews/ex_ShadowLabel/ex_ShadowLabel.csproj
new file mode 100644
index 0000000..1a646ee
--- /dev/null
+++ b/ch02_DesigningViews/ex_ShadowLabel/ex_ShadowLabel.csproj
@@ -0,0 +1,65 @@
+
+
+
+ net8.0-android;net8.0-ios;net8.0-maccatalyst
+ $(TargetFrameworks);net8.0-windows10.0.19041.0
+
+
+
+
+
+
+ Exe
+ ex_VeryStyledLabel
+ true
+ true
+ enable
+ enable
+
+
+ ex_VeryStyledLabel
+
+
+ com.companyname.ex_verystyledlabel
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+