diff --git a/CustomSearchToolbar/CustomSearchToolbar.sln b/CustomSearchToolbar/CustomSearchToolbar.sln new file mode 100644 index 0000000..d338e8a --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34310.174 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CustomSearchToolbar", "CustomSearchToolbar\CustomSearchToolbar.csproj", "{BBA73B1E-E93D-461F-BB81-E01B79006E3A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + Release-Xml|Any CPU = Release-Xml|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release|Any CPU.Build.0 = Release|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release|Any CPU.Deploy.0 = Release|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release-Xml|Any CPU.ActiveCfg = Release|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release-Xml|Any CPU.Build.0 = Release|Any CPU + {BBA73B1E-E93D-461F-BB81-E01B79006E3A}.Release-Xml|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E68A9110-FEBA-46B4-8E01-5F1B0008A776} + EndGlobalSection +EndGlobal diff --git a/CustomSearchToolbar/CustomSearchToolbar/App.xaml b/CustomSearchToolbar/CustomSearchToolbar/App.xaml new file mode 100644 index 0000000..d215f6c --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/App.xaml.cs b/CustomSearchToolbar/CustomSearchToolbar/App.xaml.cs new file mode 100644 index 0000000..3148488 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/App.xaml.cs @@ -0,0 +1,12 @@ +namespace CustomSearchToolbar +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml b/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml new file mode 100644 index 0000000..0cae5af --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml.cs b/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml.cs new file mode 100644 index 0000000..909ce15 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace CustomSearchToolbar +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/CustomSearchToolbar.csproj b/CustomSearchToolbar/CustomSearchToolbar/CustomSearchToolbar.csproj new file mode 100644 index 0000000..6584b3e --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/CustomSearchToolbar.csproj @@ -0,0 +1,84 @@ + + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + + + + Exe + CustomSearchToolbar + true + true + enable + enable + + + CustomSearchToolbar + + + com.companyname.customsearchtoolbar + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml b/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml new file mode 100644 index 0000000..cafcbb1 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml.cs b/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml.cs new file mode 100644 index 0000000..5ec1290 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/MainPage.xaml.cs @@ -0,0 +1,86 @@ +using Syncfusion.Maui.PdfViewer; +using System.Reflection; + +namespace CustomSearchToolbar +{ + public partial class MainPage : ContentPage + { + Stream? m_pdfDocumentStream; + TextSearchResult? SearchResult; + public MainPage() + { + InitializeComponent(); + + // Load PDF document from resources + m_pdfDocumentStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("CustomSearchToolbar.zero_degree_rotated_document.pdf"); + PdfViewer.LoadDocument(m_pdfDocumentStream); + } + + //Event handler for the search button click, initiates a text search in a PDF viewer. + private async void Search_Clicked(object sender, EventArgs e) + { + // Set search options based on user preferences. + TextSearchOptions options = SetSearchOptions(); + + // Perform an asynchronous text search in the PDF viewer. + SearchResult = await PdfViewer.SearchTextAsync(TextField.Text, options); + + if(SearchResult != null) + { + // Display an alert message based on the outcome. + if (SearchResult.TotalMatchesCount == 0) + await DisplayAlert("No Match Found!", "Sorry, no matches found. Please try different keywords", "Cancel"); + else + { + // Update UI to show the total matches count and the current match index. + MatchesCount.IsVisible = true; + MatchesCount.Text = "Matches count: " + SearchResult.TotalMatchesCount.ToString(); + CurrentMatch.IsVisible = true; + CurrentMatch.Text = "Current Match: " + SearchResult.CurrentMatchIndex.ToString(); + } + } + } + + // Set search options based on user preferences. + private TextSearchOptions SetSearchOptions() + { + TextSearchOptions options = new TextSearchOptions(); + options = TextSearchOptions.None; + if (MatchCase.IsChecked) + options = TextSearchOptions.CaseSensitive; + return options; + } + + // Moves to the previous match in the search results. + private void Previous_Clicked(object sender, EventArgs e) + { + SearchResult?.GoToPreviousMatch(); + CurrentMatch.IsVisible = true; + CurrentMatch.Text = "Current Match: " + SearchResult?.CurrentMatchIndex.ToString(); + } + + //Moves to the next match in the search results. + private void Next_Clicked(object sender, EventArgs e) + { + SearchResult?.GoToNextMatch(); + CurrentMatch.IsVisible = true; + CurrentMatch.Text = "Current Match: " + SearchResult?.CurrentMatchIndex.ToString(); + } + + //Changes settings of the highlight colors for the current and other matches in the PDF viewer. + private void ChangeHightlightColor_Clicked(object sender, EventArgs e) + { + PdfViewer.TextSearchSettings.CurrentMatchHighlightColor = Color.FromRgba("#8F00FF43"); + PdfViewer.TextSearchSettings.OtherMatchesHighlightColor = Color.FromRgba("#00FF0043"); + } + + //Clears the search results and updates UI elements after closing the search. + private void Close_Clicked(object sender, EventArgs e) + { + SearchResult?.Clear(); + MatchesCount.Text = "Matches count: " + SearchResult?.TotalMatchesCount.ToString(); + CurrentMatch.Text = "Current Match: " + SearchResult?.CurrentMatchIndex.ToString(); + } + } + +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/MauiProgram.cs b/CustomSearchToolbar/CustomSearchToolbar/MauiProgram.cs new file mode 100644 index 0000000..c0b6c20 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/MauiProgram.cs @@ -0,0 +1,26 @@ +using Syncfusion.Maui.Core.Hosting; +using Microsoft.Extensions.Logging; + +namespace CustomSearchToolbar +{ + 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 + builder.ConfigureSyncfusionCore(); + return builder.Build(); + } + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/AndroidManifest.xml b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..e9937ad --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainActivity.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..72828c9 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainActivity.cs @@ -0,0 +1,11 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace CustomSearchToolbar +{ + [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/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainApplication.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..6bee4e3 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/MainApplication.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Runtime; + +namespace CustomSearchToolbar +{ + [Application] + public class MainApplication : MauiApplication + { + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/Resources/values/colors.xml b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..c04d749 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,6 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/AppDelegate.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..646a524 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace CustomSearchToolbar +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Entitlements.plist b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Entitlements.plist new file mode 100644 index 0000000..de4adc9 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Entitlements.plist @@ -0,0 +1,14 @@ + + + + + + + com.apple.security.app-sandbox + + + com.apple.security.network.client + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Info.plist b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..7268977 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/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/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Program.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..6cd9194 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace CustomSearchToolbar +{ + 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/CustomSearchToolbar/CustomSearchToolbar/Platforms/Tizen/Main.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..6d47496 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Tizen/Main.cs @@ -0,0 +1,17 @@ +using Microsoft.Maui; +using Microsoft.Maui.Hosting; +using System; + +namespace CustomSearchToolbar +{ + internal class Program : MauiApplication + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Tizen/tizen-manifest.xml b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..a258e24 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/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/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml new file mode 100644 index 0000000..4ea3d55 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml @@ -0,0 +1,8 @@ + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..68b43ae --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/App.xaml.cs @@ -0,0 +1,25 @@ +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 CustomSearchToolbar.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/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/Package.appxmanifest b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..0888799 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,46 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/app.manifest b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/app.manifest new file mode 100644 index 0000000..9ff49a7 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/Windows/app.manifest @@ -0,0 +1,15 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/AppDelegate.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..646a524 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace CustomSearchToolbar +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} diff --git a/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/Info.plist b/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/Info.plist new file mode 100644 index 0000000..0004a4f --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/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/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/Program.cs b/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/Program.cs new file mode 100644 index 0000000..6cd9194 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Platforms/iOS/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace CustomSearchToolbar +{ + 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/CustomSearchToolbar/CustomSearchToolbar/Properties/launchSettings.json b/CustomSearchToolbar/CustomSearchToolbar/Properties/launchSettings.json new file mode 100644 index 0000000..edf8aad --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appicon.svg b/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..9d63b65 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appiconfg.svg b/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Regular.ttf b/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..9ab655d Binary files /dev/null and b/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Semibold.ttf b/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..2b7468e Binary files /dev/null and b/CustomSearchToolbar/CustomSearchToolbar/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/Images/dotnet_bot.png b/CustomSearchToolbar/CustomSearchToolbar/Resources/Images/dotnet_bot.png new file mode 100644 index 0000000..f93ce02 Binary files /dev/null and b/CustomSearchToolbar/CustomSearchToolbar/Resources/Images/dotnet_bot.png differ diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/Raw/AboutAssets.txt b/CustomSearchToolbar/CustomSearchToolbar/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..15d6244 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/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/CustomSearchToolbar/CustomSearchToolbar/Resources/Splash/splash.svg b/CustomSearchToolbar/CustomSearchToolbar/Resources/Splash/splash.svg new file mode 100644 index 0000000..21dfb25 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Resources/Splash/splash.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/CustomSearchToolbar/CustomSearchToolbar/Resources/Styles/Colors.xaml b/CustomSearchToolbar/CustomSearchToolbar/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..30307a5 --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/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/CustomSearchToolbar/CustomSearchToolbar/Resources/Styles/Styles.xaml b/CustomSearchToolbar/CustomSearchToolbar/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..e0d36bb --- /dev/null +++ b/CustomSearchToolbar/CustomSearchToolbar/Resources/Styles/Styles.xaml @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CustomSearchToolbar/CustomSearchToolbar/zero_degree_rotated_document.pdf b/CustomSearchToolbar/CustomSearchToolbar/zero_degree_rotated_document.pdf new file mode 100644 index 0000000..8097051 Binary files /dev/null and b/CustomSearchToolbar/CustomSearchToolbar/zero_degree_rotated_document.pdf differ diff --git a/CustomSearchToolbar/~$stomSearchToolbar.docx b/CustomSearchToolbar/~$stomSearchToolbar.docx new file mode 100644 index 0000000..3fba018 Binary files /dev/null and b/CustomSearchToolbar/~$stomSearchToolbar.docx differ diff --git a/CustomSearchToolbar/~WRL2953.tmp b/CustomSearchToolbar/~WRL2953.tmp new file mode 100644 index 0000000..bf8a248 Binary files /dev/null and b/CustomSearchToolbar/~WRL2953.tmp differ