Assalamu’alaikum
..
Selamat
datang di pertemuan ke 11 ..
Welcome
to Image Control ..
Berikut codingnya :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Windows.Media.Imaging;
namespace ImageControl1
{
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
}
private void
image1_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZAquarius.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Aquarius ";
}
private void
image2_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZAries.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Aries ";
}
private void
image3_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZCancer.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Cancer ";
}
private void
image4_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZCapricorn.JPG",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Capricorn ";
}
private void
image5_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZGemini.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Gemini ";
}
private void
image6_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZLeo.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Leo ";
}
private void
image7_Tap(object sender, GestureEventArgs e)
{
BitmapImage
newimage = new BitmapImage(new Uri("images/ZLibra.jpg", UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Libra ";
}
private void
image8_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZPisces.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Pisces ";
}
private void
image9_Tap(object sender, GestureEventArgs e)
{
BitmapImage newimage = new
BitmapImage(new
Uri("images/ZSagitarius.jpg",
UriKind.Relative));
myimage.Source = newimage;
myTB.Text = " Sagitarius ";
}
}
}
Cukup
sekian laporan postingan pertemuan 11 ini ..
Semoga
postingan ini bermanfaat dan semoga berhasil~
Terima
kasih~
Wassalamu’alaikum
wr.wb
0 komentar:
Posting Komentar