xxxDomainContext dc = new xxxDomainContext();
dc.Load(dc.xxxQuery());
myControl.ItemsSource = dc.EntityName;
參考文件: Project Turing: Beginning RIA Services
2010/07/01
2010/06/30
[Silverlight] 取得文件路徑/參數/檔案路徑
使用 HtmlPage 需匯入命名空間: System.Windows.Browser
取得網頁路徑: HtmlPage.Document.DocumentUri.ToString()
取得參數: HtmlPage.Document.QueryString["param"]
取得 Silverlight 應用程式路徑: Application.Current.Host.Source.AbsoluteUri.ToString()
取得網頁路徑: HtmlPage.Document.DocumentUri.ToString()
取得參數: HtmlPage.Document.QueryString["param"]
取得 Silverlight 應用程式路徑: Application.Current.Host.Source.AbsoluteUri.ToString()
2010/05/15
[Silverlight 4] 列印功能
1. 引入 namespace
System.Windows.Printing
2. 建立 PrintDocument
3. 建立對應 Event
Print("MyDocument")
System.Windows.Printing
2. 建立 PrintDocument
3. 建立對應 Event
- BeginPrint
- EndPrint
- PrintPage - e.PrintVisual (指定列印目標物件), 確認 e.HasMorePages (是否有多頁)
Print("MyDocument")
2008/10/22
[Silverlight] Silverlight Tools for VS2008 CHT Relased!
Silverlight Tools for VS2008 CHT is available now!!!
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=c22d6a7b-546f-4407-8ef6-d60c8ee221ed
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=c22d6a7b-546f-4407-8ef6-d60c8ee221ed
2008/10/15
[Silverlight] Silverlight 2.0 finally released!!!
Silverlight 2.0 finally released!!!
Start developing some cool silverlight : http://silverlight.net/GetStarted/
Start developing some cool silverlight : http://silverlight.net/GetStarted/
2008/09/12
PHP backend for Silverlight
Using .NET with Silverlight is great choice, and I can do so at work environment. However, I often working with PHP/MySQL at home. I wonder if I can do PHP with Silverlight doing INSERT/UPDATE/DELETE/RETRIEVE data.
Interesting in using PHP backend for Silverlight?
Check PHP backend for Silverlight
Some more links:
Writing Silverlight applications in PHP
Interesting in using PHP backend for Silverlight?
Check PHP backend for Silverlight
Some more links:
Writing Silverlight applications in PHP
2008/09/03
Use WCF in Silverlight 2
I don't know why I have to set BasicHttpBinding, and EndpointAddress parameters while calling WCF.
In silverlight tutorial always use below:
Dim client As New ServiceReference1.SimpleWCFClient ()
BUT, I have to declare like below syntax to make it work. It is not so dynamic coding, since I have to give the WCF file URL.
Dim client As New ServiceReference1.SimpleWCFClient ( _
New BasicHttpBinding, _
New EndpointAddress("http://localhost/SilverlightApp_Web/SimpleWCF.svc") _
)
In silverlight tutorial always use below:
Dim client As New ServiceReference1.SimpleWCFClient ()
BUT, I have to declare like below syntax to make it work. It is not so dynamic coding, since I have to give the WCF file URL.
Dim client As New ServiceReference1.SimpleWCFClient ( _
New BasicHttpBinding, _
New EndpointAddress("http://localhost/SilverlightApp_Web/SimpleWCF.svc") _
)
Event Handler in VB.NET/C#
I am using VB.NET at work, but currently most of the tutorials for learning Silverlight taught in C#. I am not that familiar with C#, although I understand other similar programming language such as Java. As a result, I need to write it down for looking up in the future.
Event Handler Syntax in VB/C#:
Bold: Event Name
Bold Itatlic: Event Function
VB Syntax:
AddHandler wcService.DownloadStringCompleted, AddressOf wcService_DownloadStoriesCompleted
C# Syntax:
wcService.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wcService_DownloadStoriesCompleted);
Event Handler Syntax in VB/C#:
Bold: Event Name
Bold Itatlic: Event Function
VB Syntax:
AddHandler wcService.DownloadStringCompleted, AddressOf wcService_DownloadStoriesCompleted
C# Syntax:
wcService.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wcService_DownloadStoriesCompleted);
訂閱:
文章 (Atom)