使用隔離儲存區 (Isolated Storage)的IsolatedStorageSettings對象進行頁面間傳值

    在asp.net開發中頁面間的傳值方法有很多種,如Session、Cookie等技術,但是在Silverlight中,我們可以通過IsolatedStorageSettings這個隔離儲存區 (Isolated Storage)對象來實現。     (1)、首先需要在每個需要使用傳遞過來的值的頁面中添加命名空間:using System.IO.IsolatedStorage;     (2)、如在Login.xaml頁面中,首先建立一個IsolatedStorage對象,如下:     

Silverlight常用小知識總結(不斷更新中)

(一)、全螢幕顯示     1、首先添加引用 using System.Windows.Interop;     2、一句話解決 Application.Current.Host.Content.IsFullScreen = ! Application.Current.Host.Content.IsFullScreen ; (二)、一個用於頁面跳轉的小方法        public void RedirectTo()        {            // 此變數用來儲存所要跳轉載入的

Silverlight中DataGrid控制項動態產生列並結合DataPager進行分頁

1、準備一個實體類using System;using System.Collections.Generic;using System.Linq;using System.Web;/// <summary>///電流資料 的摘要說明/// </summary>public class DL{ public int ID { get; set; } public int 泵站ID { get; set; } public string 機組編號 {

Silverlight之Combox用法

Silverlight中的Combox控制項功能類似.NET中的DropDownList控制項,但是用法上又是於DropDownList有點區別.譬如,我們要做一個年份的下拉框,資料來源我們通過一個類來執行個體化實現。1、建立一個類using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using

利用Blend製作一個簡單的使用者控制項外觀

     在Silverlight應用開發中,可以自訂各種類型的使用者控制項,只要是你能夠想到的,就可以用Blend來繪製出來,這裡介紹一個最簡單的案例,主要是提示框的外觀製作。 1、開啟Blend4,建立一個項目,如: 2、從工具箱中拖放一個Rectangle控制項到工作區中,如 3、修改Rectangle的邊框顏色,以及RadiusX和RadiusY以及StrokeThickness屬性值 4、右鍵該Rectangle,選擇Path->Convert to

aspx頁面上傳遞參數給Silverlight外掛程式的方法

在做Silverlight和asp.net

Silverlight中的一些Convert整理

一、0,1轉換成true,false用於綁定類似CheckBox中的IsChecked屬性:public class BoolConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string s = (string)value;

Silverlight中上標和下標等特殊腳註字元實現

在silverlight中應用角標就不像HTML那樣簡單了。silverlight主要用的是逸出字元。1.string water = "H" + "/x2082" + "O"; string ammonia = "NH/x2083"; string energy = "e=mc/x00B2"; string PythagoreanTheorem = "a/x00B2+b/x00B2=c/x00B2";2.上腳註標記0 : U+20701 : U+00B92 : U+00B23 : U+00B3

登陸頁面樣式布局

@charset "utf-8";/* CSS Document */body{width:100%; margin:0 auto;}#login_bg{margin:0 auto;}#login_main{width:100%; position:absolute; left:0px; top:100px; height:436px; background:url(../image/01.gif) center

Silverlight中Divelements.SilverlightTools之路徑是否存在判斷

Divelements.SilverlightTools是一個應用在Silverlight中類似於asp.net中的iframe的第三方控制項,在和資料庫中路徑動態綁定時,需要判斷從資料庫中取出的路徑檔案實際上是否存在,這裡判斷需要用到IsolatedStorageFile類,使用該類,需要引用using System.IO.IsolatedStorage;命名空間。作業碼簡單如下: IList<Video> videos = e.Result;

項目採購和合約管理

系統整合專案管理工程師考試之項目採購和合約管理部分知識點:項目採購和合約管理1、  採購計劃編製輸入 : 1)、項目章程            2)、專案範圍說明書            3)、專案管理計劃            4)、WBS和WBS字典            5)、環境和組織因素           6)、組織流程資產           7)、風險記錄工具和技術:1)、自製和外購分析                       2)、專家判斷                 

一些解決方案收藏(不斷搜集補充中)

1、在Silverlight中對多個非同步任務的調用http://www.cnblogs.com/chenxizhang/archive/2011/08/30/2159124.html#21888342、silverlight 中 ComboBox+TreeView

IE9 下實現Web系統捷徑到系統開始菜單中

        最近發現使用IE9下登入CSDN部落格的時候頁面頂部提示一個捷徑添加,研究了一下,發現使用到了一個js,然後下載下來,使用了一下,成功了,現在和大家分享一下。        首先看幾張圖:                                                                圖一  系統登入首頁提示添加到開始菜單 點擊“添加”按鈕以後,                                                     

SuperMap iClient for Silverlight開發筆記(不斷補充中)

1、當滑鼠在地圖上移動時,顯示滑鼠經過地點的經緯度座標? MyMap.MouseMove += new System.Windows.Input.MouseEventHandler(MyMap_MouseMove);void MyMap_MouseMove(object sender, System.Windows.Input.MouseEventArgs e){            this.cor.Text = MyMap.ScreenToMap(e.GetPosition(MyMap))

Telerik控制項之TabScript使用簡介

...<%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %>... <radTS:RadTabStrip ID="RadTabStrip1" runat="server" Orientation="HorizontalBottomToTop" Skin="Mac" SelectedIndex="0"

Silerlight中利用TextBlock滾動顯示

SL中利用StoryBoard實作類別似html中的Marquee滾動效果,以下是核心代碼: <Canvas x:Name="c1" Margin="2,25,2,2"> <Canvas.Triggers> <EventTrigger RoutedEvent="Canvas.Loaded" > <BeginStoryboard> <Storyboard

Silverlight顯示日期和時間

MainPage.xaml檔案代碼: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SLTimer.MainPage" Width="640" Height="480"> <Grid x:Name="LayoutRoot"

百度之星之I:地圖的省錢計劃

I:地圖的省錢計劃時間限制: 1000ms 記憶體限制: 65536kB 描述

線上使用者列表統計

線上人員統計,Global.asax:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.SessionState;using System.Xml.Linq; namespace CountPerson{

LINQ – DISTINCT 單列和多列兩種情況下的實現

單列: MyDataContext db = new MyDataContext();var result = (from p in db.t_Personnel select p.FirstName).Distinct();DataTable dt = new DataTable("SingleDistinct");dt.Columns.Add("FirstName");foreach (var item in result){ DataRow dr =

總頁數: 61357 1 .... 18918 18919 18920 18921 18922 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.