첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System.Net;

WebView webView = new WebView();

...

CookieContainer cookieContainer = new CookieContainer();

Uri uri = new Uri("https://docs.microsoft.com/dotnet/maui", UriKind.RelativeOrAbsolute);

Cookie cookie = new Cookie
{
    Domain  = uri.Host,
    Path    = "/",
    Name    = "DotNetMAUICookie",
    Value   = "My cookie",
    Expires = DateTime.Now.AddDays(1)
};

cookieContainer.Add(uri, cookie);

webView.Cookies = cookieContainer;
webView.Source  = new UrlWebViewSource { Url = uri.ToString() };
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요