Solution:
Open Your project in VS as Administrator mode
Click on Tools-->NuGet Package Manager-->Package Manager console
Run below command
Show-WindowsDeveloperLicenseRegistration
It will open Setting for Developers
Select Developer Mode
Click Yes in the prompt
Go back to VS Package Manager console
Run below command
Get-WindowsDeveloperLicense
It has to show IsValid True.
Now Reopen you XAML page, it should work