Home

Getting Random Images in Windows Phone

List<string> pics = new List<string>()
{
"Assets/img1.png",
"Assets/img2.png",
"Assets/img3.png",
"Assets/zwp1.png",
"Assets/zwp2.png",
"Assets/zwp3.png",
"Assets/zwp4.png",
"Assets/zwp5.png"
};
Random rnd=new Random();
ImageBrush brush1 = new ImageBrush();
brush1.ImageSource = new BitmapImage(new Uri(pics[rnd.Next(0,7)],
UriKind.Relative));
img1.Source = brush1.ImageSource;

WCF in Windows Phone & Windows Store Apps(Turkish)

Horizontal ScrollViewer

If you want to control a scrollviewer from left-to-right instead top-to-bottom,you can use this trick.

Set ScrollViewer HorizontalScrollBarVisibility property as:

HorizontalScrollBarVisibility="Visible"

 


By default,its set to "Disabled".


This will help you to navigate from left-to-right and opposite right-to-left


If you have a Grid bigger than ScrollViewer,then you'll be applying a Panorama-like effect

 Laughing

 

Hope this trick helps!

Mobile UI Skins for Windows Phone 7 - Beta

I've been digging into this Windows Phone Development so bad lately.I was curious about implementing themes and changing their styles.

So i have a little search over the internet about skinning and found quite useful projects built with Flash Builder aka Flex.

So since css isnt supported i've tried to implement the skin images from a variety of themes in  http://scalenine.com/

Here how the process going on right now


 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I'll work on improving these skins,but hey if you want to try it -even its not yet ready- i'll share the source codes alongside assets with you

Download the MobileUIsBeta 

My WP7 Applications Published!

Here are the links to the apps

aloBackground.pnghdBackground .pngifBackground.pngitBackground.pngmdBackground.png

















ALO

Using this application if you're in Turkey right now or having a holiday here,you can call emergency calls specific to only in Turkey.The numbers are grouped according to the most emergency,and thats why its a very useful application.Currently its Turkish but for an international version,i've started working 


aloss1.png 




















Hypno Device

Well,this application helps you hypnotize yourself looking at the animation for a very long time.You just select the hypnotism images and let it animate it for you! I developed it for fun :) 



hdss1.pnghdss4.png 

 

 

 

 

 

 

 

 

 

 

iFantasy7

Now this application generates names for you.its quite useful for those people who write fantastic books and game companies looking for fantastic names for their characters.You can generate names for a group of fantastic creatures such as Vampires,Werewolves,Mermaids and Witches.

ifss1.pngifss7.png  

 

 

 

 

 

 

 

 

 

 

 

iTask7

I've developed this application for non-developers(end-users) to experience Tasks and Choosers in WP7 SDK.As developers know these features very well but to let the users understand what kind of tasks&choosers are there for wp7,i built this application by making it simple to use for users.


ittaskss1.pngittaskss2.png

 

 

 

 

 

 

 

 

 

 

 

 

Military Days

This application is built for soldiers who like to know when their service will end.Well,you wonder it! i developed an excel version of it in the army.after finishing the service i decided to build its Windows Phone 7 Application version.And here is the result.You just add numbers and let it calculate for you!

 

mdarmss.png

 

 

 

 

 

 

 

 

 

 

 

Thats it!

What do you think about my applications? 
Any negative-positive comments are most welcome.
Let me know about your reviews and experiences :)

Have a nice day! 

 


150 Theme Aware Icons WP7

Here is my latest work on WP7.
Started a couple of hours ago and just finished designing.

Note: Used  AAA Logo Creator's Symbols for that


You can use it for General Purpose Design as well as ApplicationBarIcons.
Here is the Download Link:  Download the IconSet


And here is a sheet showing you the IconSet.


 



Its fully supported for Light and Dark theme. 

Here are the common properties for each icon in the set:

Canvas Size : 48 X 48 
Image Size  : 36 X 36 
Location X    : 6 
Location Y    : 6

 

I've also tested it myself before releasing:

 


Dark Theme

 





Light Theme

 



Hope it helps,

Have a nice day!

Cheat on Light&Dark Themes in WP7

Whether the user uses Dark theme or a Light Theme:


There are many methods to apply awareness in themes.Since most of them are XAML-based,i'll give you an alternative way.

You can also apply image based awareness in themes if its light or dark,doesnt matter.

 

The cheat is you need to have a Transparent Background with White colored image inside.

You're unable to view it but it works on your apps:


Look at the example below:


Sample Home and Question images here:
 
 




 



Light  Theme:




Dark  Theme:



Hope its useful!

Changing ApplicationBar Icons for Theme Awareness

Its quite a punch in the face for WP7 developers,but i'll give you a hand here.

If you have light and dark sets of your icon,you can make it work by writing these codes on your Loaded event of PhoneApplication Page:

 

 

private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            var visibility = (Visibility)Application.Current.Resources["PhoneLightThemeVisibility"];
            if (visibility == Visibility.Visible)
            {
                
                var button = (IApplicationBarIconButton)ApplicationBar.Buttons[1];
                button.IconUri=new Uri("H_light.png",UriKind.Relative);
            }

            else
            {
                var button = (IApplicationBarIconButton)ApplicationBar.Buttons[1];
                button.IconUri = new Uri("H_dark.png", UriKind.Relative);
            }
        }

 



So after building and running the project,it'll be working like a charm.

Hope it helps! 

Releasing Pages from App Stack in WP7

Its quite easy with one-line of code

 

Use this code inside OnNavigatedTo event wherever you want:


NavigationService.RemoveBackEntry();

 

 

Hope it helps!

WP 7.5 Developer tools for Visual Studio 2012

Dont try it on a real device guys,besides wait for an official support or use it on a Windows7+VS2010 environment :)

error.png



Türkiye'nin en doğru, dolu dolu ve hatasız anlatımları ile teknik yazılarına, makalelerine, video'larına, 
seminerlerine, forum sayfasına ve sektörün önde gelenlerine ulaşabileceğiniz teknik topluluğu, MSHOWTO