[C#/MAUI/.NET6] Application 클래스 : On<T> 메소드를 사용해 소프트 키보드 입력 모드 설정하기 (프리뷰 버전 오류)
C#/MAUI 2022. 6. 9. 15:20728x90
반응형
728x170
▶ App.xaml
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application x:Class="TestProject.App"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" />
728x90
▶ App.xaml.cs
using Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;
namespace TestProject;
/// <summary>
/// 앱
/// </summary>
public partial class App : Microsoft.Maui.Controls.Application
{
//////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
////////////////////////////////////////////////////////////////////////////////////////// Public
#region 생성자 - App()
/// <summary>
/// 생성자
/// </summary>
public App()
{
InitializeComponent();
MainPage = new MainPage();
App.Current.On<Microsoft.Maui.Controls.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
}
#endregion
}
※ 프리뷰 버전 테스트시, 설정 사항이 표시되지 않았다.
728x90
반응형
그리드형(광고전용)
댓글을 달아 주세요