v25.2.3
|
@ -1,16 +0,0 @@
|
|||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True" />
|
||||
<add key="automatic" value="True" />
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
<activePackageSource>
|
||||
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False" />
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31611.283
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBrowser.Maui.Accordion", "SampleBrowser.Maui.Accordion\SampleBrowser.Maui.Accordion.csproj", "{3CEA2BFF-0153-495F-957A-B443600F3DA0}"
|
||||
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
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release-Xml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release-Xml|Any CPU.Build.0 = Release|Any CPU
|
||||
{3CEA2BFF-0153-495F-957A-B443600F3DA0}.Release-Xml|Any CPU.Deploy.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SyncfusionControls>
|
||||
<ControlCategory Name="Layouts">
|
||||
<Control Title="Accordion" ControlName="SfAccordion" Image="accordion.png" Description="Vertical collapsible panel with stacked headers for simultaneous expansion or collapse of items.">
|
||||
<Sample SearchTags="GettingStarted" SampleName="GettingStarted" Title="Getting Started" CodeViewerPath="Accordion/GettingStarted/" />
|
||||
</Control>
|
||||
</ControlCategory>
|
||||
</SyncfusionControls>
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:SampleBrowser.Maui.Accordion"
|
||||
xmlns:base ="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
x:Class="SampleBrowser.Maui.Accordion.App"
|
||||
xmlns:theme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<base:SampleBrowserStyles/>
|
||||
<theme:SyncfusionThemeResourceDictionary/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using SampleBrowser.Maui.Accordion.SfAccordion;
|
||||
using System.Reflection;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
var appInfo = typeof(App).GetTypeInfo().Assembly;
|
||||
SampleBrowser.Maui.Base.BaseConfig.IsIndividualSB = true;
|
||||
MainPage = SampleBrowser.Maui.Base.BaseConfig.MainPageInit(appInfo);
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion
|
||||
{
|
||||
public class ControlConfig
|
||||
{
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SampleBrowser>
|
||||
<Assemblies Prefix="SampleBrowser.Maui.Accordion" QualifiedInfo="Version=1.0.0.0, Culture=neutral, PublickeyToken=null">
|
||||
<Assembly Name="Accordion"/>
|
||||
</Assemblies>
|
||||
</SampleBrowser>
|
|
@ -1,32 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
using Syncfusion.Maui.Core.Hosting;
|
||||
using SampleBrowser.Maui.Base.Hosting;
|
||||
|
||||
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.ConfigureSyncfusionCore()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("Roboto-Medium.ttf", "Roboto-Medium");
|
||||
fonts.AddFont("Roboto-Regular.ttf", "Roboto-Regular");
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
});
|
||||
builder.ConfigureSampleBrowserBase();
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
|
@ -1,17 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Content.PM;
|
||||
using Android.OS;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
|
||||
public class MainActivity : MauiAppCompatActivity
|
||||
{
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
[Application]
|
||||
public class MainApplication : MauiApplication
|
||||
{
|
||||
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
|
||||
: base(handle, ownership)
|
||||
{
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#512BD4</color>
|
||||
<color name="colorPrimaryDark">#2B0B98</color>
|
||||
<color name="colorAccent">#2B0B98</color>
|
||||
</resources>
|
|
@ -1,16 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Foundation;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
[Register("AppDelegate")]
|
||||
public class AppDelegate : MauiUIApplicationDelegate
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.Hosting;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
class Program : MauiApplication
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var app = new Program();
|
||||
app.Run(args);
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="7" xmlns="http://tizen.org/ns/packages">
|
||||
<profile name="common" />
|
||||
<ui-application appid="maui-application-id-placeholder" exec="SampleBrowser.Maui.Accordion.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
|
||||
<label>maui-application-title-placeholder</label>
|
||||
<icon>maui-appicon-placeholder</icon>
|
||||
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
|
||||
</ui-application>
|
||||
<shortcut-list />
|
||||
<privileges>
|
||||
<privilege>http://tizen.org/privilege/internet</privilege>
|
||||
</privileges>
|
||||
<dependencies />
|
||||
<provides-appdefined-privileges />
|
||||
</manifest>
|
|
@ -1,8 +0,0 @@
|
|||
<maui:MauiWinUIApplication
|
||||
x:Class="SampleBrowser.Maui.Accordion.WinUI.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:maui="using:Microsoft.Maui"
|
||||
xmlns:local="using:SampleBrowser.Maui.Accordion.WinUI">
|
||||
|
||||
</maui:MauiWinUIApplication>
|
|
@ -1,50 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
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 SampleBrowser.Maui.Accordion.WinUI;
|
||||
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
public partial class App : MauiWinUIApplication
|
||||
{
|
||||
/// <summary>
|
||||
/// 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().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
||||
{
|
||||
base.OnLaunched(args);
|
||||
|
||||
if (IPlatformApplication.Current != null)
|
||||
{
|
||||
foreach (var item in IPlatformApplication.Current.Application.Windows)
|
||||
{
|
||||
var platformWindow = (item?.Handler?.PlatformView as Microsoft.UI.Xaml.Window);
|
||||
|
||||
if (platformWindow != null)
|
||||
{
|
||||
platformWindow.ExtendsContentIntoTitleBar = false;
|
||||
platformWindow.Title = ".NET MAUI Accordion Demo";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||
IgnorableNamespaces="uap rescap">
|
||||
|
||||
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="75FBFD6E-94A5-4D2F-90D9-28B82CE3B381" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>$placeholder$</DisplayName>
|
||||
<PublisherDisplayName>User Name</PublisherDisplayName>
|
||||
<Logo>$placeholder$.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
||||
<uap:VisualElements
|
||||
DisplayName="$placeholder$"
|
||||
Description="$placeholder$"
|
||||
Square150x150Logo="$placeholder$.png"
|
||||
Square44x44Logo="$placeholder$.png"
|
||||
BackgroundColor="transparent">
|
||||
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
||||
<uap:SplashScreen Image="$placeholder$.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<rescap:Capability Name="runFullTrust" />
|
||||
</Capabilities>
|
||||
|
||||
</Package>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="SampleBrowser.Maui.Accordion.WinUI.app"/>
|
||||
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<!-- The combination of below two tags have the following effect:
|
||||
1) Per-Monitor for >= Windows 10 Anniversary Update
|
||||
2) System < Windows 10 Anniversary Update
|
||||
-->
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
</assembly>
|
|
@ -1,16 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Foundation;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
[Register("AppDelegate")]
|
||||
public class AppDelegate : MauiUIApplicationDelegate
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Windows Machine": {
|
||||
"commandName": "MsixPackage",
|
||||
"nativeDebugging": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="456" height="456" viewBox="0 0 456 456" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="0" y="0" width="456" height="456" fill="#512BD4" />
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 228 B |
|
@ -1,14 +0,0 @@
|
|||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M48 0H0V48H48V0Z" fill="#4822E3"/>
|
||||
<g opacity="0.9">
|
||||
<rect x="15" y="17.3984" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="15" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="15" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="17.3984" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect width="4.82131" height="4.82131" transform="matrix(0.709935 0.704267 -0.709935 0.704267 30.5234 15)" fill="white"/>
|
||||
<rect x="25.8906" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="25.8906" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
</g>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 893 B |
|
@ -1,93 +0,0 @@
|
|||
<svg width="419" height="519" viewBox="0 0 419 519" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M284.432 247.568L284.004 221.881C316.359 221.335 340.356 211.735 355.308 193.336C382.408 159.996 372.893 108.183 372.786 107.659L398.013 102.831C398.505 105.432 409.797 167.017 375.237 209.53C355.276 234.093 324.719 246.894 284.432 247.568Z" fill="#8A6FE8"/>
|
||||
<path d="M331.954 109.36L361.826 134.245C367.145 138.676 375.055 137.959 379.497 132.639C383.928 127.32 383.211 119.41 377.891 114.969L348.019 90.0842C342.7 85.6531 334.79 86.3702 330.348 91.6896C325.917 97.0197 326.634 104.929 331.954 109.36Z" fill="#8A6FE8"/>
|
||||
<path d="M407.175 118.062L417.92 94.2263C420.735 87.858 417.856 80.4087 411.488 77.5831C405.12 74.7682 397.67 77.6473 394.845 84.0156L383.831 108.461L407.175 118.062Z" fill="#8A6FE8"/>
|
||||
<path d="M401.363 105.175L401.234 69.117C401.181 62.1493 395.498 56.541 388.53 56.5945C381.562 56.648 375.954 62.3313 376.007 69.2989L376.018 96.11L401.363 105.175Z" fill="#8A6FE8"/>
|
||||
<path d="M386.453 109.071L378.137 73.9548C376.543 67.169 369.757 62.9628 362.971 64.5575C356.185 66.1523 351.979 72.938 353.574 79.7237L362.04 115.482L386.453 109.071Z" fill="#8A6FE8"/>
|
||||
<path d="M381.776 142.261C396.359 142.261 408.181 130.44 408.181 115.857C408.181 101.274 396.359 89.4527 381.776 89.4527C367.194 89.4527 355.372 101.274 355.372 115.857C355.372 130.44 367.194 142.261 381.776 142.261Z" fill="url(#paint0_radial)"/>
|
||||
<path d="M248.267 406.979C248.513 384.727 245.345 339.561 222.376 301.736L199.922 315.372C220.76 349.675 222.323 389.715 221.841 407.182C221.798 408.627 235.263 409.933 248.267 406.979Z" fill="url(#paint1_linear)"/>
|
||||
<path d="M221.841 406.936L242.637 406.84L262.052 518.065L220.311 518.258C217.132 518.269 214.724 515.711 214.938 512.532L221.841 406.936Z" fill="#522CD5"/>
|
||||
<path d="M306.566 488.814C310.173 491.661 310.109 495.782 309.831 500.127L308.964 513.452C308.803 515.839 306.727 517.798 304.34 517.809L260.832 518.012C258.125 518.023 256.08 515.839 256.262 513.142L256.551 499.335C256.883 494.315 255.192 492.474 251.307 487.744C244.649 479.663 224.967 435.62 226.84 406.925L248.256 406.829C249.691 423.858 272.167 461.682 306.566 488.814Z" fill="url(#paint2_linear)"/>
|
||||
<path d="M309.82 500.127C310.023 497.088 310.077 494.176 308.889 491.715L254.635 491.961C256.134 494.166 256.765 496.092 256.562 499.314L256.273 513.121C256.091 515.828 258.146 518.012 260.843 517.99L304.34 517.798C306.727 517.787 308.803 515.828 308.964 513.442L309.82 500.127Z" fill="url(#paint3_radial)"/>
|
||||
<path d="M133.552 407.471C133.103 385.22 135.864 340.021 158.49 301.993L181.073 315.425C160.545 349.921 159.346 389.972 159.989 407.428C160.042 408.884 146.578 410.318 133.552 407.471Z" fill="url(#paint4_linear)"/>
|
||||
<path d="M110.798 497.152C110.765 494.187 111.204 491.575 112.457 487.23C131.882 434.132 133.52 407.364 133.52 407.364L159.999 407.246C159.999 407.246 161.819 433.512 181.716 486.427C183.289 490.195 183.471 493.641 183.674 496.831L183.792 513.816C183.803 516.374 181.716 518.483 179.158 518.494L177.873 518.504L116.781 518.782L115.496 518.793C112.927 518.804 110.83 516.728 110.819 514.159L110.798 497.152Z" fill="url(#paint5_linear)"/>
|
||||
<path d="M110.798 497.152C110.798 496.67 110.808 496.199 110.83 495.739C110.969 494.262 111.643 492.603 114.875 492.582L180.207 492.282C182.561 492.367 183.343 494.176 183.589 495.311C183.621 495.814 183.664 496.328 183.696 496.82L183.813 513.806C183.824 515.411 183.011 516.824 181.769 517.669C181.031 518.172 180.132 518.472 179.179 518.483L177.895 518.494L116.802 518.772L115.528 518.782C114.244 518.793 113.077 518.269 112.232 517.434C111.386 516.599 110.862 515.432 110.851 514.148L110.798 497.152Z" fill="url(#paint6_radial)"/>
|
||||
<path d="M314.979 246.348C324.162 210.407 318.008 181.777 318.008 181.777L326.452 181.734L326.656 181.574C314.262 115.75 256.326 66.0987 186.949 66.4198C108.796 66.773 45.7233 130.424 46.0765 208.577C46.4297 286.731 110.08 349.803 188.234 349.45C249.905 349.172 302.178 309.474 321.304 254.343C321.872 251.999 321.797 247.804 314.979 246.348Z" fill="url(#paint7_radial)"/>
|
||||
<path d="M310.237 279.035L65.877 280.148C71.3998 289.428 77.95 298.012 85.3672 305.761L290.972 304.829C298.336 297.005 304.8 288.368 310.237 279.035Z" fill="#D8CFF7"/>
|
||||
<path d="M235.062 312.794L280.924 312.585L280.74 272.021L234.877 272.23L235.062 312.794Z" fill="#512BD4"/>
|
||||
<path d="M243.001 297.626C242.691 297.626 242.434 297.53 242.22 297.327C242.006 297.123 241.899 296.866 241.899 296.588C241.899 296.299 242.006 296.042 242.22 295.839C242.434 295.625 242.691 295.528 243.001 295.528C243.312 295.528 243.568 295.635 243.782 295.839C243.996 296.042 244.114 296.299 244.114 296.588C244.114 296.877 244.007 297.123 243.793 297.327C243.568 297.519 243.312 297.626 243.001 297.626Z" fill="white"/>
|
||||
<path d="M255.192 297.434H253.212L247.967 289.203C247.839 289 247.721 288.775 247.636 288.55H247.593C247.636 288.786 247.657 289.299 247.657 290.091L247.668 297.444H245.912L245.891 286.228H247.999L253.062 294.265C253.276 294.597 253.415 294.833 253.479 294.95H253.511C253.458 294.651 253.437 294.148 253.437 293.441L253.426 286.217H255.17L255.192 297.434Z" fill="white"/>
|
||||
<path d="M263.733 297.412L257.589 297.423L257.568 286.206L263.465 286.195V287.779L259.387 287.79L259.398 290.969L263.155 290.958V292.532L259.398 292.542L259.409 295.86L263.733 295.85V297.412Z" fill="white"/>
|
||||
<path d="M272.445 287.758L269.298 287.769L269.32 297.401H267.5L267.479 287.769L264.343 287.779V286.195L272.434 286.174L272.445 287.758Z" fill="white"/>
|
||||
<path d="M315.279 246.337C324.355 210.836 318.457 182.483 318.308 181.798L171.484 182.462C171.484 182.462 162.226 181.563 162.268 190.018C162.311 198.463 162.761 222.341 162.878 248.746C162.9 254.172 167.363 256.773 170.863 256.751C170.874 256.751 311.618 252.213 315.279 246.337Z" fill="url(#paint8_radial)"/>
|
||||
<path d="M227.685 246.798C227.685 246.798 250.183 228.827 254.571 225.499C258.959 222.17 262.812 221.977 266.869 225.445C270.925 228.913 293.616 246.498 293.616 246.498L227.685 246.798Z" fill="#A08BE8"/>
|
||||
<path d="M320.748 256.141C320.748 256.141 324.943 248.414 315.279 246.348C315.289 246.305 170.927 246.894 170.927 246.894C167.566 246.905 163.232 244.925 162.846 241.671C162.857 244.004 162.878 246.369 162.889 248.756C162.91 253.68 166.582 256.27 169.878 256.698C170.21 256.73 170.542 256.773 170.874 256.773L180.742 256.73L320.748 256.141Z" fill="#512BD4"/>
|
||||
<path d="M206.4 233.214C212.511 233.095 217.302 224.667 217.102 214.39C216.901 204.112 211.785 195.878 205.674 195.997C199.563 196.116 194.772 204.544 194.973 214.821C195.173 225.099 200.289 233.333 206.4 233.214Z" fill="#512BD4"/>
|
||||
<path d="M306.249 214.267C306.356 203.989 301.488 195.605 295.377 195.541C289.266 195.478 284.225 203.758 284.118 214.037C284.011 224.315 288.878 232.699 294.99 232.763C301.101 232.826 306.142 224.545 306.249 214.267Z" fill="#512BD4"/>
|
||||
<path d="M205.905 205.291C208.152 203.022 211.192 202.016 214.157 202.262C215.912 205.495 217.014 209.733 217.111 214.389C217.164 217.3 216.811 220.04 216.158 222.513C212.669 223.519 208.752 222.662 205.979 219.922C201.912 215.909 201.88 209.348 205.905 205.291Z" fill="#8065E0"/>
|
||||
<path d="M294.996 204.285C297.255 202.016 300.294 200.999 303.259 201.256C305.164 204.628 306.309 209.209 306.256 214.239C306.224 216.808 305.892 219.259 305.303 221.485C301.793 222.523 297.843 221.678 295.061 218.916C291.004 214.892 290.972 208.342 294.996 204.285Z" fill="#8065E0"/>
|
||||
<path d="M11.6342 357.017C10.9171 354.716 -5.72611 300.141 21.3204 258.903C36.9468 235.078 63.3083 221.035 99.6664 217.15L102.449 243.276C74.3431 246.273 54.4676 256.345 43.3579 273.202C23.0971 303.941 36.5722 348.733 36.7113 349.183L11.6342 357.017Z" fill="url(#paint9_linear)"/>
|
||||
<path d="M95.1498 252.802C109.502 252.802 121.137 241.167 121.137 226.815C121.137 212.463 109.502 200.828 95.1498 200.828C80.7976 200.828 69.1628 212.463 69.1628 226.815C69.1628 241.167 80.7976 252.802 95.1498 252.802Z" fill="url(#paint10_radial)"/>
|
||||
<path d="M72.0098 334.434L33.4683 329.307C26.597 328.397 20.2929 333.214 19.3725 340.085C18.4627 346.956 23.279 353.26 30.1504 354.181L68.6919 359.308C75.5632 360.217 81.8673 355.401 82.7878 348.53C83.6975 341.658 78.8705 335.344 72.0098 334.434Z" fill="#8A6FE8"/>
|
||||
<path d="M3.73535 367.185L7.35297 393.076C8.36975 399.968 14.7702 404.731 21.6629 403.725C28.5556 402.708 33.3185 396.308 32.3124 389.415L28.5984 362.861L3.73535 367.185Z" fill="#8A6FE8"/>
|
||||
<path d="M15.5194 374.988L34.849 405.427C38.6058 411.292 46.4082 413.005 52.2735 409.248C58.1387 405.491 59.8512 397.689 56.0945 391.823L41.7953 369.144L15.5194 374.988Z" fill="#8A6FE8"/>
|
||||
<path d="M26.0511 363.739L51.8026 389.019C56.7688 393.911 64.7532 393.846 69.6445 388.88C74.5358 383.914 74.4715 375.929 69.516 371.038L43.2937 345.297L26.0511 363.739Z" fill="#8A6FE8"/>
|
||||
<path d="M26.4043 381.912C40.987 381.912 52.8086 370.091 52.8086 355.508C52.8086 340.925 40.987 329.104 26.4043 329.104C11.8216 329.104 0 340.925 0 355.508C0 370.091 11.8216 381.912 26.4043 381.912Z" fill="url(#paint11_radial)"/>
|
||||
<path d="M184.73 63.6308L157.819 66.5892L158.561 38.5412L177.888 36.4178L184.73 63.6308Z" fill="#8A6FE8"/>
|
||||
<path d="M170.018 41.647C180.455 39.521 187.193 29.3363 185.067 18.8988C182.941 8.46126 172.757 1.72345 162.319 3.84944C151.882 5.97543 145.144 16.1601 147.27 26.5976C149.396 37.0351 159.58 43.773 170.018 41.647Z" fill="#D8CFF7"/>
|
||||
<path d="M196.885 79.385C198.102 79.2464 198.948 78.091 198.684 76.8997C195.851 64.2818 183.923 55.5375 170.773 56.9926C157.622 58.4371 147.886 69.5735 147.865 82.4995C147.863 83.7232 148.949 84.6597 150.168 84.5316L196.885 79.385Z" fill="url(#paint12_radial)"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(382.004 103.457) scale(26.4058)">
|
||||
<stop stop-color="#8065E0"/>
|
||||
<stop offset="1" stop-color="#512BD4"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint1_linear" x1="214.439" y1="303.482" x2="236.702" y2="409.505" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#522CD5"/>
|
||||
<stop offset="0.4397" stop-color="#8A6FE8"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear" x1="231.673" y1="404.144" x2="297.805" y2="522.048" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#522CD5"/>
|
||||
<stop offset="0.4397" stop-color="#8A6FE8"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint3_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(280.957 469.555) rotate(-0.260742) scale(45.8326)">
|
||||
<stop offset="0.034" stop-color="#522CD5"/>
|
||||
<stop offset="0.9955" stop-color="#8A6FE8"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint4_linear" x1="166.061" y1="303.491" x2="144.763" y2="409.709" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#522CD5"/>
|
||||
<stop offset="0.4397" stop-color="#8A6FE8"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint5_linear" x1="146.739" y1="407.302" x2="147.246" y2="518.627" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#522CD5"/>
|
||||
<stop offset="0.4397" stop-color="#8A6FE8"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint6_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(148.63 470.023) rotate(179.739) scale(50.2476)">
|
||||
<stop offset="0.034" stop-color="#522CD5"/>
|
||||
<stop offset="0.9955" stop-color="#8A6FE8"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint7_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(219.219 153.929) rotate(179.739) scale(140.935)">
|
||||
<stop offset="0.4744" stop-color="#A08BE8"/>
|
||||
<stop offset="0.8618" stop-color="#8065E0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint8_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(314.861 158.738) rotate(179.739) scale(146.053)">
|
||||
<stop offset="0.0933" stop-color="#E1DFDD"/>
|
||||
<stop offset="0.6573" stop-color="white"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint9_linear" x1="54.1846" y1="217.159" x2="54.1846" y2="357.022" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.3344" stop-color="#9780E6"/>
|
||||
<stop offset="0.8488" stop-color="#8A6FE8"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint10_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(90.3494 218.071) rotate(-0.260742) scale(25.9924)">
|
||||
<stop stop-color="#8065E0"/>
|
||||
<stop offset="1" stop-color="#512BD4"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint11_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.805 345.043) scale(26.4106)">
|
||||
<stop stop-color="#8065E0"/>
|
||||
<stop offset="1" stop-color="#512BD4"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint12_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(169.113 67.3662) rotate(-32.2025) scale(21.0773)">
|
||||
<stop stop-color="#8065E0"/>
|
||||
<stop offset="1" stop-color="#512BD4"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 12 KiB |
|
@ -1,15 +0,0 @@
|
|||
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`.
|
||||
|
||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
|
||||
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();
|
||||
}
|
До Ширина: | Высота: | Размер: 17 KiB |
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?xaml-comp compile="true" ?>
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||
|
||||
<Color x:Key="Primary">#512BD4</Color>
|
||||
<Color x:Key="Secondary">#DFD8F7</Color>
|
||||
<Color x:Key="Tertiary">#2B0B98</Color>
|
||||
<Color x:Key="White">White</Color>
|
||||
<Color x:Key="Black">Black</Color>
|
||||
<Color x:Key="Gray100">#E1E1E1</Color>
|
||||
<Color x:Key="Gray200">#C8C8C8</Color>
|
||||
<Color x:Key="Gray300">#ACACAC</Color>
|
||||
<Color x:Key="Gray400">#919191</Color>
|
||||
<Color x:Key="Gray500">#6E6E6E</Color>
|
||||
<Color x:Key="Gray600">#404040</Color>
|
||||
<Color x:Key="Gray900">#212121</Color>
|
||||
<Color x:Key="Gray950">#141414</Color>
|
||||
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}"/>
|
||||
<SolidColorBrush x:Key="SecondaryBrush" Color="{StaticResource Secondary}"/>
|
||||
<SolidColorBrush x:Key="TertiaryBrush" Color="{StaticResource Tertiary}"/>
|
||||
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource White}"/>
|
||||
<SolidColorBrush x:Key="BlackBrush" Color="{StaticResource Black}"/>
|
||||
<SolidColorBrush x:Key="Gray100Brush" Color="{StaticResource Gray100}"/>
|
||||
<SolidColorBrush x:Key="Gray200Brush" Color="{StaticResource Gray200}"/>
|
||||
<SolidColorBrush x:Key="Gray300Brush" Color="{StaticResource Gray300}"/>
|
||||
<SolidColorBrush x:Key="Gray400Brush" Color="{StaticResource Gray400}"/>
|
||||
<SolidColorBrush x:Key="Gray500Brush" Color="{StaticResource Gray500}"/>
|
||||
<SolidColorBrush x:Key="Gray600Brush" Color="{StaticResource Gray600}"/>
|
||||
<SolidColorBrush x:Key="Gray900Brush" Color="{StaticResource Gray900}"/>
|
||||
<SolidColorBrush x:Key="Gray950Brush" Color="{StaticResource Gray950}"/>
|
||||
|
||||
<Color x:Key="Yellow100Accent">#F7B548</Color>
|
||||
<Color x:Key="Yellow200Accent">#FFD590</Color>
|
||||
<Color x:Key="Yellow300Accent">#FFE5B9</Color>
|
||||
<Color x:Key="Cyan100Accent">#28C2D1</Color>
|
||||
<Color x:Key="Cyan200Accent">#7BDDEF</Color>
|
||||
<Color x:Key="Cyan300Accent">#C3F2F4</Color>
|
||||
<Color x:Key="Blue100Accent">#3E8EED</Color>
|
||||
<Color x:Key="Blue200Accent">#72ACF1</Color>
|
||||
<Color x:Key="Blue300Accent">#A7CBF6</Color>
|
||||
|
||||
</ResourceDictionary>
|
|
@ -1,405 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?xaml-comp compile="true" ?>
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||
|
||||
<!--<Style TargetType="ActivityIndicator">
|
||||
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="IndicatorView">
|
||||
<Setter Property="IndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}"/>
|
||||
<Setter Property="SelectedIndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||
<Setter Property="StrokeShape" Value="Rectangle"/>
|
||||
<Setter Property="StrokeThickness" Value="1"/>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="BoxView">
|
||||
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" />
|
||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="CornerRadius" Value="8"/>
|
||||
<Setter Property="Padding" Value="14,10"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="CheckBox">
|
||||
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="DatePicker">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Editor">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Entry">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Frame">
|
||||
<Setter Property="HasShadow" Value="False" />
|
||||
<Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="CornerRadius" Value="8" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ImageButton">
|
||||
<Setter Property="Opacity" Value="1" />
|
||||
<Setter Property="BorderColor" Value="Transparent"/>
|
||||
<Setter Property="BorderWidth" Value="0"/>
|
||||
<Setter Property="CornerRadius" Value="0"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="Opacity" Value="0.5" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Label">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ListView">
|
||||
<Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
|
||||
<Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Picker">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ProgressBar">
|
||||
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="RadioButton">
|
||||
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="RefreshView">
|
||||
<Setter Property="RefreshColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="SearchBar">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
|
||||
<Setter Property="CancelButtonColor" Value="{StaticResource Gray500}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="SearchHandler">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent" />
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
<Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Shadow">
|
||||
<Setter Property="Radius" Value="15" />
|
||||
<Setter Property="Opacity" Value="0.5" />
|
||||
<Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||
<Setter Property="Offset" Value="10,10" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Slider">
|
||||
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
|
||||
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||
<Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="SwipeItem">
|
||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Switch">
|
||||
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="ThumbColor" Value="{StaticResource White}" />
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="On">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" />
|
||||
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Off">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TimePicker">
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
|
||||
<Setter Property="BackgroundColor" Value="Transparent"/>
|
||||
<Setter Property="FontFamily" Value="OpenSansRegular"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="MinimumHeightRequest" Value="44"/>
|
||||
<Setter Property="MinimumWidthRequest" Value="44"/>
|
||||
<Setter Property="VisualStateManager.VisualStateGroups">
|
||||
<VisualStateGroupList>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" />
|
||||
<VisualState x:Name="Disabled">
|
||||
<VisualState.Setters>
|
||||
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
|
||||
</VisualState.Setters>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateGroupList>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Page" ApplyToDerivedTypes="True">
|
||||
<Setter Property="Padding" Value="0"/>
|
||||
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Shell" ApplyToDerivedTypes="True">
|
||||
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}" />
|
||||
<Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
|
||||
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
|
||||
<Setter Property="Shell.NavBarHasShadow" Value="False" />
|
||||
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
|
||||
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="NavigationPage">
|
||||
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TabbedPage">
|
||||
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
|
||||
<Setter Property="UnselectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
|
||||
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
|
||||
</Style>-->
|
||||
|
||||
</ResourceDictionary>
|
|
@ -1,98 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
|
||||
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
|
||||
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SampleBrowser.Maui.Accordion</RootNamespace>
|
||||
<UseMaui>true</UseMaui>
|
||||
<SingleProject>true</SingleProject>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<AnalysisLevel>latest</AnalysisLevel>
|
||||
<AnalysisLevelSecurity>latest-recommended</AnalysisLevelSecurity>
|
||||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
|
||||
<Nullable>enable</Nullable>
|
||||
<NoWarn>$(NoWarn);NU1803</NoWarn>
|
||||
|
||||
<!-- Display name -->
|
||||
<ApplicationTitle>SampleBrowser.Maui.Accordion</ApplicationTitle>
|
||||
|
||||
<!-- App Identifier -->
|
||||
<ApplicationId>com.companyname.samplebrowser.maui.accordion</ApplicationId>
|
||||
<ApplicationIdGuid>ac8b7816-b396-4e19-b5b3-f2e82474e81d</ApplicationIdGuid>
|
||||
|
||||
<!-- Versions -->
|
||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>1</ApplicationVersion>
|
||||
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.18362.0</SupportedOSPlatformVersion>
|
||||
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.18362.0</TargetPlatformMinVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DefineConstants>TRACE;DEBUG;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DefineConstants>TRACE;RELEASE;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-Xml|AnyCPU' ">
|
||||
<DefineConstants>TRACE;RELEASE;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net8.0-android' OR '$(TargetFramework)' == 'net8.0-ios' OR '$(TargetFramework)' == 'net8.0-maccatalyst' OR '$(TargetFramework)' == 'net8.0-windows10.0.19041.0' ">
|
||||
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- App Icon -->
|
||||
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#4822E3" />
|
||||
|
||||
<!-- Splash Screen -->
|
||||
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#4822E3" BaseSize="*,*" />
|
||||
|
||||
<!-- Images -->
|
||||
<MauiImage Include="Resources\Images\*" />
|
||||
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<MauiFont Include="Resources\Fonts\*" />
|
||||
|
||||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
|
||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Resources\Fonts\Roboto-Medium.ttf" />
|
||||
<None Remove="Resources\Fonts\Roboto-Regular.ttf" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="ControlList.xml" />
|
||||
<EmbeddedResource Include="AccordionSamplesList.xml" />
|
||||
<EmbeddedResource Include="SyncfusionLicense.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Syncfusion.Maui.Buttons" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.Core" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.Expander" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.TabView" version="25.1.35" />
|
||||
<PackageReference Include="SampleBrowser.Maui.Base" version="25.1.35" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>SampleBrowser.Maui.Accordion</id>
|
||||
<version>20.1.0.1</version>
|
||||
<authors>Syncfusion Inc.</authors>
|
||||
<owners>Syncfusion Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<licenseUrl>http://www.syncfusion.com/nuget/license</licenseUrl>
|
||||
<projectUrl>http://www.syncfusion.com/</projectUrl>
|
||||
<iconUrl>http://www.syncfusion.com/content/images/nuget/sync_logo_icon.png</iconUrl>
|
||||
<description>Accordion component for Syncfusion .NET MAUI</description>
|
||||
<copyright>Copyright 2001 - 2019 Syncfusion Inc.</copyright>
|
||||
</metadata>
|
||||
</package>
|
|
@ -1,33 +0,0 @@
|
|||
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\Accordion\GettingStarted\View\GettingStarted.xaml.cs">
|
||||
<Link>Samples\Accordion\GettingStarted\View\GettingStarted.xaml.cs</Link>
|
||||
<DependentUpon>GettingStarted.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\Accordion\GettingStarted\Model\EmployeeInfo.cs">
|
||||
<Link>Samples\Accordion\GettingStarted\Model\EmployeeInfo.cs</Link>
|
||||
</Compile>
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\Accordion\GettingStarted\ViewModel\EmployeeDetails.cs">
|
||||
<Link>Samples\Accordion\GettingStarted\ViewModel\EmployeeDetails.cs</Link>
|
||||
</Compile>
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)\AccordionSamplesList.xml" >
|
||||
<Link>AccordionSamplesList.xml</Link>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<MauiXaml Include="$(MSBuildThisFileDirectory)\Samples\Accordion\GettingStarted\View\GettingStarted.xaml">
|
||||
<Link>Samples\Accordion\GettingStarted\View\GettingStarted.xaml</Link>
|
||||
</MauiXaml>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -1,57 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion.SfAccordion
|
||||
{
|
||||
public class EmployeeInfo
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
public EmployeeInfo(string name, string image, string position, string organizationunit, string dateofbirth, string location, string phone, bool isexpanded, string description)
|
||||
{
|
||||
Name = name;
|
||||
Image = image;
|
||||
Position = position;
|
||||
OrganizationUnit = organizationunit;
|
||||
DateOfBirth = dateofbirth;
|
||||
Location = location;
|
||||
Phone = phone;
|
||||
IsExpanded = isexpanded;
|
||||
Description = description;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Image { get; set; }
|
||||
|
||||
public string Position { get; set; }
|
||||
|
||||
public string OrganizationUnit { get; set; }
|
||||
|
||||
public string DateOfBirth { get; set; }
|
||||
|
||||
public string Location { get; set; }
|
||||
|
||||
public string Phone { get; set; }
|
||||
|
||||
public bool IsExpanded { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -1,98 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<localCore:SampleView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:local="clr-namespace:SampleBrowser.Maui.Accordion.SfAccordion"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="SampleBrowser.Maui.Accordion.SfAccordion.GettingStarted"
|
||||
xmlns:imageExtension="clr-namespace:SampleBrowser.Maui.Base.Converters;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:localCore="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander"
|
||||
xmlns:thickness ="clr-namespace:Microsoft.Maui;assembly=Microsoft.Maui">
|
||||
<localCore:SampleView.Resources>
|
||||
<imageExtension:SfImageSourceConverter x:Key="imageconverter"/>
|
||||
</localCore:SampleView.Resources>
|
||||
<localCore:SampleView.BindingContext>
|
||||
<local:EmployeeDetails />
|
||||
</localCore:SampleView.BindingContext>
|
||||
<localCore:SampleView.Margin>
|
||||
<OnPlatform x:TypeArguments="thickness:Thickness">
|
||||
<On Platform="MacCatalyst" Value="-4,-4,-6,-6"/>
|
||||
<On Platform="WinUI" Value="-4,-4,-6,-6"/>
|
||||
</OnPlatform>
|
||||
</localCore:SampleView.Margin>
|
||||
<localCore:SampleView.Content>
|
||||
<Grid ColumnDefinitions="0.4*, 0.6*">
|
||||
<Grid IsClippedToBounds="True" IsVisible="{OnPlatform MacCatalyst=True, WinUI=True, Default=False}"
|
||||
RowDefinitions="0.3*,100,50,*">
|
||||
<Image Source="{imageExtension:SfImageResource registrationform.png}" Aspect="AspectFill" Grid.RowSpan="4"/>
|
||||
<Label Text="Meet our Stellar Team" LineBreakMode="WordWrap" HorizontalOptions="Start"
|
||||
FontSize="30" WidthRequest="230" FontAttributes="Bold" TextColor="White" Grid.Row="1" Margin="50,0,0,0"/>
|
||||
<Label Text="A Look at Our Employee List!" HorizontalOptions="Start" FontSize="16" WidthRequest="240" TextColor="White"
|
||||
Grid.Row="2" Margin="50,0,0,0"/>
|
||||
</Grid>
|
||||
<syncfusion:SfAccordion x:Name="accordion" BindableLayout.ItemsSource="{Binding Employees}" ExpandMode="SingleOrNone"
|
||||
VerticalOptions="{OnPlatform Default=Fill}"
|
||||
IsClippedToBounds="True"
|
||||
Grid.ColumnSpan="{OnPlatform Default=2, MacCatalyst=1,WinUI=1}"
|
||||
Grid.Column="{OnPlatform Default=0, MacCatalyst=1,WinUI=1}"
|
||||
HorizontalOptions="Fill">
|
||||
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<syncfusion:AccordionItem IsExpanded="{Binding IsExpanded}">
|
||||
<syncfusion:AccordionItem.Header>
|
||||
<Grid HeightRequest="48">
|
||||
<Label Text="{Binding Name}" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
|
||||
</Grid>
|
||||
</syncfusion:AccordionItem.Header>
|
||||
<syncfusion:AccordionItem.Content>
|
||||
<Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="{AppThemeBinding Light=#F4F4F4, Dark=#14E6E1E5}">
|
||||
<Grid Margin="16,6,0,0">
|
||||
<Grid.RowDefinitions >
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="{OnPlatform Default=90,Android=90,WinUI=70, iOS=100,MacCatalyst=70 }"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Frame Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" HasShadow="False" Padding="0" Margin="0,0,0,7" BackgroundColor="{StaticResource White}">
|
||||
<Image Source="{Binding Image,Converter={StaticResource imageconverter}}"/>
|
||||
</Frame>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="Position" Grid.Column="1" Grid.Row="0" Margin='{OnPlatform Default="6,0,0,0",MacCatalyst="12,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="{Binding Position}" Grid.Row="0" Grid.Column="2" Margin='{OnPlatform MacCatalyst="6,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="Organization " Grid.Row="1" Grid.Column="1" Margin='{OnPlatform Default="6,0,0,0",MacCatalyst="12,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="{Binding OrganizationUnit}" Grid.Row="1" Grid.Column="2" Margin='{OnPlatform MacCatalyst="6,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin='{OnPlatform Default="6,0,0,0",MacCatalyst="12,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="{Binding DateOfBirth}" Grid.Row="2" Grid.Column="2" Margin='{OnPlatform MacCatalyst="6,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="Location " Grid.Row="3" Grid.Column="1" Margin='{OnPlatform Default="6,0,0,0",MacCatalyst="12,0,0,0"}'/>
|
||||
<Label TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" FontFamily="Roboto-Regular" Text="{Binding Location}" Grid.Row="3" Grid.Column="2" Margin='{OnPlatform MacCatalyst="6,0,0,0"}'/>
|
||||
|
||||
<Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap"
|
||||
FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}"
|
||||
Text="{Binding Description}">
|
||||
</Label>
|
||||
|
||||
<StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
|
||||
<Label Text="" FontSize="16" Margin="0,2,2,2"
|
||||
FontFamily="MauiSampleFontIcon" TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}"
|
||||
VerticalOptions="Center" VerticalTextAlignment="Center"/>
|
||||
<Label Text="{Binding Phone}" Grid.Column="1" TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14"/>
|
||||
</StackLayout>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</syncfusion:AccordionItem.Content>
|
||||
</syncfusion:AccordionItem>
|
||||
</DataTemplate>
|
||||
</BindableLayout.ItemTemplate>
|
||||
</syncfusion:SfAccordion>
|
||||
</Grid>
|
||||
</localCore:SampleView.Content>
|
||||
</localCore:SampleView>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using SampleBrowser.Maui.Base;
|
||||
using Syncfusion.Maui.Accordion;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static Microsoft.Maui.ApplicationModel.Permissions;
|
||||
using System.Xml.Linq;
|
||||
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion.SfAccordion
|
||||
{
|
||||
public partial class GettingStarted : SampleView
|
||||
{
|
||||
public GettingStarted()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SampleBrowser.Maui.Accordion.SfAccordion
|
||||
{
|
||||
public class EmployeeDetails
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private ObservableCollection<EmployeeInfo>? _employee;
|
||||
|
||||
string[] Description = new string[]
|
||||
{
|
||||
"Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry.",
|
||||
"Paul Vent, General Manager of XYZ Corp., oversees daily operations, ensuring the company's success and growth through strategic planning and effective management practices.",
|
||||
"Clara Venus, Asst. Manager at ABC Inc., efficiently handles multiple tasks. With her strong skill set and dedication, she contributes significantly to the company's growth and success.",
|
||||
"Maria Even, a highly experienced professional, holds the position of Executive Manager at XYZ Corp. She oversees crucial operations, enforcing company policies and practices.",
|
||||
"Mark Zuen, Senior Executive at ABC Inc., skillfully manages business operations. He is adept at leadership and strategic thinking.",
|
||||
"Eric John, Technical Manager at ABC Inc., expertly leads his team to develop innovative solutions, creating value for the company",
|
||||
"Chris Marker serves as the Senior Accountant at XYZ Corp. With extensive experience, he skillfully manages the company's financial matters, ensuring accuracy and compliance.",
|
||||
"Seria Stein, an Account Executive at ABC Inc., adeptly manages client portfolios, ensuring their satisfaction. She is a great communicator, skilled in building relationships.",
|
||||
"Angelina Justin, HR Manager at XYZ Corp., expertly handles workplace dynamics with her exceptional communication and problem-solving skills, fostering a positive work environment"
|
||||
};
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
public EmployeeDetails()
|
||||
{
|
||||
Employees = new ObservableCollection<EmployeeInfo>();
|
||||
Employees.Add(new EmployeeInfo("Robin Rane", "emp_01.png", "Chairman", "ABC Inc.", "09/17/1973", "Boston", "(617) 555-1234", false, Description[0]));
|
||||
Employees.Add(new EmployeeInfo("Paul Vent", "emp_02.png", "General Manager", "XYZ Corp.", "05/27/1985", "New York", "(212) 555-1234", true, Description[1]));
|
||||
Employees.Add(new EmployeeInfo("Clara Venus", "emp_03.png", "Assistant Manager", "ABC Inc.", "07/22/1988", "California", "(415) 123-4567", false, Description[2]));
|
||||
Employees.Add(new EmployeeInfo("Maria Even", "emp_04.png", "Executive Manager", "XYZ Corp.", "04/16/1970", "New York", "(516) 345-6789", false, Description[3]));
|
||||
Employees.Add(new EmployeeInfo("Mark Zuen", "emp_05.png", "Senior Executive", "ABC Inc.", "09/11/1983", "Boston", "(617) 123-4567", false, Description[4]));
|
||||
Employees.Add(new EmployeeInfo("Eric John", "emp_06.png", "Technical Manager", "ABC Inc.", "12/09/1985", "New Jersey", "(201) 555-1234", false, Description[5]));
|
||||
Employees.Add(new EmployeeInfo("Chris Marker", "emp_07.png", "Senior Accountant", "XYZ Corp.", "03/14/1986", "California", "(714) 555-5678", false, Description[6]));
|
||||
Employees.Add(new EmployeeInfo("Seria Stein", "emp_08.png", "Account Executive", "XYZ Corp.", "02/07/1985", "New York", "(646) 987-6543", false, Description[7]));
|
||||
Employees.Add(new EmployeeInfo("Angelina Justin", "emp_09.png", "HR Manager", "XYZ Corp.", "07/11/1972", "Boston", "(617) 987-6543", false, Description[8]));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public ObservableCollection<EmployeeInfo>? Employees
|
||||
{
|
||||
get { return _employee; }
|
||||
set { _employee = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True" />
|
||||
<add key="automatic" value="True" />
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
<activePackageSource>
|
||||
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False" />
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31611.283
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBrowser.Maui.AvatarView", "SampleBrowser.Maui.AvatarView\SampleBrowser.Maui.AvatarView.csproj", "{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}"
|
||||
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
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release-Xml|Any CPU.ActiveCfg = Release-Xml|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release-Xml|Any CPU.Build.0 = Release-Xml|Any CPU
|
||||
{FFF8474B-FAB6-4FF2-BE38-C0405027F4D5}.Release-Xml|Any CPU.Deploy.0 = Release-Xml|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:SampleBrowser.Maui.AvatarView"
|
||||
xmlns:base="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core"
|
||||
x:Class="SampleBrowser.Maui.AvatarView.App">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<base:SampleBrowserStyles/>
|
||||
<syncTheme:SyncfusionThemeResourceDictionary/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -1,24 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Reflection;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
//MainPage = new AppShell();
|
||||
|
||||
var appInfo = typeof(App).GetTypeInfo().Assembly;
|
||||
SampleBrowser.Maui.Base.BaseConfig.IsIndividualSB = true;
|
||||
MainPage = SampleBrowser.Maui.Base.BaseConfig.MainPageInit(appInfo);
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SyncfusionControls>
|
||||
<ControlCategory Name="Miscellaneous">
|
||||
<Control Title="Avatar View" ControlName="SfAvatarView" Description="Displays customizable initials or images on both mobile and desktop." Image="avatarview.png">
|
||||
<Sample Title="Getting Started" SampleName="AvatarViewGettingStarted" SearchTags="getting started, avatar, avatarview, image, initials" CodeViewerPath="AvatarView/AvatarViewGettingStarted/" VideoLink="https://www.youtube.com/watch?v=XrTvIgeeUm0" />
|
||||
<Sample Title="Group View" SampleName="GroupView" SearchTags="avatar, avatarview, groupview, group, view" CodeViewerPath="AvatarView/GroupView/" VideoLink="https://www.youtube.com/watch?v=XrTvIgeeUm0" />
|
||||
<Sample Title="Visual Style" SampleName="VisualStyleSample" SearchTags="avatar, avatar view, visual style" CodeViewerPath="AvatarView/VisualStyleSample/" VideoLink="https://www.youtube.com/watch?v=XrTvIgeeUm0" />
|
||||
</Control>
|
||||
</ControlCategory>
|
||||
</SyncfusionControls>
|
|
@ -1,14 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
namespace SampleBrowser.Maui.AvatarView
|
||||
{
|
||||
// All the code in this file is included in all platforms.
|
||||
public class ControlConfig
|
||||
{
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SampleBrowser>
|
||||
<Assemblies Prefix="SampleBrowser.Maui.AvatarView" QualifiedInfo="Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<Assembly Name="AvatarView" />
|
||||
</Assemblies>
|
||||
</SampleBrowser>
|
|
@ -1,30 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
using Syncfusion.Maui.Core.Hosting;
|
||||
using SampleBrowser.Maui.Base.Hosting;
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.ConfigureSyncfusionCore()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
});
|
||||
builder.ConfigureSampleBrowserBase();
|
||||
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
|
@ -1,17 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Content.PM;
|
||||
using Android.OS;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
|
||||
public class MainActivity : MauiAppCompatActivity
|
||||
{
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
[Application]
|
||||
public class MainApplication : MauiApplication
|
||||
{
|
||||
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
|
||||
: base(handle, ownership)
|
||||
{
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#512BD4</color>
|
||||
<color name="colorPrimaryDark">#2B0B98</color>
|
||||
<color name="colorAccent">#2B0B98</color>
|
||||
</resources>
|
|
@ -1,16 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Foundation;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
[Register("AppDelegate")]
|
||||
public class AppDelegate : MauiUIApplicationDelegate
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
<maui:MauiWinUIApplication
|
||||
x:Class="SampleBrowser.Maui.AvatarView.WinUI.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:maui="using:Microsoft.Maui"
|
||||
xmlns:local="using:SampleBrowser.Maui.AvatarView.WinUI">
|
||||
|
||||
</maui:MauiWinUIApplication>
|
|
@ -1,54 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.Hosting;
|
||||
using Microsoft.UI;
|
||||
using Microsoft.UI.Windowing;
|
||||
using Microsoft.UI.Xaml;
|
||||
using WinRT.Interop;
|
||||
|
||||
// To learn more about WinUI, the WinUI project structure,
|
||||
// and more about our project templates, see: http://aka.ms/winui-project-info.
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView.WinUI;
|
||||
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
public partial class App : MauiWinUIApplication
|
||||
{
|
||||
/// <summary>
|
||||
/// 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().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
||||
{
|
||||
base.OnLaunched(args);
|
||||
if (IPlatformApplication.Current != null)
|
||||
{
|
||||
foreach (var item in IPlatformApplication.Current.Application.Windows)
|
||||
{
|
||||
var platformWindow = (item?.Handler?.PlatformView as Microsoft.UI.Xaml.Window);
|
||||
|
||||
if (platformWindow != null)
|
||||
{
|
||||
platformWindow.ExtendsContentIntoTitleBar = false;
|
||||
platformWindow.Title = ".NET MAUI Avatar View Demo";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||
IgnorableNamespaces="uap rescap">
|
||||
|
||||
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>$placeholder$</DisplayName>
|
||||
<PublisherDisplayName>User Name</PublisherDisplayName>
|
||||
<Logo>$placeholder$.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
|
||||
<uap:VisualElements
|
||||
DisplayName="$placeholder$"
|
||||
Description="$placeholder$"
|
||||
Square150x150Logo="$placeholder$.png"
|
||||
Square44x44Logo="$placeholder$.png"
|
||||
BackgroundColor="transparent">
|
||||
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" />
|
||||
<uap:SplashScreen Image="$placeholder$.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<rescap:Capability Name="runFullTrust" />
|
||||
</Capabilities>
|
||||
|
||||
</Package>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="SampleBrowser.Maui.AvatarView.WinUI.app"/>
|
||||
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<!-- The combination of below two tags have the following effect:
|
||||
1) Per-Monitor for >= Windows 10 Anniversary Update
|
||||
2) System < Windows 10 Anniversary Update
|
||||
-->
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
</assembly>
|
|
@ -1,16 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Foundation;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
[Register("AppDelegate")]
|
||||
public class AppDelegate : MauiUIApplicationDelegate
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Windows Machine": {
|
||||
"commandName": "MsixPackage",
|
||||
"nativeDebugging": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
<svg width="456" height="456" viewBox="0 0 456 456" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M456 0H0V456H456V0Z" fill="#4822E3"/>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 154 B |
|
@ -1,14 +0,0 @@
|
|||
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M48 0H0V48H48V0Z" fill="#4822E3"/>
|
||||
<g opacity="0.9">
|
||||
<rect x="15" y="17.3984" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="15" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="15" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="17.3984" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="20.4473" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect width="4.82131" height="4.82131" transform="matrix(0.709935 0.704267 -0.709935 0.704267 30.5234 15)" fill="white"/>
|
||||
<rect x="25.8906" y="22.8086" width="4.8406" height="4.80195" fill="white"/>
|
||||
<rect x="25.8906" y="28.1992" width="4.8406" height="4.80195" fill="white"/>
|
||||
</g>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 893 B |
|
@ -1,15 +0,0 @@
|
|||
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`.
|
||||
|
||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
|
||||
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();
|
||||
}
|
До Ширина: | Высота: | Размер: 17 KiB |
|
@ -1,92 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SampleBrowser.Maui.AvatarView</RootNamespace>
|
||||
<UseMaui>true</UseMaui>
|
||||
<SingleProject>true</SingleProject>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<AnalysisLevel>latest</AnalysisLevel>
|
||||
<AnalysisLevelSecurity>latest-recommended</AnalysisLevelSecurity>
|
||||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
|
||||
<Nullable>enable</Nullable>
|
||||
<NoWarn>$(NoWarn);NU1803</NoWarn>
|
||||
|
||||
<!-- Display name -->
|
||||
<ApplicationTitle>SampleBrowser.Maui.AvatarView</ApplicationTitle>
|
||||
|
||||
<!-- App Identifier -->
|
||||
<ApplicationId>com.syncfusion.samplebrowser.maui.avatarview</ApplicationId>
|
||||
<ApplicationIdGuid>98983B4D-24C6-44A2-9D3F-15EFE7ABD3D0</ApplicationIdGuid>
|
||||
|
||||
<!-- Versions -->
|
||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>1</ApplicationVersion>
|
||||
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.18362.0</SupportedOSPlatformVersion>
|
||||
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.18362.0</TargetPlatformMinVersion>
|
||||
<Configurations>Debug;Release;Release-Xml</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DefineConstants>TRACE;DEBUG;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DefineConstants>TRACE;RELEASE;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-Xml|AnyCPU' ">
|
||||
<DefineConstants>TRACE;RELEASE;</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningLevel>5</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net8.0-android' OR '$(TargetFramework)' == 'net8.0-ios' OR '$(TargetFramework)' == 'net8.0-maccatalyst' OR '$(TargetFramework)' == 'net8.0-windows10.0.19041.0' ">
|
||||
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- App Icon -->
|
||||
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#4822E3" />
|
||||
|
||||
<!-- Splash Screen -->
|
||||
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#4822E3" BaseSize="*,*" />
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<MauiFont Include="Resources\Fonts\*" />
|
||||
|
||||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
|
||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="AvatarViewSamplesList.xml" />
|
||||
<None Remove="ControlList.xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="ControlList.xml" />
|
||||
<EmbeddedResource Include="AvatarViewSamplesList.xml" />
|
||||
<EmbeddedResource Include="SyncfusionLicense.txt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SampleBrowser.Maui.Base" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.Core" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.TabView" version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Maui.Buttons" version="25.1.35" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>SampleBrowser.Maui.AvatarView</id>
|
||||
<version>20.1.0.1</version>
|
||||
<authors>Syncfusion Inc.</authors>
|
||||
<owners>Syncfusion Inc.</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<licenseUrl>http://www.syncfusion.com/nuget/license</licenseUrl>
|
||||
<projectUrl>http://www.syncfusion.com/</projectUrl>
|
||||
<iconUrl>http://www.syncfusion.com/content/images/nuget/sync_logo_icon.png</iconUrl>
|
||||
<description>AvatarView component for Syncfusion .NET MAUI</description>
|
||||
<copyright>Copyright 2001 - 2019 Syncfusion Inc.</copyright>
|
||||
</metadata>
|
||||
</package>
|
|
@ -1,41 +0,0 @@
|
|||
<Project>
|
||||
<ItemGroup>
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\AvatarViewGettingStarted\AvatarViewGettingStarted.xaml.cs">
|
||||
<Link>Samples\AvatarView\AvatarViewGettingStarted\AvatarViewGettingStarted.xaml.cs</Link>
|
||||
<DependentUpon>AvatarViewGettingStarted.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\GroupView\GroupView.xaml.cs">
|
||||
<Link>Samples\AvatarView\GroupView\GroupView.xaml.cs</Link>
|
||||
<DependentUpon>GroupView.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
<Compile Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\VisualStyleSample\VisualStyleSample.xaml.cs">
|
||||
<Link>Samples\AvatarView\VisualStyleSample\VisualStyleSample.xaml.cs</Link>
|
||||
<DependentUpon> VisualStyleSample.xaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)\AvatarViewSamplesList.xml" >
|
||||
<Link>AvatarViewSamplesList.xml</Link>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<MauiXaml Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\AvatarViewGettingStarted\AvatarViewGettingStarted.xaml">
|
||||
<Link>Samples\AvatarView\AvatarViewGettingStarted\AvatarViewGettingStarted.xaml</Link>
|
||||
</MauiXaml>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<MauiXaml Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\GroupView\GroupView.xaml">
|
||||
<Link>Samples\AvatarView\GroupView\GroupView.xaml</Link>
|
||||
</MauiXaml>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<MauiXaml Include="$(MSBuildThisFileDirectory)\Samples\AvatarView\VisualStyleSample\VisualStyleSample.xaml">
|
||||
<Link>Samples\AvatarView\VisualStyleSample\VisualStyleSample.xaml</Link>
|
||||
</MauiXaml>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,141 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<localCore:SampleView x:Class="SampleBrowser.Maui.AvatarView.SfAvatarView.AvatarViewGettingStarted"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
|
||||
xmlns:localCore="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:buttons="clr-namespace:Syncfusion.Maui.Buttons;assembly=Syncfusion.Maui.Buttons"
|
||||
xmlns:imageExtension="clr-namespace:SampleBrowser.Maui.Base.Converters;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:local="clr-namespace:SampleBrowser.Maui.AvatarView.SfAvatarView"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource BackgroundLight}, Dark={StaticResource BackgroundDark}}">
|
||||
|
||||
<localCore:SampleView.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="MainAvatarStyle" TargetType="syncfusion:SfAvatarView">
|
||||
<Setter Property="AvatarShape" Value="Circle"/>
|
||||
<Setter Property="AvatarSize" Value="ExtraLarge"/>
|
||||
<Setter Property="InitialsType" Value="{Binding InitialsType}"/>
|
||||
<Setter Property="ImageSource" Value="{imageExtension:SfImageResource people_circle1.png}"/>
|
||||
<Setter Property="AvatarName" Value="{Binding UserName}"/>
|
||||
<Setter Property="Stroke" Value="#9E9E9E"/>
|
||||
<Setter Property="Background" Value="{Binding GradientBrush}"/>
|
||||
<Setter Property="BackgroundColor" Value="{Binding ProfileColor}"/>
|
||||
<Setter Property="InitialsColor" Value="{Binding TextColor}"/>
|
||||
<Setter Property="ContentType" Value="{Binding ContentType}"/>
|
||||
</Style>
|
||||
<Style TargetType="Label">
|
||||
<Setter Property="VerticalTextAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalOptions" Value="Center"/>
|
||||
<Setter Property="TextColor" Value="Black"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</localCore:SampleView.Resources>
|
||||
<localCore:SampleView.Content>
|
||||
<ScrollView VerticalScrollBarVisibility="Never" HorizontalScrollBarVisibility="Never">
|
||||
<Grid RowSpacing="20"
|
||||
Margin="10,15"
|
||||
VerticalOptions="Fill"
|
||||
HorizontalOptions="Fill">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="105"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label Text="{Binding TitleText}"
|
||||
VerticalOptions="Start"
|
||||
HorizontalOptions="Start"
|
||||
TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"/>
|
||||
|
||||
<syncfusion:SfBadgeView x:Name="StatusBadge" Margin="0,30,0,0"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
HeightRequest="75"
|
||||
WidthRequest="75">
|
||||
<syncfusion:SfBadgeView.Content>
|
||||
<syncfusion:SfAvatarView HorizontalOptions="Start" VerticalOptions="Start" Style="{StaticResource MainAvatarStyle}"/>
|
||||
</syncfusion:SfBadgeView.Content>
|
||||
<syncfusion:SfBadgeView.BadgeSettings>
|
||||
<syncfusion:BadgeSettings Offset="-6,-6"
|
||||
Animation="Scale"
|
||||
Position="BottomRight"
|
||||
Type="Success"
|
||||
Icon="Available"/>
|
||||
</syncfusion:SfBadgeView.BadgeSettings>
|
||||
</syncfusion:SfBadgeView>
|
||||
<Grid Grid.Row="1" >
|
||||
<VerticalStackLayout Spacing="40" HorizontalOptions="Center" WidthRequest="{OnPlatform iOS='350',MacCatalyst='400',Android='340',WinUI='400'}">
|
||||
<StackLayout IsVisible="{Binding EditionIsVisible}">
|
||||
<Grid ColumnSpacing="20" RowSpacing="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="40"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<local:SfEntry Text="{Binding FirstName}"
|
||||
TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
PlaceholderColor="{AppThemeBinding Light={StaticResource PlaceholderTextColourLight}, Dark={StaticResource PlaceholderTextColour}}"
|
||||
Margin="2,0,0,0" VerticalOptions="End"
|
||||
VerticalTextAlignment="Center"
|
||||
Placeholder="Enter the First Name"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource FilledInputBackgroundLight}, Dark={StaticResource FilledInputBackground}}"/>
|
||||
<local:SfEntry Text="{Binding LastName}"
|
||||
TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
PlaceholderColor="{AppThemeBinding Light={StaticResource PlaceholderTextColourLight}, Dark={StaticResource PlaceholderTextColour}}"
|
||||
Margin="{OnPlatform Default='2,8,0,0', Android='2,0,0,0'}" Grid.Column="1" VerticalOptions="Center"
|
||||
VerticalTextAlignment="Center"
|
||||
Placeholder="Enter the Last Name"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource FilledInputBackgroundLight}, Dark={StaticResource FilledInputBackground}}" />
|
||||
|
||||
</Grid>
|
||||
<Grid Margin="0,50,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="40"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label HorizontalOptions="Start" Text="Show status indicator" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"/>
|
||||
<buttons:SfCheckBox IsChecked="True" Grid.Column="1"
|
||||
x:Name="StatusIndicatorCheck"
|
||||
StateChanged="StatusIndicatorCheck_StateChanged"
|
||||
HorizontalOptions="End"/>
|
||||
</Grid>
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="40"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label HorizontalOptions="Start" Text="Use custom picture" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"/>
|
||||
<buttons:SfCheckBox HorizontalOptions="End" Grid.Column="1"
|
||||
IsChecked="{Binding UseCustomAvatar}"/>
|
||||
</Grid>
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="40"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label HorizontalOptions="Start" Text="Show double character" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}" />
|
||||
<buttons:SfCheckBox HorizontalOptions="End" Grid.Column="1"
|
||||
IsChecked="{Binding UseDoubleCharacter}"/>
|
||||
</Grid>
|
||||
<Grid Margin="0,15,0,0" IsEnabled="{Binding UseInitialAvatar}" Opacity="{Binding ColorPickerOpacity}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="130"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label HorizontalOptions="Start" Text="Choose gradient background" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"/>
|
||||
<FlexLayout Grid.Row="1" Wrap="Wrap" x:Name="gradientcollection" BindableLayout.ItemsSource="{Binding ColorItemCollection}" WidthRequest="{OnPlatform iOS='350',MacCatalyst='400',Android='350',WinUI='400'}">
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ContentView Content="{Binding}" Margin="4"/>
|
||||
</DataTemplate>
|
||||
</BindableLayout.ItemTemplate>
|
||||
</FlexLayout>
|
||||
</Grid>
|
||||
</StackLayout>
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ScrollView>
|
||||
</localCore:SampleView.Content>
|
||||
</localCore:SampleView>
|
|
@ -1,535 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.Maui.Platform;
|
||||
using SampleBrowser.Maui.Base;
|
||||
using Syncfusion.Maui.Core;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
#if ANDROID
|
||||
using Android.Content.Res;
|
||||
#endif
|
||||
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView.SfAvatarView;
|
||||
public partial class AvatarViewGettingStarted : SampleView
|
||||
{
|
||||
|
||||
private bool usedoublecharacter = false;
|
||||
public bool UseDoubleCharacter
|
||||
{
|
||||
get
|
||||
{
|
||||
return usedoublecharacter;
|
||||
}
|
||||
set
|
||||
{
|
||||
usedoublecharacter = value;
|
||||
if (value)
|
||||
{
|
||||
usedoublecharacter = true;
|
||||
InitialsType = InitialsType.DoubleCharacter;
|
||||
//SetAvatarName();
|
||||
}
|
||||
else
|
||||
{
|
||||
usedoublecharacter = false;
|
||||
InitialsType = InitialsType.SingleCharacter;
|
||||
//SetAvatarName();
|
||||
|
||||
}
|
||||
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private InitialsType initials;
|
||||
|
||||
public InitialsType InitialsType
|
||||
{
|
||||
get
|
||||
{
|
||||
return initials;
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
initials = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private GradientBrush? gradientBrush;
|
||||
|
||||
public GradientBrush? GradientBrush
|
||||
{
|
||||
get
|
||||
{
|
||||
return gradientBrush;
|
||||
}
|
||||
set
|
||||
{
|
||||
gradientBrush = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private bool useCustomAvatar = false;
|
||||
|
||||
public bool UseCustomAvatar
|
||||
{
|
||||
get
|
||||
{
|
||||
return useCustomAvatar;
|
||||
}
|
||||
set
|
||||
{
|
||||
useCustomAvatar = value;
|
||||
|
||||
if (value)
|
||||
{
|
||||
UseInitialAvatar = false;
|
||||
ContentType = ContentType.Custom;
|
||||
}
|
||||
else
|
||||
{
|
||||
ContentType = ContentType.Initials;
|
||||
UseInitialAvatar = true;
|
||||
}
|
||||
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private ContentType contentType = ContentType.Initials;
|
||||
|
||||
public ContentType ContentType
|
||||
{
|
||||
get
|
||||
{
|
||||
return contentType;
|
||||
}
|
||||
set
|
||||
{
|
||||
contentType = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private bool editionIsVisible = true;
|
||||
|
||||
public bool EditionIsVisible
|
||||
{
|
||||
get
|
||||
{
|
||||
return editionIsVisible;
|
||||
}
|
||||
set
|
||||
{
|
||||
editionIsVisible = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private bool useInitialAvatar = true;
|
||||
|
||||
public bool UseInitialAvatar
|
||||
{
|
||||
get
|
||||
{
|
||||
return useInitialAvatar;
|
||||
}
|
||||
set
|
||||
{
|
||||
useInitialAvatar = value;
|
||||
if (value)
|
||||
ColorPickerOpacity = 1;
|
||||
else
|
||||
ColorPickerOpacity = 0.3;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private bool useGradients;
|
||||
|
||||
public bool UseGradients
|
||||
{
|
||||
get
|
||||
{
|
||||
return useGradients;
|
||||
}
|
||||
set
|
||||
{
|
||||
useGradients = value;
|
||||
if (useGradients)
|
||||
{
|
||||
SetGradients();
|
||||
SetColorToAvatar();
|
||||
}
|
||||
else
|
||||
{
|
||||
SetGradients();
|
||||
PopulateColorCollection();
|
||||
SetColorToAvatar();
|
||||
|
||||
}
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private String firstName = "Ellana";
|
||||
|
||||
public String FirstName
|
||||
{
|
||||
get
|
||||
{
|
||||
return firstName;
|
||||
}
|
||||
set
|
||||
{
|
||||
firstName = value;
|
||||
UserName = FirstName + " " + LastName;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private String? lastName;
|
||||
|
||||
public String? LastName
|
||||
{
|
||||
get
|
||||
{
|
||||
return lastName;
|
||||
}
|
||||
set
|
||||
{
|
||||
lastName = value;
|
||||
UserName = FirstName + " " + LastName;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private String? userName;
|
||||
|
||||
public String? UserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
set
|
||||
{
|
||||
userName = value;
|
||||
TitleText = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private String? titleText;
|
||||
|
||||
public String? TitleText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (UserName == String.Empty || UserName == " ")
|
||||
return String.Empty;
|
||||
return "Hi " + titleText;
|
||||
}
|
||||
set
|
||||
{
|
||||
titleText = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private Color? profileColor;
|
||||
|
||||
public Color? ProfileColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return profileColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
profileColor = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private Color? textColor;
|
||||
|
||||
public Color? TextColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return textColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
textColor = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private double colorPickerOpacity = 1;
|
||||
|
||||
public double ColorPickerOpacity
|
||||
{
|
||||
get
|
||||
{
|
||||
return colorPickerOpacity;
|
||||
}
|
||||
set
|
||||
{
|
||||
colorPickerOpacity = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ObservableCollection<ColorBackgroundAvatar> colorItemCollection = new ObservableCollection<ColorBackgroundAvatar>();
|
||||
|
||||
public ObservableCollection<ColorBackgroundAvatar> ColorItemCollection
|
||||
{
|
||||
get
|
||||
{
|
||||
return colorItemCollection;
|
||||
}
|
||||
set
|
||||
{
|
||||
colorItemCollection = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public AvatarViewGettingStarted()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
PopulateColorCollection();
|
||||
|
||||
tappedAvatar = ColorItemCollection[0];
|
||||
|
||||
UseGradients = true;
|
||||
this.BindingContext = this;
|
||||
}
|
||||
|
||||
private void StatusIndicatorCheck_StateChanged(object sender, Syncfusion.Maui.Buttons.StateChangedEventArgs e)
|
||||
{
|
||||
if (this.StatusIndicatorCheck.IsChecked == true) {
|
||||
this.StatusBadge.BadgeSettings!.Icon = BadgeIcon.Available;
|
||||
}
|
||||
else {
|
||||
this.StatusBadge.BadgeSettings!.Icon = BadgeIcon.None;
|
||||
}
|
||||
}
|
||||
private void SetAvatarName()
|
||||
{
|
||||
if (tappedAvatar == null)
|
||||
{ return; }
|
||||
if (InitialsType == InitialsType.DoubleCharacter)
|
||||
{
|
||||
if (UserName != null)
|
||||
{
|
||||
tappedAvatar.AvatarName = UserName;
|
||||
tappedAvatar.InitialsType = InitialsType;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (UserName != null)
|
||||
{
|
||||
tappedAvatar.AvatarName = UserName;
|
||||
tappedAvatar.InitialsType = InitialsType;
|
||||
}
|
||||
|
||||
}
|
||||
UserName = tappedAvatar.AvatarName;
|
||||
InitialsType = tappedAvatar.InitialsType;
|
||||
}
|
||||
|
||||
private void PopulateColorCollection()
|
||||
{
|
||||
ColorItemCollection.Clear();
|
||||
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#976F0C"), Color.FromArgb("#58B7C6"), Color.FromArgb("#7FB3E8")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#740A1C"), Color.FromArgb("#95479B"), Color.FromArgb("#FF8F8F")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#5C2E91"), Color.FromArgb("#3C7F91"), Color.FromArgb("#71B280")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#004E8C"), Color.FromArgb("#525CE5"), Color.FromArgb("#9437C3")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#B73EAA"), Color.FromArgb("#80C6CF"), Color.FromArgb("#87DFAC")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#90DDFE"), Color.FromArgb("#E7A8FA"), Color.FromArgb("#F3DED6")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#9FCC69"), Color.FromArgb("#FFDBC7"), Color.FromArgb("#FC9F9F")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#FCCE65"), Color.FromArgb("#A6F0FF"), Color.FromArgb("#BCC1FF")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#FE9B90"), Color.FromArgb("#BCC2F4"), Color.FromArgb("#E8BEF7")));
|
||||
ColorItemCollection.Add(GetColorPickerItem(Color.FromArgb("#9AA8F5"), Color.FromArgb("#96E6A1"), Color.FromArgb("#DCFA97")));
|
||||
|
||||
}
|
||||
|
||||
private ColorBackgroundAvatar GetColorPickerItem(Color backgroundColor, Color startcolor, Color stopcolor)
|
||||
{
|
||||
ColorBackgroundAvatar colorAvatar = new ColorBackgroundAvatar();
|
||||
colorAvatar.BackgroundColor = backgroundColor;
|
||||
colorAvatar.Stroke = Color.FromArgb("#9E9E9E");
|
||||
colorAvatar.InitialsColor = Colors.Transparent;
|
||||
colorAvatar.AvatarShape = AvatarShape.Circle;
|
||||
colorAvatar.AvatarSize = AvatarSize.Medium;
|
||||
colorAvatar.VerticalOptions = LayoutOptions.Center;
|
||||
colorAvatar.HorizontalOptions = LayoutOptions.Center;
|
||||
colorAvatar.AvatarName = "";
|
||||
TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
|
||||
tapGestureRecognizer.Tapped += ColorTapGestureRecognizer_Tapped;
|
||||
colorAvatar.GestureRecognizers.Add(tapGestureRecognizer);
|
||||
colorAvatar.StartColor = startcolor;
|
||||
colorAvatar.StopColor = stopcolor;
|
||||
return colorAvatar;
|
||||
}
|
||||
|
||||
private void SetGradients()
|
||||
{
|
||||
foreach (var item in ColorItemCollection)
|
||||
{
|
||||
if (this.UseGradients)
|
||||
if (ColorItemCollection.IndexOf(item) < 5)
|
||||
item.Background = GetGradients(item.StartColor!, item.StopColor!);
|
||||
else
|
||||
item.Background = GetGradients(item.StartColor!, item.StopColor!);
|
||||
}
|
||||
}
|
||||
|
||||
private LinearGradientBrush GetGradients(Color startColor, Color endColor)
|
||||
{
|
||||
LinearGradientBrush linearGradientBrush = new LinearGradientBrush();
|
||||
linearGradientBrush.GradientStops = new GradientStopCollection()
|
||||
{
|
||||
new GradientStop(){Color = startColor, Offset=0.0f},
|
||||
new GradientStop(){Color = endColor, Offset=1.0f},
|
||||
};
|
||||
|
||||
return linearGradientBrush;
|
||||
}
|
||||
|
||||
ColorBackgroundAvatar tappedAvatar;
|
||||
|
||||
private void ColorTapGestureRecognizer_Tapped(object? sender, EventArgs e)
|
||||
{
|
||||
if (this.UseCustomAvatar)
|
||||
return;
|
||||
|
||||
var colorBackgroundAvatar = sender as ColorBackgroundAvatar;
|
||||
if (colorBackgroundAvatar != null)
|
||||
{
|
||||
tappedAvatar = colorBackgroundAvatar;
|
||||
}
|
||||
SetColorToAvatar();
|
||||
}
|
||||
|
||||
private void SetColorToAvatar()
|
||||
{
|
||||
if (tappedAvatar == null)
|
||||
return;
|
||||
|
||||
foreach (var item in ColorItemCollection)
|
||||
{
|
||||
item.InitialsColor = Colors.Transparent;
|
||||
item.Stroke = Color.FromArgb("#9E9E9E");
|
||||
}
|
||||
|
||||
tappedAvatar.Stroke = Color.FromArgb("#6200EE");
|
||||
tappedAvatar.StrokeThickness = 2;
|
||||
|
||||
if (ColorItemCollection.IndexOf(tappedAvatar) < 5)
|
||||
{
|
||||
tappedAvatar.InitialsColor = Colors.White;
|
||||
}
|
||||
else
|
||||
{
|
||||
tappedAvatar.InitialsColor = Colors.Black;
|
||||
}
|
||||
ProfileColor = tappedAvatar.BackgroundColor;
|
||||
TextColor = tappedAvatar.InitialsColor;
|
||||
if (UseGradients)
|
||||
{
|
||||
GradientBrush = (GradientBrush)tappedAvatar.Background;
|
||||
}
|
||||
else
|
||||
{
|
||||
GradientBrush = null;
|
||||
}
|
||||
}
|
||||
|
||||
public class ColorBackgroundAvatar : Syncfusion.Maui.Core.SfAvatarView
|
||||
{
|
||||
private Color? startColor;
|
||||
|
||||
public Color? StartColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return startColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
startColor = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private Color? stopcolor;
|
||||
|
||||
public Color? StopColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return stopcolor;
|
||||
}
|
||||
set
|
||||
{
|
||||
stopcolor = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class SfEntry : Entry {
|
||||
public SfEntry() {
|
||||
|
||||
#if ANDROID
|
||||
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("NoUnderline", (h, v) =>
|
||||
{
|
||||
if (v is SfEntry) {
|
||||
h.PlatformView.BackgroundTintList = ColorStateList.ValueOf(Colors.Transparent.ToPlatform());
|
||||
}
|
||||
});
|
||||
#endif
|
||||
#if WINDOWS
|
||||
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("NoUnderline", (h, v) =>
|
||||
{
|
||||
if (v is SfEntry)
|
||||
{
|
||||
h.PlatformView.BorderThickness = new Microsoft.UI.Xaml.Thickness(0);
|
||||
h.PlatformView.Padding = new Microsoft.UI.Xaml.Thickness(8, 0, 0, 0);
|
||||
h.PlatformView.Resources["TextControlBorderThemeThicknessFocused"] = new Microsoft.UI.Xaml.Thickness(0);
|
||||
}
|
||||
});
|
||||
#endif
|
||||
#if MACCATALYST
|
||||
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("NoUnderline", (h, v) =>
|
||||
{
|
||||
if (v is SfEntry)
|
||||
{
|
||||
h.PlatformView.BorderStyle = UIKit.UITextBorderStyle.None;
|
||||
}
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<localCore:SampleView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:avatar="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
|
||||
x:Class="SampleBrowser.Maui.AvatarView.SfAvatarView.GroupView"
|
||||
xmlns:localCore="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:imageExtension="clr-namespace:SampleBrowser.Maui.Base.Converters;assembly=SampleBrowser.Maui.Base"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource BackgroundLight}, Dark={StaticResource BackgroundDark}}">
|
||||
<localCore:SampleView.Content>
|
||||
<Grid>
|
||||
<Grid Margin="10">
|
||||
<ListView ItemsSource="{Binding GroupCollection}" RowHeight="60"
|
||||
SelectionMode="None" BackgroundColor="{AppThemeBinding Light={StaticResource BackgroundLight}, Dark={StaticResource BackgroundDark}}">
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ViewCell>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<avatar:SfAvatarView GroupSource="{Binding PeopleCollection}"
|
||||
Margin="5"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center"
|
||||
ContentType="Group"
|
||||
AvatarShape="{Binding AvatarShape}"
|
||||
AvatarSize="Small"
|
||||
StrokeThickness="1"
|
||||
ImageSourceMemberPath="Image"
|
||||
BackgroundColorMemberPath="Backgroundcolor"
|
||||
InitialsMemberPath="Name"/>
|
||||
<Grid Grid.Column="1" Margin="12,0,0,0" VerticalOptions="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label Text="{Binding GroupName}"
|
||||
VerticalOptions="Center"
|
||||
VerticalTextAlignment="Center"
|
||||
FontSize="14"
|
||||
TextColor="{AppThemeBinding Light={StaticResource TileTextColourLight}, Dark={StaticResource TileTextColour}}"/>
|
||||
<Label Grid.Row="1"
|
||||
Text="{Binding TotalParticipants}"
|
||||
VerticalOptions="Center"
|
||||
VerticalTextAlignment="Center"
|
||||
FontSize="11"
|
||||
TextColor="{AppThemeBinding Light={StaticResource TileTextColourAlt1Light}, Dark={StaticResource TileTextColourAlt1}}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ViewCell>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</localCore:SampleView.Content>
|
||||
</localCore:SampleView>
|
|
@ -1,191 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Collections.ObjectModel;
|
||||
using SampleBrowser.Maui.Base;
|
||||
using SampleBrowser.Maui.Base.Converters;
|
||||
using System.Reflection;
|
||||
namespace SampleBrowser.Maui.AvatarView.SfAvatarView;
|
||||
|
||||
public partial class GroupView : SampleView
|
||||
{
|
||||
private ObservableCollection<GroupModel> groupCollection = new ObservableCollection<GroupModel>();
|
||||
|
||||
public ObservableCollection<GroupModel> GroupCollection
|
||||
{
|
||||
get
|
||||
{
|
||||
return groupCollection;
|
||||
}
|
||||
set
|
||||
{
|
||||
groupCollection = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public GroupView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.GroupCollection.Add(new GroupModel(5) { GroupName = "Marketing Managers" });
|
||||
this.GroupCollection.Add(new GroupModel(10) { GroupName = "Marketing Representative" });
|
||||
this.GroupCollection.Add(new GroupModel(3) { GroupName = "Marketing Heads" });
|
||||
this.GroupCollection.Add(new GroupModel(4) { GroupName = "Sales Managers" });
|
||||
this.GroupCollection.Add(new GroupModel(9) { GroupName = "Sales Representative" });
|
||||
this.GroupCollection.Add(new GroupModel(2) { GroupName = "Sales Heads" });
|
||||
this.GroupCollection.Add(new GroupModel(5) { GroupName = "Process Managers" });
|
||||
this.GroupCollection.Add(new GroupModel(10) { GroupName = "Process Representative" });
|
||||
this.GroupCollection.Add(new GroupModel(2) { GroupName = "Process Heads" });
|
||||
this.GroupCollection.Add(new GroupModel(3) { GroupName = "Coordinaters" });
|
||||
this.GroupCollection.Add(new GroupModel(3) { GroupName = "Desinger" });
|
||||
this.GroupCollection.Add(new GroupModel(2) { GroupName = "Field Managers" });
|
||||
this.GroupCollection.Add(new GroupModel(2) { GroupName = "Server Team" });
|
||||
this.BindingContext = this;
|
||||
}
|
||||
}
|
||||
|
||||
public class GroupModel
|
||||
{
|
||||
|
||||
public String? GroupName { get; set; }
|
||||
|
||||
public ObservableCollection<People>? PeopleCollection { get; set; }
|
||||
|
||||
private ObservableCollection<People>? TotalPeople { get; set; }
|
||||
|
||||
public String? TotalParticipants { get; set; }
|
||||
|
||||
private Syncfusion.Maui.Core.AvatarShape avatarshape;
|
||||
public Syncfusion.Maui.Core.AvatarShape AvatarShape
|
||||
{
|
||||
get
|
||||
{
|
||||
return avatarshape;
|
||||
}
|
||||
set
|
||||
{
|
||||
avatarshape = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public GroupModel(int peopleCount)
|
||||
{
|
||||
if (DeviceInfo.Platform == DevicePlatform.Android || DeviceInfo.Platform == DevicePlatform.WinUI)
|
||||
avatarshape = Syncfusion.Maui.Core.AvatarShape.Circle;
|
||||
else
|
||||
avatarshape = Syncfusion.Maui.Core.AvatarShape.Square;
|
||||
|
||||
this.TotalParticipants = peopleCount.ToString() + " Participants";
|
||||
|
||||
this.PopulateAllPeople();
|
||||
|
||||
this.PopulatePeopleBasedOnCount(peopleCount);
|
||||
}
|
||||
|
||||
private void PopulateAllPeople()
|
||||
{
|
||||
this.TotalPeople = new ObservableCollection<People>();
|
||||
this.TotalPeople.Add(new People() { Name = "Kyle", Backgroundcolor = Color.FromArgb("#90DDFE") });
|
||||
this.TotalPeople.Add(new People() { Name = "Gina", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Michael", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Oscar", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "William", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Bill", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Daniel", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Frank", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Howard", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Jack", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Holly", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Steve", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Vince", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Zeke", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Aiden", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Jackson", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Mason", Backgroundcolor = Colors.BlanchedAlmond });
|
||||
this.TotalPeople.Add(new People() { Name = "Liam", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Jacob", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Jayden", Backgroundcolor = Colors.Red });
|
||||
this.TotalPeople.Add(new People() { Name = "Ethan", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Alexander", Backgroundcolor = Colors.Red });
|
||||
this.TotalPeople.Add(new People() { Name = "Sebastian", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Clara", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Victoriya", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Ellie", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Gabriella", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Arianna", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Sarah", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Kaylee", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Adriana", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Finley", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Daleyza", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Leila", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Mckenna", Backgroundcolor = Colors.Blue });
|
||||
this.TotalPeople.Add(new People() { Name = "Jacqueline", Backgroundcolor = Color.FromArgb("#9AA8F5") });
|
||||
this.TotalPeople.Add(new People() { Name = "Brynn", Backgroundcolor = Color.FromArgb("#FCCE65") });
|
||||
this.TotalPeople.Add(new People() { Name = "Sawyer", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Rosalie", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Maci", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Miranda", Backgroundcolor = Color.FromArgb("#90DDFE") });
|
||||
this.TotalPeople.Add(new People() { Name = "Talia", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Shelby", Backgroundcolor = Color.FromArgb("#9FEFC5") });
|
||||
this.TotalPeople.Add(new People() { Name = "Haven", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Brynn", Backgroundcolor = Color.FromArgb("#E79AF5") });
|
||||
this.TotalPeople.Add(new People() { Name = "Yaretzi", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Zariah", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Karla", Backgroundcolor = Color.FromArgb("#D7E99C") });
|
||||
this.TotalPeople.Add(new People() { Name = "Cassandra", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Pearl", Backgroundcolor = Color.FromArgb("#FBBC93") });
|
||||
this.TotalPeople.Add(new People() { Name = "Irene", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Zelda", Backgroundcolor = Color.FromArgb("#F5EF9A") });
|
||||
this.TotalPeople.Add(new People() { Name = "Wren", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Yamileth", Backgroundcolor = Color.FromArgb("#9AA8F5") });
|
||||
this.TotalPeople.Add(new People() { Name = "Belen", Backgroundcolor = Color.FromArgb("#9AA8F5") });
|
||||
this.TotalPeople.Add(new People() { Name = "Briley", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "Jada", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
this.TotalPeople.Add(new People() { Name = "Jaden", Backgroundcolor = Color.FromArgb("#FE9B90") });
|
||||
this.TotalPeople.Add(new People() { Name = "George", Backgroundcolor = Color.FromArgb("#FCCE65") });
|
||||
this.TotalPeople.Add(new People() { Name = "Ellanaa", Backgroundcolor = Color.FromArgb("#9AA8F5") });
|
||||
this.TotalPeople.Add(new People() { Name = "James", Backgroundcolor = Color.FromArgb("#9FCC69") });
|
||||
|
||||
}
|
||||
|
||||
//Random random = new Random();
|
||||
static int count = 0;
|
||||
private void PopulatePeopleBasedOnCount(int peopleCount)
|
||||
{
|
||||
this.PeopleCollection = new ObservableCollection<People>();
|
||||
for (int i = 0; i < peopleCount; i++)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if(TotalPeople!=null)
|
||||
{
|
||||
if (this.TotalPeople.Count <= count)
|
||||
count = 0;
|
||||
|
||||
var person = (this.TotalPeople?[count++]);
|
||||
if (person != null && !this.PeopleCollection.Contains(person))
|
||||
{
|
||||
this.PeopleCollection.Add(person);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class People
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
|
||||
public ImageSource? Image { get; set; }
|
||||
|
||||
public Color? Backgroundcolor { get; set; }
|
||||
}
|
|
@ -1,158 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<localCore:SampleView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:avatar="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
|
||||
x:Class="SampleBrowser.Maui.AvatarView.SfAvatarView.VisualStyleSample"
|
||||
xmlns:localCore="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:imageExtension="clr-namespace:SampleBrowser.Maui.Base.Converters;assembly=SampleBrowser.Maui.Base"
|
||||
BackgroundColor="{AppThemeBinding Light={StaticResource BackgroundLight}, Dark={StaticResource BackgroundDark}}">
|
||||
|
||||
<localCore:SampleView.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="AvatarViewStyle" TargetType="avatar:SfAvatarView">
|
||||
<Setter Property="VerticalOptions" Value="Center"/>
|
||||
<Setter Property="HorizontalOptions" Value="Start"/>
|
||||
<Setter Property="ImageSource" Value="{imageExtension:SfImageResource image5.png}"/>
|
||||
<Setter Property="AvatarName" Value="SF"/>
|
||||
<Setter Property="ImageSourceMemberPath" Value="Image"/>
|
||||
<Setter Property="InitialsMemberPath" Value="Name"/>
|
||||
<Setter Property="ContentType" Value="{Binding AvatarType}"/>
|
||||
<Setter Property="GroupSource" Value="{Binding TotalPeople}"/>
|
||||
</Style>
|
||||
<Style x:Key="MenuAvatarViewStyle" TargetType="avatar:SfAvatarView">
|
||||
<Setter Property="VerticalOptions" Value="Center"/>
|
||||
<Setter Property="HorizontalOptions" Value="Start"/>
|
||||
<Setter Property="Margin" Value="10"/>
|
||||
<Setter Property="StrokeThickness" Value="0"/>
|
||||
<Setter Property="AvatarShape" Value="Square"/>
|
||||
<Setter Property="AvatarSize" Value="Large"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</localCore:SampleView.Resources>
|
||||
<localCore:SampleView.Content>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="5*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ScrollView Grid.Row="1" Margin="10">
|
||||
<StackLayout x:Name="mainstack" Orientation="Horizontal" HorizontalOptions="Center">
|
||||
<StackLayout Orientation="Vertical">
|
||||
|
||||
|
||||
<StackLayout Orientation="Horizontal" Spacing="10">
|
||||
<avatar:SfAvatarView x:Name="customavatar"
|
||||
AvatarShape="Custom"
|
||||
Style="{StaticResource AvatarViewStyle}"
|
||||
HorizontalOptions="Center"
|
||||
WidthRequest="100"
|
||||
HeightRequest="75"
|
||||
Stroke="LightBlue"
|
||||
StrokeThickness="5"
|
||||
CornerRadius="0,20,0,20"/>
|
||||
<avatar:SfAvatarView
|
||||
x:Name="customavatar1"
|
||||
AvatarShape="Custom"
|
||||
Style="{StaticResource AvatarViewStyle}"
|
||||
HorizontalOptions="Center"
|
||||
WidthRequest="75"
|
||||
HeightRequest="75"
|
||||
Stroke="LightBlue"
|
||||
StrokeThickness="5"
|
||||
CornerRadius="0,0,37,37"/>
|
||||
</StackLayout>
|
||||
|
||||
<Grid HeightRequest="10"/>
|
||||
<Label Text="Default Visual Types" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="14"/>
|
||||
<StackLayout Padding="0,10,0,0" Orientation="Horizontal">
|
||||
<StackLayout Orientation="Vertical">
|
||||
|
||||
<avatar:SfAvatarView x:Name="ExtraLargeCircleAvatar"
|
||||
AvatarShape="Circle"
|
||||
AvatarSize="ExtraLarge"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Extra Large Circle" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="LargeCircleAvatar"
|
||||
AvatarShape="Circle"
|
||||
AvatarSize="Large"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Large Circle" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="MediumCircleAvatar"
|
||||
AvatarShape="Circle"
|
||||
AvatarSize="Medium"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Medium Circle" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="SmallCircleAvatar"
|
||||
AvatarShape="Circle"
|
||||
AvatarSize="Small"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Small Circle" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="ExtraSmallCircleAvatar"
|
||||
AvatarShape="Circle"
|
||||
AvatarSize="ExtraSmall"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Extra Small Circle" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Vertical" Margin="20,0,0,0">
|
||||
|
||||
<avatar:SfAvatarView x:Name="ExtraLargeSquareAvatar"
|
||||
AvatarShape="Square"
|
||||
AvatarSize="ExtraLarge"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Extra Large Square" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="LargeSquareAvatar"
|
||||
AvatarShape="Square"
|
||||
AvatarSize="Large"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Large Square" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="MediumSqaureAvatar"
|
||||
AvatarShape="Square"
|
||||
AvatarSize="Medium"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Medium Square" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="SmallSqaureAvatar"
|
||||
AvatarShape="Square"
|
||||
AvatarSize="Small"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Small Square" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
<Grid HeightRequest="10"/>
|
||||
|
||||
<avatar:SfAvatarView x:Name="ExtraSmallSqaureAvatar"
|
||||
AvatarShape="Square"
|
||||
AvatarSize="ExtraSmall"
|
||||
Style="{StaticResource AvatarViewStyle}"/>
|
||||
<Label Text="Extra Small Square" Padding="0,10,0,0" TextColor="{AppThemeBinding Light={StaticResource TextColourLight}, Dark={StaticResource TextColour}}"
|
||||
FontSize="12"/>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</localCore:SampleView.Content>
|
||||
</localCore:SampleView>
|
|
@ -1,63 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using SampleBrowser.Maui.Base;
|
||||
using Syncfusion.Maui.Core;
|
||||
using System.Collections.ObjectModel;
|
||||
using Avatar = Syncfusion.Maui.Core;
|
||||
|
||||
namespace SampleBrowser.Maui.AvatarView.SfAvatarView;
|
||||
|
||||
public partial class VisualStyleSample : SampleView
|
||||
{
|
||||
private ContentType avatarType = ContentType.Initials;
|
||||
|
||||
public ContentType AvatarType
|
||||
{
|
||||
get
|
||||
{
|
||||
return avatarType;
|
||||
}
|
||||
set
|
||||
{
|
||||
avatarType = value;
|
||||
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public ObservableCollection<People> TotalPeople { get; set; }
|
||||
|
||||
#region Constructor
|
||||
public VisualStyleSample()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
this.TotalPeople = new ObservableCollection<People>();
|
||||
this.TotalPeople.Add(new People() { Name = "Michael", Image = "SampleBrowser.Maui.Base.Resources.Images.people.png" });
|
||||
this.TotalPeople.Add(new People() { Name = "Kyle", Image = "SampleBrowser.Maui.Base.Resources.Images.people.png" });
|
||||
this.TotalPeople.Add(new People() { Name = "Nora" });
|
||||
|
||||
this.BindingContext = this;
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
public class People
|
||||
{
|
||||
public String? Name { get; set; }
|
||||
|
||||
public String? Image { get; set; }
|
||||
|
||||
public Color? Backgroundcolor { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True" />
|
||||
<add key="automatic" value="True" />
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
<activePackageSource>
|
||||
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False" />
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31611.283
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleBrowser.Maui.Backdrop", "SampleBrowser.Maui.Backdrop\SampleBrowser.Maui.Backdrop.csproj", "{AE4746BD-AF2A-4C96-9B2E-D857529C557B}"
|
||||
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
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release-Xml|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release-Xml|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AE4746BD-AF2A-4C96-9B2E-D857529C557B}.Release-Xml|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:SampleBrowser.Maui.Backdrop"
|
||||
x:Class="SampleBrowser.Maui.Backdrop.App"
|
||||
xmlns:base="clr-namespace:SampleBrowser.Maui.Base;assembly=SampleBrowser.Maui.Base"
|
||||
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core">
|
||||
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<base:SampleBrowserStyles/>
|
||||
<syncTheme:SyncfusionThemeResourceDictionary />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Reflection;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
var appInfo = typeof(App).GetTypeInfo().Assembly;
|
||||
SampleBrowser.Maui.Base.BaseConfig.IsIndividualSB = true;
|
||||
MainPage = SampleBrowser.Maui.Base.BaseConfig.MainPageInit(appInfo);
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SyncfusionControls>
|
||||
|
||||
<ControlCategory Name="Layouts" >
|
||||
<Control Title="Backdrop Page" ControlName="SfBackdropPage" Image="backdrop.png" Description="This control displays contextual and actionable content behind all app surfaces.">
|
||||
<Sample SampleName="InitialPage" Title="Features" CodeViewerPath="Backdrop/" VideoLink="https://www.youtube.com/watch?v=99VGii8CFmw"/>
|
||||
</Control>
|
||||
</ControlCategory>
|
||||
|
||||
</SyncfusionControls>
|
|
@ -1,14 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
namespace SampleBrowser.Maui.Backdrop
|
||||
{
|
||||
// All the code in this file is included in all platforms.
|
||||
public class ControlConfig
|
||||
{
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<SampleBrowser>
|
||||
<Assemblies Prefix="SampleBrowser.Maui.Backdrop" QualifiedInfo="Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<Assembly Name="Backdrop" />
|
||||
</Assemblies>
|
||||
</SampleBrowser>
|
|
@ -1,31 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
using SampleBrowser.Maui.Base.Hosting;
|
||||
using Syncfusion.Maui.Core.Hosting;
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.ConfigureSyncfusionCore()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
fonts.AddFont("Sync FontIcons.ttf");
|
||||
});
|
||||
builder.ConfigureSampleBrowserBase();
|
||||
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
|
@ -1,17 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Content.PM;
|
||||
using Android.OS;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
|
||||
public class MainActivity : MauiAppCompatActivity
|
||||
{
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Android.App;
|
||||
using Android.Runtime;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
[Application]
|
||||
public class MainApplication : MauiApplication
|
||||
{
|
||||
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
|
||||
: base(handle, ownership)
|
||||
{
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#512BD4</color>
|
||||
<color name="colorPrimaryDark">#2B0B98</color>
|
||||
<color name="colorAccent">#2B0B98</color>
|
||||
</resources>
|
|
@ -1,16 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Foundation;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
[Register("AppDelegate")]
|
||||
public class AppDelegate : MauiUIApplicationDelegate
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,22 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using ObjCRuntime;
|
||||
using UIKit;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.Hosting;
|
||||
|
||||
namespace SampleBrowser.Maui.Backdrop;
|
||||
|
||||
class Program : MauiApplication
|
||||
{
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var app = new Program();
|
||||
app.Run(args);
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="7" xmlns="http://tizen.org/ns/packages">
|
||||
<profile name="common" />
|
||||
<ui-application appid="maui-application-id-placeholder" exec="SampleBrowser.Maui.Backdrop.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
|
||||
<label>maui-application-title-placeholder</label>
|
||||
<icon>maui-appicon-placeholder</icon>
|
||||
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
|
||||
</ui-application>
|
||||
<shortcut-list />
|
||||
<privileges>
|
||||
<privilege>http://tizen.org/privilege/internet</privilege>
|
||||
</privileges>
|
||||
<dependencies />
|
||||
<provides-appdefined-privileges />
|
||||
</manifest>
|