Question: I'm trying to port the following to a UWP app:

`var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string spotlightPath = System.IO.Path.Combine(localAppData, "Packages\\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\\LocalState\\Assets");`

It look like ApplicationData.LocalFolder is exactly what I need: "Gets the root folder in the local app data store."

(from <https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.aspx>) 

I can't work out how to access it though:
`var localAppData = ApplicationData.LocalFolder;`

Gives the following error: An object reference is required for the non-static field, method, or property 'ApplicationData.LocalFolder'

Answer: 
Try replacing

```
 x.readonly = "readonly";

```

with

```
 x.readOnly = true;

```

Notice that `O` of `readOnly` is caps now, and value is a boolean.

`getElementsByTagName` returns a NodeList rather than a Node. You need to iterate them 

```
function hide () 
{
    var x = document.getElementsByTagName("input");
    for ( var counter = 0; counter < x.length; counter++)
    {
       x.item(counter).readonly = "readonly";
    }
}

```
Get all input tags and set attribute..working...

```
function hide () {
    var x = document.getElementsByTagName("input");
    for ( var counter = 0; counter < x.length; counter++)
    {
       x[counter].setAttribute("readonly","true");
    }

}

```