自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

在Windows Azure中托管和調(diào)試Silverlight應(yīng)用程序(下)

原創(chuàng)
云計算
本文用插圖的形式展示了如何在Windows Azure的local development fabric中托管和調(diào)試一個Silverlight應(yīng)用程序。

本文接《在Windows Azure中托管和調(diào)試Silverlight應(yīng)用程序(上)》 

步驟4

在XAML中添加一些代碼。我在Silverlight頁面上添加了一個按鈕和這個按鈕的“Click”事件,在調(diào)試模式中,我會在一個消息框中顯示一個消息:

MainPage.Xaml

<UserControl x:Class="SilverlightApplication1.MainPage"

xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

xmlns:d=http://schemas.microsoft.com/expression/blend/2008

xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006

mc:Ignorable="d"

d:DesignHeight="300" d:DesignWidth="400">

<Grid x:Name="LayoutRoot" Background="White">

<Button x:Name="myButton" Height="200" Width="300" Background="Navy" Content="ClickMe" Click="myButton_Click" />

</Grid>

</UserControl>

MainPage.Xaml.cs

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;

namespace SilverlightApplication1

{

public partial class MainPage : UserControl

{
public MainPage()

{

InitializeComponent();

}

private void myButton_Click(object sender, RoutedEventArgs e)

{

MessageBox.Show("I am Debugging Silverlight in Azure ");

}

}

}

輸出:

 

 

步驟5

在Azure中調(diào)試Silverlight。

在C#代碼中插入一個斷點,然后你就可以調(diào)試這個被托管在Azure中的Silverlight應(yīng)用程序了:

 

 

在運行中:

 

 

所以,Silverlight應(yīng)用程序是在調(diào)試模式中。

總結(jié)

在本文中,我討論了如何在Windows Azure中托管和調(diào)試一個Silverlight應(yīng)用程序。感謝您的閱讀!

原文名:Hosting and Debugging Silverlight in Windows Azure 作者:Dhananjay Kumar

本文接《在Windows Azure中托管和調(diào)試Silverlight應(yīng)用程序(上)》 

【本文乃51CTO精選譯文,轉(zhuǎn)載請標(biāo)明出處!】

【編輯推薦】 

  1. 微軟公布云計算平臺Azure收費模式細(xì)節(jié)
  2. 云計算意在長遠(yuǎn),微軟云計算服務(wù)Windows Azure已經(jīng)啟用
  3. 技術(shù)透析:Windows Azure Platform框架與組成
  4. 微軟Windows Azure Platform技術(shù)解析
  5. 走近微軟云:SQL Server到Azure數(shù)據(jù)同步
  6. 當(dāng)微軟Azure遭遇亞馬遜EC2:五大關(guān)鍵區(qū)別
  7. Windows Azure云計算平臺新增五大功能
  8. 云計算前途光明 Azure用戶數(shù)突破31000
  9. 如何把應(yīng)用程序部署到Windows Azure中

 


 

責(zé)任編輯:王勇 來源: 來源:51CTO
相關(guān)推薦

2011-03-22 09:45:56

Windows AzuSilverlight

2010-11-25 10:05:22

Visual StudSilverlightWCF

2011-05-05 18:08:43

云計算Windows AzuPaaS

2009-04-16 10:15:34

Windows AzuSilverLight托管

2011-03-23 16:44:22

AzureASP.NET應(yīng)用程序

2011-03-10 10:20:37

應(yīng)用程序Windows Azu

2011-03-15 16:12:00

Windows AzuWCF

2010-06-08 09:40:46

jQueryWindows Azu

2015-02-02 15:46:59

Web應(yīng)用架構(gòu)大數(shù)據(jù)

2011-03-10 10:45:47

Azure“Hello Worl

2023-06-04 17:28:19

數(shù)字驅(qū)動開發(fā)Azure

2011-03-21 15:22:04

Azure應(yīng)用程序

2012-02-15 13:26:56

IndexedDB

2010-01-04 10:41:14

Silverlight

2011-03-15 16:07:33

Windows AzuWCF

2011-03-15 19:45:27

Windows Azu

2011-11-23 10:06:32

Azure微軟移動應(yīng)用

2010-03-02 13:06:22

SilverLight

2022-12-25 18:03:13

Debug原理軟件

2009-08-28 16:43:08

AutoCAD托管C#
點贊
收藏

51CTO技術(shù)棧公眾號