forked from syncfusion/maui-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6dcbe9
commit e1f467b
Showing
2,353 changed files
with
170,754 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<configuration> | ||
<packageRestore> | ||
<add key="enabled" value="True" /> | ||
<add key="automatic" value="True" /> | ||
</packageRestore> | ||
<packageSources> | ||
<!--<add key="Local Syncfusion MAUI Source Package 20.2.0.36" value="../../../nuget" />--> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
<activePackageSource> | ||
<!--<add key="Local Syncfusion MAUI Source Package 20.2.0.36" value="../../../nuget" />--> | ||
</activePackageSource> | ||
<bindingRedirects> | ||
<add key="skip" value="False" /> | ||
</bindingRedirects> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?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" | ||
x:Class="SampleBrowser.Maui.AvatarView.App"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<base:SampleBrowserStyles/> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/AvatarViewSamplesList.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<SyncfusionControls> | ||
<ControlCategory Name="Miscellaneous"> | ||
<Control Title="Avatar View" IsPreview="True" StatusTag="New" ControlName="SfAvatarView" Description="Display the user's initials or images on mobile and desktop layouts. Users can customize the background, text, etc." Image="avatarview.png"> | ||
<Sample Title="Getting Started" SampleName="AvatarViewGettingStarted" SearchTags="getting started, avatar, avatarview, image, initials" CodeViewerPath="AvatarView/AvatarViewGettingStarted/" /> | ||
<Sample Title="Group View" SampleName="GroupView" SearchTags="avatar, avatarview, groupview, group, view" CodeViewerPath="AvatarView/GroupView/" /> | ||
<Sample Title="Visual Style" SampleName="VisualStyleSample" SearchTags="avatar, avatar view, visual style" CodeViewerPath="AvatarView/VisualStyleSample/" /> | ||
</Control> | ||
</ControlCategory> | ||
</SyncfusionControls> |
14 changes: 14 additions & 0 deletions
14
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/ControlConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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 | ||
{ | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/ControlList.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?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> |
30 changes: 30 additions & 0 deletions
30
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/MauiProgram.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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(); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Android/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?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> |
17 changes: 17 additions & 0 deletions
17
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Android/MainActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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 | ||
{ | ||
} |
22 changes: 22 additions & 0 deletions
22
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Android/MainApplication.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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(); | ||
} |
6 changes: 6 additions & 0 deletions
6
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Android/Resources/values/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#512BD4</color> | ||
<color name="colorPrimaryDark">#2B0B98</color> | ||
<color name="colorAccent">#2B0B98</color> | ||
</resources> |
16 changes: 16 additions & 0 deletions
16
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/MacCatalyst/AppDelegate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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(); | ||
} |
30 changes: 30 additions & 0 deletions
30
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/MacCatalyst/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?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> |
22 changes: 22 additions & 0 deletions
22
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/MacCatalyst/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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)); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Tizen/Main.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. Any infringement will be prosecuted under | ||
// applicable laws. | ||
#endregion | ||
using System; | ||
using Microsoft.Maui; | ||
using Microsoft.Maui.Hosting; | ||
|
||
namespace SampleBrowser.Maui.AvatarView; | ||
|
||
class Program : MauiApplication | ||
{ | ||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
|
||
static void Main(string[] args) | ||
{ | ||
var app = new Program(); | ||
app.Run(args); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Tizen/tizen-manifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest package="com.companyname.SampleBrowser.Maui.AvatarView" version="1.0.0" api-version="7" xmlns="http://tizen.org/ns/packages"> | ||
<profile name="common" /> | ||
<ui-application appid="com.companyname.SampleBrowser.Maui.AvatarView" exec="SampleBrowser.Maui.AvatarView.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single"> | ||
<label>SampleBrowser.Maui.AvatarView</label> | ||
<icon>appicon.xhigh.png</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> |
8 changes: 8 additions & 0 deletions
8
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Windows/App.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<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> |
51 changes: 51 additions & 0 deletions
51
MAUI/AvatarView/SampleBrowser.Maui.AvatarView/Platforms/Windows/App.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#region Copyright Syncfusion Inc. 2001-2022. | ||
// Copyright Syncfusion Inc. 2001-2022. 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 | ||
// [email protected]. 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); | ||
foreach (var item in 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"; | ||
} | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.