Search

Håvard Siegel Haukeberg

Paste life: Ctrl+C -> Ctrl+V

Tag

Coding without code

Changing Sample Data in Split Page App

—I do not know how to Write Code—

Then let me Present Fugleboka:

Split Page app for WIndows 8
Split Page app for Windows 8

Split Page app works well when you have Several Groups (Bird Categories) and Birds (Category-Items)
Check it out here: http://apps.microsoft.com/windows/nb-no/app/fugleboka/e1e04b69-4980-475f-a970-a8e770a080b0
CREDS to @digitaldias for helping out with the code which enables sound

—THIS MUST BE ONE OF THE EASIEST APP TO MAKE—

CREATE TEMPLATE
————————————

This is how you create Your Split Page app by just replacing code.

1. Run Visual Studio – New Project
image
2. Select C# (does not really matter, you will not write code anyhow)
image
3. Give your app a name
image
4. Click Ok

Now you have actually created all that is needed for the app in terms of code. If you press run, the app will start. Remember, never mess with app name or solution name. Give it one name and stick with it.

FIND MATERIALS
————————————
Following need to be replaced:
Group Pictures (Bird category) USE BING
Item Pictures (Birds) – USE BING
App Logo – USE BING AND PAINT
Information about the bird – USE BING
Capabilities and Language – JUST FOLLOW MY GUIDE

GROUP PICTURES
————————————
Navigate to the SampleDataSource.cs and find this code in your sample app, about line 262
image
Find this text and start to replace it:
image
Like this:
image
Run the project to see your results:
image
Include a picture in the asset folder by dragging and dropping a picture from a folder on your computer to the “Asset” folder in the Solution Explorer

Then refer to that picture in the code like this:
image (remember to check if its a .jpg or .png)

ITEM PICTURES
————————————
Go about the same way for individual items.
find this code:
image
Create your first bird, e.g. Vampirebat (always use one word, no spaces or special characters)
image
Notice here that I have changed ITEM_CONTENT to VAMPIREBAT this word now refers to a string a little further up. It is in this string that you write in depth information about the Vampire Bat. As is now, the code will not run. Find this string now:
image
Now, add the similar string VAMPIREBAT do not remove the ITEM_CONTENT since all the “empty templates” require this string.
image (Run code and click on bats)

Notice the repetition,
image
Further above in the VAMPIREBAT string you see a lot of \n
\n = breaks the line
\n\n = a new line and a space between
{0} = means the content of the first line

INFORMATION ABOUT BIRD
————————————
Find a website with info, e.g. Wikipedia.com, copy a paragraph and paste it here:
image
Find an other paragraph and adjust the string as in the picture, then run the code.

image (Notice that the “About vampire bat” text overlaps the sentence of fact 1.)
This can all be fixed with adding some extra \n like this:
image (Notice also how i have entered static information into the string)
RUN CODE:
image
NOW, see the pattern? Start Coding and replace all the categories and content.

FUGLEBOKA:

APP LOGO
————————————
Find a Picture for your app, preferably a white background With a logo in the center and best to use a square picture.
If you want to change the app logo when you start the app go to Assets in Solution Explorer and find the files there. Notice you want to change the colors and content off all these files by opening in Paint and copy pasting from Bing. WARNING: DO NOT CHANGE SIZE, keep the file size to the same e.g. 30×30 or 50×50. If you mess that up, the app wont run.
image (notice that submission in the store require you to change all but LightGray & DarkGray)

CAPABILITIES AND LANGUAGE
————————————
Before you can submit your app, there are two things to make sure you have entered correctly.

Find this in your solution explorer:
image
Under language make sure it reflect language you write information in or your app will not pass certification

image (No-nb for Norwegian apps)

Select Capabilities and UNCHECK everything or your app will not pass certification
image

SUBMIT IT!

2 other apps created this way:
SOPPBOKA: http://apps.microsoft.com/windows/nb-NO/app/11298cb2-508f-4315-85bf-97c6ea809666
FISKEBOKA: http://apps.microsoft.com/windows/nb-no/app/fiskeboka/b9eb2441-ee6d-4c62-bcc1-0e16075f4767

Coding Without Code for Windows Phone 7 – HubTiles (Live Tiles)

Example of an app made with LiveTiles

Want to make fancy LiveTiles aka HubTiles?

Its really easy, and best of all. No code needed!

First:
You will need the Windows Phone Toolkit. Its here:
http://silverlight.codeplex.com/ and select one of the Download options:

  • Silverlight for Windows Phone Toolkit – Aug 2011.msi

Second:
Install the package

Third:
Connect Expression Blend to the Toolkit!
This is how you do it:

Add a reference to your project by right clicking on references.
then browse here to find the reference you need to add.

path of the windows phone toolkit

Forth:
Add a reference in the MainPage.xaml
Select “code view” – dont be afraid, we are just going to copy paste.
Add this line of code to the start:
xmlns:toolkit=”clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit”

The reference you need to add in MainPage.xaml

Fifth:
Now just start adding HubTiles.
You find the HubTiles here

this is where you find the HubTile control
Just double click on a HubTile to add it to a list on e.g. a panoramic app

Sixth and finally:
Now, to add content to the HubTile you have to use the “code view” dont be afraid, its just to add text! look at my sample below. You find the code in the MainPage.xaml

A screen snip of all the code in one set of LiveTiles with and without content.

Want to read more about this cool feature?
http://www.windowsphonegeek.com/articles/Windows-Phone-HubTile-in-depth-Part1-key-concepts-and-API

Coding Without Code for Windows Phone 7

Learn to Love Blend
i ❤ Blend

Windows Phone 7
Create something!

The art of making a  Windows Phone App with little or no coding at all.

Welcome to this tutorial for those of you that just want to create something fast and easy.
If you have used PowerPoint or shapes/figures in Word, then you are set for this tutorial

Step 1 – Get the tools and Register

Windows Phone SDK, Expression Blend og Visual Studio.
www.create.msdn.com

You have to create an account for Marketplace in order to release your app. The price in Norway is 819NOK.
This process takes some time and require a credit card. Once completed the account validation takes some time aswell.
Start this before you code so there is no snag when you want to release your app

Please note. You must have Expression Blend, without Blend it will be very hard to code without code.
Read more about Expression Blend here:
http://www.microsoft.com/expression/products/blend_overview.aspx

Blog at WordPress.com.

Up ↑

%d bloggers like this: