Time of Update: 2018-12-03
在asp.net開發中頁面間的傳值方法有很多種,如Session、Cookie等技術,但是在Silverlight中,我們可以通過IsolatedStorageSettings這個隔離儲存區 (Isolated Storage)對象來實現。 (1)、首先需要在每個需要使用傳遞過來的值的頁面中添加命名空間:using System.IO.IsolatedStorage; (2)、如在Login.xaml頁面中,首先建立一個IsolatedStorage對象,如下:
Time of Update: 2018-12-03
(一)、全螢幕顯示 1、首先添加引用 using System.Windows.Interop; 2、一句話解決 Application.Current.Host.Content.IsFullScreen = ! Application.Current.Host.Content.IsFullScreen ; (二)、一個用於頁面跳轉的小方法 public void RedirectTo() { // 此變數用來儲存所要跳轉載入的
Time of Update: 2018-12-03
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 機組編號 {
Time of Update: 2018-12-03
Silverlight中的Combox控制項功能類似.NET中的DropDownList控制項,但是用法上又是於DropDownList有點區別.譬如,我們要做一個年份的下拉框,資料來源我們通過一個類來執行個體化實現。1、建立一個類using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using
Time of Update: 2018-12-03
在Silverlight應用開發中,可以自訂各種類型的使用者控制項,只要是你能夠想到的,就可以用Blend來繪製出來,這裡介紹一個最簡單的案例,主要是提示框的外觀製作。 1、開啟Blend4,建立一個項目,如: 2、從工具箱中拖放一個Rectangle控制項到工作區中,如 3、修改Rectangle的邊框顏色,以及RadiusX和RadiusY以及StrokeThickness屬性值 4、右鍵該Rectangle,選擇Path->Convert to
Time of Update: 2018-12-03
在做Silverlight和asp.net
Time of Update: 2018-12-03
一、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;
Time of Update: 2018-12-03
在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
Time of Update: 2018-12-03
@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
Time of Update: 2018-12-03
Divelements.SilverlightTools是一個應用在Silverlight中類似於asp.net中的iframe的第三方控制項,在和資料庫中路徑動態綁定時,需要判斷從資料庫中取出的路徑檔案實際上是否存在,這裡判斷需要用到IsolatedStorageFile類,使用該類,需要引用using System.IO.IsolatedStorage;命名空間。作業碼簡單如下: IList<Video> videos = e.Result;
Time of Update: 2018-12-03
系統整合專案管理工程師考試之項目採購和合約管理部分知識點:項目採購和合約管理1、 採購計劃編製輸入 : 1)、項目章程 2)、專案範圍說明書 3)、專案管理計劃 4)、WBS和WBS字典 5)、環境和組織因素 6)、組織流程資產 7)、風險記錄工具和技術:1)、自製和外購分析 2)、專家判斷
Time of Update: 2018-12-03
1、在Silverlight中對多個非同步任務的調用http://www.cnblogs.com/chenxizhang/archive/2011/08/30/2159124.html#21888342、silverlight 中 ComboBox+TreeView
Time of Update: 2018-12-03
最近發現使用IE9下登入CSDN部落格的時候頁面頂部提示一個捷徑添加,研究了一下,發現使用到了一個js,然後下載下來,使用了一下,成功了,現在和大家分享一下。 首先看幾張圖: 圖一 系統登入首頁提示添加到開始菜單 點擊“添加”按鈕以後,
Time of Update: 2018-12-03
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))
Time of Update: 2018-12-03
...<%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %>... <radTS:RadTabStrip ID="RadTabStrip1" runat="server" Orientation="HorizontalBottomToTop" Skin="Mac" SelectedIndex="0"
Time of Update: 2018-12-03
SL中利用StoryBoard實作類別似html中的Marquee滾動效果,以下是核心代碼: <Canvas x:Name="c1" Margin="2,25,2,2"> <Canvas.Triggers> <EventTrigger RoutedEvent="Canvas.Loaded" > <BeginStoryboard> <Storyboard
Time of Update: 2018-12-03
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"
Time of Update: 2018-12-03
I:地圖的省錢計劃時間限制: 1000ms 記憶體限制: 65536kB 描述
Time of Update: 2018-12-03
線上人員統計,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{
Time of Update: 2018-12-03
單列: 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 =