(.NET MAUI) 설정 사용 – 속성 저장
Xamarin에서는 속성을 저장할 때 아래와 같이 Application.Current.Properties를 사용하여 처리하였다. 응용 프로그램.현재.속성.추가Application.Current.Properties.TryGetValue애플리케이션.현재.속성.제거 그러나 MAUI에서는 빨간색 선으로 (더 이상 사용되지 않음) 이동합니다. MAUI에서 속성을 저장할 때 설정을 사용합니다. 사용법은 쉽습니다. Preferences.Set({Key}, “1”); Preferences.Get({Key}, “default”); Preferences.Remove({Key}); Preferences.ContainsKey({Key})