Posts

Showing posts from January, 2018

XAML ListView Control for Universal Windows Apps

Image
I have posted a number of articles related to ListBlock , ListView etc that you can use in HTML 5, web applications using Intel's XDK. Intel XDK's development platform for several frameworks were discontinued and Intel's effort is in the realm of Internet of Things devices and related applications. Microsoft's Universal Windows Framework apps are well supported by Microsoft and you could use it for not only Windows but for other devices as well. In the Universal Windows Platform (UWP) projects there is an advantage of one code that works on different device families (phone, tablet, desktop etc.). However, the UWP projects depend on using XAML. For example the 'List' related controls in UWP are as shown here: In this post, I will show you how you may work with this controls for a UWP project. Getting the ListView Control Placing ListView on the Design area Adding Textbox Controls to ListView Making changes to XAML Code We start with a W

Storing an array locally using browser's Local Storage

Image
My previous post showed how to store a single piece of information in Local Storage (Browser Storage). However instead of a single piece of data you want to store an array of items. Let us say your array has three elements, rose, jasmine and hyacinth and you want to store in an array named 'flowers'. The following page shows how you may store array and retrieve array elements using JavaScript. Each statement is commented (view image magnified, if necessary). ArrayStoreLocalStorage.png Place this page in IIS's wwwroot folder and browse. You can see the elements in the array in LocalStorage . ArrayStoreLocalStorage1.png You can see more clearly here in the Microsoft Edge's developer window. Data stored from the previous post is also seen. ArrayStoreLocalStorage2.png

Storing data locally using Local Storage

Image
Local Storage is supported if you use HTML. First of all you should make sure that your browser supports Local Storage. Data is stored as NAME,VALUE pairs in local storage. You can review this post  Local Storage is an alternative to storing data in Cookies. The data is stored in the browser and more data can be stored in Local Storage than cookies. Local Storage is supported if you use HTML. First of all you should make sure that your browser supports Local Storage. Data is stored as NAME,VALUE pairs in local storage. You can review this post http://hodentekhelp.blogspot.com/2017/08/does-your-browser-support-localstorage.html Let us say you want to store the string "Hi, Good Morning". You need to create a NAME VALUE pair, your VALUE being "Hi, Good morning" and the NAME can be anything. In the present example the NAME is "Greetings". NAME="Greetings" VALUE="Hi, Good Morning" All you need to do is create a web page (j

Emulators for Windows 10

Image
If you do not have a Windows 10 device (say, Windows 10 Mobile) you can use a Windows 10 Emulator instead. There are various versions for Windows 10 as well as for even earlier Windows versions. Here are the ones for Windows 10: 10.1.15254.1 10.1.15063.137 10.1.14393.0 10.1.10586.11 10.0.26624.0 You may download them from this site here .

Deploying a Universal Windows Project to Lumia 950

Image
We will be using the Lumia 950 as the connected device and it has been set to Developer Mode as described earlier. We start with the HelloWorld Universal Windows Project(UWP) that has been tested to run without errors on the Local Machine as described here. Open the project in Visual Studio 2017 as shown. LumiaDeploy_0 and LumiaDeploy_7 Build (Using Menu Build and its context menu) the Project and verify it is successful. -------- 1>------ Build started: Project: HelloWorld, Configuration: Debug x86 ------ 1>  HelloWorld -> C:\Users\Owner\source\repos\HelloWorld\HelloWorld\bin\x86\Debug\HelloWorld.exe ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ===== ------------------ Click Local Machine along Debug as shown. LumiaDeploy_1 Pick Device from the list, the display changes as shown. LumiaDeploy_2 Connect your Windows 10 Mobile(Lumia 950) to one of the USB ports. This will result in an

Deploying to Windows 10 Mobile: Phone Settings

Image
I deploy my UWP apps to Microsoft Lumia 950. One of the first things you need to do is to set it for Developers. There are three options and you should choose Developer mode as shown here: Lumia950_0 You should turm on option to make your phone visible to USB connections to your local network as shown here: Lumia950_1 Also turn on remote diagnostics over USB and authentication as shown above. Lumia950_2 Now you can connect the Windows 10 Mobile(=Lumia 950) to one of the USB connections on your laptop/computer where you are running Visual Studio 2017 used for creating Universal Windows Projects. You set up your project deploying it to the device. Here are my phone details: Microsoft Lumia 950 Version 1709 Windows 10 Mobile OS Build:10.0.15254.124 Screen Res: 1440x2560 Here is HelloWorld deployed to Lumia950 Lumia950_3

Click Event to change Background color of a Button using VS 2017

Image
Sometimes you need to change the background color from its default to a different color. Let us say, we have a button whose Background color needs changing by an event such as the CLICK event. How is it done? Well, I could give you a line of code to do that. Perhaps it will work and all that there is to it. However, if you are beginner and wondering how the hell it is coded with so much of background code, namespaces; classes, methods, events etc. This post tries to show how you may find yourselves how to do it. If you are looking for the one line of code, please go to the end and you will find it there. If you are beginning to code and new to Microsoft; new to Visual Studio in particular, follow on. As mentioned in my previous post Universal Windows Project use XAML for the UI and the pages. Some of the things you should remember is that you should use intellisense as much as possible. You should also use code hints you get when your code is not doing what you ex