<UserControl x:Class="VirtualEarthSilverlight.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentat ion"

Slides:



Advertisements
Similar presentations
Operator overloading redefine the operations of operators
Advertisements

2 D and 3 D Graphics and Animations Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
Chapter 8. Operator Overloading Operator overloading gives the opportunity to redefine C++ Operator overloading refers to redefine C++ operators such.
Esempio Polimorfismo1 // Definition of abstract base class Shape #ifndef SHAPE_H #define SHAPE_H class Shape { public: virtual double area() const { return.
Integrating Silverlight with ASP.NET AJAX and Web Services Dan Wahlin Interface Technical Training
CS 4800 By Brandon Andrews.  Specifications  Goals  Applications  Design Steps  Testing.
Pointers Example Use int main() { int *x; int y; int z; y = 10; x = &y; y = 11; *x = 12; z = 15; x = &z; *x = 5; z = 8; printf(“%d %d %d\n”, *x, y, z);
BESUG Keynote  Gill Cleeren Microsoft Regional Director Benelux MVP ASP.NET Software architect Ordina  Blog:  Mail:
Gill Cleeren Microsoft Regional Director Microsoft MVP ASP.NET Ordina Belgium -
1 Review: Two Programming Paradigms Structural (Procedural) Object-Oriented PROGRAM PROGRAM FUNCTION OBJECT Operations Data OBJECT Operations Data OBJECT.
Introduction to Object- Oriented Programming Prof. Shie-Jue Lee Dept. of Electrical Engineering National Sun Yat-sen University.
EEC-492/592 Kinect Application Development Lecture 10 Wenbing Zhao
Chapter 15 – Inheritance, Virtual Functions, and Polymorphism
C++ Programming: From Problem Analysis to Program Design, Fourth Edition Chapter 14: Pointers, Classes, Virtual Functions, and Abstract Classes.
Smart Reference Proxy Provides additional actions whenever an object is referenced (e.g., counting the number of references to the object) Firewall Proxy.
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
Agenda Windows Phone History WP 7.0 Silverlight WP 7.5 Silverlight WP 8.0 Silverlight WP 8.1 Silverlight WP 8.1 WinRT.
V 1.0 Programming III. Automatic notifications (…Changed, INofityPropertyChanged, ObservableCollection ) Data formatters Data conversions Resources.
Uwe Habermann Venelina Jordanova Usage of VFP code in the back- end of Silverswitch applications.
Lecture # 8 Constructors Overloading. Topics We will discuss the following main topics: – Static Class Members – Overloaded Methods – Overloaded Constructors.
In the name of Allah The Proxy Pattern Elham moazzen.
private void Goto2(object sender, Windows.UI.Xaml.RoutedEventArgs e) { var app = App.Current as Common.BootStrapper; var nav = app.NavigationService;
Meridium EPiServer Premium Partner EPiMore Partner EPiServer is a major focus area Founded in employees 2.
Course Schedule Report Web Service Carolyn Cracraft Lisa de Larios-Heiman.
1 Introduction to Web Application Introduction to Web Services.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Arrays with meaningful indices.
More exercises with C# Fateme Rajabi #W6. Add an image to your project Right click on your project name in solution explorer Add -> Existing item -> browse.
Module 14 Application Settings, State, and Life Cycle.
12/5/2015 EEC492/693/793 - iPhone Application Development 1 EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 4 Wenbing Zhao
3 4 private void saveButton_Click(object sender, RoutedEventArgs e) { saveText("jot.txt", jotTextBox.Text); }
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
Chain of Responsibility A graphical user interface and a user that needs help; a security system with multiple sensors; a banking automated coin storage.
Shawn Wildermuth President, AgiliTrain Microsoft MVP (Data) Knowing the Enemy.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
Java Producer-Consumer Monitor From: Concurrent Programming: The Java Programming Language By Steven J. Hartley Oxford University Press, 1998.
3 private void equalsButton_Click( object sender, RoutedEventArgs e) { calculateResult(); }
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.
A: A: double “4” A: “34” 4.
Windows Programming C# Software Development. Overview  DLLs / PInvoke  DirectX .NET Component Library  Custom Controls  Event Model (in C++)  GUI.
CPSC 481 – Week #7 Sowmya Somanath
2/16/2016 EEC492/693/793 - iPhone Application Development 1 EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 4 Wenbing Zhao
 2002 Prentice Hall. All rights reserved. 1 Outline Mouse Event Handling Keyboard Event Handling Graphical User Interface Concepts:
Integral Users will interact with your app on a big screen with keyboard and mouse.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
3/3/2016 EEC492/693/793 - iPhone Application Development 1 EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 4 Wenbing Zhao
private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));
Zlatan Dzinic Principal Consultant Microsoft Most Valuable Professional - SharePoint Business Connexion.
Class Inheritance Inheritance as an is-a relationship Public derive one class from another Protected access Initializer lists in constructor Upcasting.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
REC [ ] How to implement CAMERA RECORDING for USB WEBCAM or IP CAMERA in C#.NET SOURCE CODE: ! Welcome to this presentation that explains.
Soyatec Contents Needs Architecture XAML fundamentals Data Binding Advanced features Style Q&A.
Andy Wigley Device Application Development MVP APPA Mundi Ltd SESSION CODE: WEM309.
Creating rich applications using Model View ViewModel David Ross
Intro To Classes Review
Review Operation Bingo
null, true, and false are also reserved.
Tips and tricks for developing Metro style apps using XAML
Object-Oriented Programming (OOP) Lecture No. 36
Graphics And Animation
Integrating Security Roles into Microsoft Silverlight Applications
Example passing the address of x x pint or
Delegates & Events 1.
Code Animation Examples
Default Arguments.
EEC-693/793 Applied Computer Vision with Depth Cameras
Web Service.
EEC-693/793 Applied Computer Vision with Depth Cameras
CIS 199 Final Review.
Proxy Pattern Definition of “Proxy”: Authority or power to act for another Original Gang of Four pattern, much used Stands in for a “real object” (similar.
Presentation transcript:

<UserControl x:Class="VirtualEarthSilverlight.Page" xmlns=" ion" xmlns:x=" xmlns:m="clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControl">

<UserControl x:Class="VirtualEarthSilverlight.Page“ xmlns=" tation" xmlns:x=" xmlns:m="clr- namespace:Microsoft.VirtualEarth.MapControl;assembly=Micro soft.VirtualEarth.MapControl">

LocationCollection points = GetPoints(pointsCount, centerX, centerY); MapPolygon shape = new MapPolygon(); shape.Locations = points; shape.StrokeThickness = thickness; shape.Stroke = new SolidColorBrush(color); shape.Fill = new SolidColorBrush(fillColor); MyLayer.Children.Add(shape);

double width = MyMap.ViewportSize.Width * 0.1; LocationCollection points = new LocationCollection(); for (int i = 0; i < count; i++) { double j = (double)i / (double)count; points.Add(MyMap.ViewportPointToLocation( new Point(centerX + Math.Cos(j * 2.0 * Math.PI) * width, centerY + Math.Sin(j * 2.0 * Math.PI) * width))); } return points;

private void ChangeMapView(object sender, RoutedEventArgs e) { myMap.View (MapViewSpecification)mapSpecConverter.ConvertFrom(((Butto n)sender).Tag); pushpin = CreateUIElement(); Location pinLocation = myMap.TargetView.Center; PositionMethod position = PositionMethod.Center; myMapLayer.AddChild(pushpin, pinLocation, position); }

//Image Brush ImageBrush imagebrush = new ImageBrush(); imagebrush.AlignmentX = AlignmentX.Center; imagebrush.AlignmentY = AlignmentY.Center; imagebrush.ImageSource = new BitmapImage(new Pendleton.jpg", UriKind.Relative)); imagebrush.Opacity = 1;

Ellipse ellipse = new Ellipse(); ellipse.Fill = new SolidColorBrush(Colors.Cyan); ellipse.Opacity =.9; ellipse.Stroke = new SolidColorBrush(Colors.Black); ellipse.Height = ; ellipse.Width = ; Border border = new Border(); border.BorderBrush = new SolidColorBrush(Colors.Black); border.BorderThickness = new Thickness(0); border.Child = ellipse; return border;

private int geocodesInProgress; private PlatformServices.GeocodeServiceClient geocodeClient; private PlatformServices.GeocodeServiceClient GeocodeClient{ get{ if (null == geocodeClient){ //Handle http/https bool httpsUriScheme = HtmlPage.Document.DocumentUri.Scheme.Equals(Uri.UriSchemeHttps); BasicHttpBinding binding = httpsUriScheme ? new BasicHttpBinding(BasicHttpSecurityMode.Transport) : new BasicHttpBinding(BasicHttpSecurityMode.None); UriBuilder serviceUri = new UriBuilder(" odeService.svc"); //Create the Service Client geocodeClient = new PlatformServices.GeocodeServiceClient(binding, new EndpointAddress(serviceUri.Uri)); geocodeClient.GeocodeCompleted += new EventHandler (client_GeocodeCom pleted); } return geocodeClient; }

private void GeocodeAddress(string address){ PlatformServices.GeocodeRequest request = new PlatformServices.GeocodeRequest(); request.Culture = MyMap.Culture; request.Query = address; request.ExecutionOptions = new PlatformServices.ExecutionOptions(); request.ExecutionOptions.SuppressFaults = true; request.Credentials = PlatformServicesHelper.GetCredentials(); request.Options = new PlatformServices.GeocodeOptions(); // Using ObservableCollection since this is the default for Silverlight proxy generation. request.Options.Filters = new ObservableCollection (); PlatformServices.ConfidenceFilter filter = new PlatformServices.ConfidenceFilter(); filter.MinimumConfidence = PlatformServices.Confidence.High; request.Options.Filters.Add(filter); Output.Text = " "; geocodesInProgress++; // Make asynchronous call to fetch the data... pass state object. GeocodeClient.GeocodeAsync(request, address); }

/* Demonstrate Microsoft Virtual Earth Silverlight Interactive SDK */ //demo