Frame Layout Documentation
Java Script Windows
Menu Upgrade Work In Pro
How The Java Script Tabs Picks Pages
User Help Navigation
User Help Cool Content
Development Notes Silverlight

Silverlight Manual: Content Page

Darren Webb Development Team Montego Data Limited
January 2010
Summary: This article ()

Requires

This file has source code litter the further down you go.
Hopefully remarked out but this file contains some raw programming syntax that can crash the browser.

Contents

Introduction
Setting Up Wrinkles
Contents Anchor b
Conclusion

Introduction

Age cannot wither her, nor custom stale Her infinite variety; other women cloy The appetites they feed, but she makes hungry Where most she satisfies;

Silverlight 5:Jeremy Likness Favourite Quatation

Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are poweful beyond imagination Albert Einstein

Setting Up Wrinkles

  
Please check if you have Visual Studio 2010 andMicrosoft Visual Studio 2010 Service Pack 1 installed.
After you have installed this, you can downloadSilverlight 5 Tools for Visual Studio 2010 SP1,
Siverlight 5 Toolkit,
Silverlight 5 Developer Runtime for Windows
Links For Kit And Development Education Building Solutions
silverlight pre-requisite downloads | silverlight toolkit sdk version 5 | Silverlight On youtube | Silverlight On youtube | another youtube | msdn:Navigation msdn:Entities
INotifyPropertyChanged INotifyCollectionChanged
Search.xaml xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
Now Just Go And Check The Project File [*.csproj] Find DataForm.Toolkit and compare to below.
This has caused many turn arounds
     <Reference Include="System.Windows.Controls.Data.DataForm.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Libs\System.Windows.Controls.Data.DataForm.Toolkit.dll</HintPath>
    </Reference>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I have SqlServer 2008R2 I do not have [.\SQLEXPRESS] and my whole [App_data][asp.mdf] is a mess out, yes I can attach in sqlServer and sql script etc .. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<connectionStrings> <add name="CyclingClassifiedsConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\CyclingClassifieds.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/> </connectionStrings>
private String connectionString =
"Integrated Security=SSPI;Persist Security Info=False; Initial Catalog=NFP;Data Source=ETSTRADING";
<Connection Mode="WebSettings" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\IssueTrackerData.mdf;Integrated Security=True;User Instance=True" SettingsObjectName="System.Configuration.ConfigurationManager.ConnectionStrings" SettingsPropertyName="IssueTrackerDataConnectionString" Provider="System.Data.SqlClient" />
<add name="IssueTrackerDataConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\IssueTrackerData.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The world of server push [find that c: html file launch for the google chat Calling Java Script Functions From Managed Code ]

silverlight pre-requisite downloads [...] | msdn:RIA AdventureWorks | JAVASCRIPT WALK THRU | java script walk thru

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Directory of C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11\Bin 09/12/2011 11:25 120,168 System.Windows.Controls.Data.DataForm.Toolkit.dll 19/09/2011 13:28 496 System.Windows.Controls.Data.DataForm.Toolkit.extmap.xml 09/12/2011 11:23 192,000 System.Windows.Controls.Data.DataForm.Toolkit.pdb 09/12/2011 11:23 139,084 System.Windows.Controls.Data.DataForm.Toolkit.xml 4 File(s) 451,748 bytes Directory of C:\ACT\Microsoft VS Samples\CSharpSamples\DataSamples\WCF Data Services\DataServicesWebApp\App_Data 19/03/2010 10:34 5,242,880 AdventureWorksLT.mdf 19/03/2010 10:34 516,096 AdventureWorksLT_log.ldf

Navigate to the appropriate folder containing the Analysis Services database solution. If the sample databases were installed to the default location: For SQL Server 2008: C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008 Analysis Services Project\standard\Adventure Works.sln will contain the solution for SQL Server Standard. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008 Analysis Services Project\enterprise\Adventure Works.sln will contain the solution for SQL Server Enterprise and SQL Server Developer. For SQL Server 2008R2: C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project\standard\Adventure Works.sln will contain the solution for SQL Server Standard. C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project\enterprise\Adventure Works.sln will contain the solution for SQL Server Enterprise and SQL Server Developer. http://msftdbprodsamples.codeplex.com/wikipage?title=Installing%20Analysis%20Services%20Database *** Shrinking Database DBCC execution completed. If DBCC printed error messages, contact your system administrator. Finished - 2012-03-17 20:11:11.360 Finished installation of database AdventureWorksLT on 17/03/2012 20:11. Skipping installation of database AdventureWorks OLAP Standard because Manually deploy via BIDS after install. Skipping installation of database Adventure Works OLAP Enterprise because Manually deploy via BIDS after install. Installation ended on 17/03/2012 20:11.

The Silverlight project you are about to debug uses WCF RIA services.
WCF RIA services will fail unless the Silverlight project is hosted in and launched from the same web project that contains the WFC RIA services.

using System.Web.Browser; HtmlDocument doc = HtmlPage.Document; doc.GetElementById("mydiv").SetProperty("innerHTML", "hello world"); Also, i might want to interact with existing client-side functions, perhaps from client-side frameworks or other library utilities you might have developed on your own. If I have a function on my page called "foo()" I would invoke it like this: using System.Web.Browser; HtmlPage.Window.CreateInstance("foo"); And if I had parameters in a function, like "foo2(theAlert)," I would invoke it like this: using System.Web.Browser; // ? System.Windows.Browser; // not system.web.browser HtmlPage.Window.CreateInstance("foo2", new string[] { "tim heuer" });
http://www.wintellect.com/CS/blogs/jlikness/archive/2011/05.aspx http://code.msdn.microsoft.com/silverlight/Create-a-ContextMenu-with-a58927f7 SELECT TOP 1000 [NAME] ,[LINE1] ,[LINE2] ,[LINE3] ,[LINE4] ,[ACODE] ,[OCOMM] ,[STAX] ,[FCOMM] ,[FFEES] ,[FCLASS] ,[XGROUP] ,[AREA] FROM [NFP].[dbo].[D_CN]

Age cannot wither her, nor custom stale Her infinite variety; other women cloy The appetites they feed, but she makes hungry Where most she satisfies;

Age cannot wither her, nor custom stale Her infinite variety; other women cloy The appetites they feed, but she makes hungry Where most she satisfies; Age cannot wither her, nor custom stale Her infinite variety; other women cloy The appetites they feed, but she makes hungry Where most she satisfies;

RenderFooter Function jscript common.js

[HTML TABLE, TR, TD, P]
999999999999999999999999999
 <tr vAlign=center>
<td><p class=FooterText>
hhhhhhhhhhhhhhhhhhhhhhhhhhhhh ggggggggggggggggggggggggggggg
 Back  A Entry Point A Entry Point Span wrapped E Entry Point Site Entry Point        B Entry Point C Entry Point D Entry Point Q Entry Point Legal Disclaimer  Verbal ggggggggggggggggggggggggggg

[HTML TABLE, TR, TD, P]

 Back  span and anchor  Legal Disclaimer  © Copyright by 1997 - 2012 Montego Data Limited® All rights reserved. 

[HTML TABLE, TR, TD, P]

Conclusion

[HTML TABLE, TR, TD, P]


Wilmott Online Technical Forum For Derivative Experts   a class=SmallLink href='../DataForm/Page0002.htm'>Java Script Windows  Menu Upgrade Work In Progress  Technical Site Documentation  How The Java Script Tabs Picks Pages  User Help Navigation   User Help Cool Content

Verbal

The Last Line

"
Search  This Site   The Web      
       
Get a Search Engine For Your Web Site   

The Last Line

namespace SocketSecurityService { class Program { static Socket socket; static void Main(strings[] args) { byte[] fileBytes = File.ReadAllBytes("policy.xml"); socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Bind(new IPEndPoint(IPAddress.Any,943)); socket.Listen(5); byte[] buffer = new byte[1024]; while (true) { Socket s = socket.Accept(); s.Receive(buffer); s.Send(fileBytes); s.Close(); } } } } using System; using System.Threading; using System.Text; // Encoding.Unicode using System.Net; using System.Net.Sockets; namespace SocketService { class Program { static void Main(string[] args) { socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Bind(new IPEndPoint(IPAddress.Any,4502)); socket.Listen(5); // Synchronous for simplicity while (true) { Socket s = socket.Accept(); Thread t = new Thread( delegate() { try { while (true) { byte [] buffer = new byte [ 1024 ]; int received = s.Receive(buffer); if (received != 0) { Console.WriteLine(Encoding.Unicode.GetChars(buffer)); } } } finally { s.Close(); } } ); t.Start(); } } static Socket socket; } }
/* THIS IS ALL CLIENT SEND TO SERVER EXAMPLE http://www.silverlight.net/archives/videos/using-sockets google:Silverlight - Using Sockets */
IPCONFIG C:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\WinNT\Tools\pstat.exe Directory of C:\Windows\Microsoft.NET\Framework\v2.0.50727 30/03/2009 04:42 106,496 aspnet_regsql.exe 1 File(s) 106,496 bytes Directory of C:\Windows\Microsoft.NET\Framework\v4.0.30319 18/03/2010 16:47 102,744 aspnet_regsql.exe 1 File(s) 102,744 bytes Directory of C:\Windows\Microsoft.NET\Framework64\v2.0.50727 30/03/2009 04:39 102,400 aspnet_regsql.exe 1 File(s) 102,400 bytes Directory of C:\Windows\Microsoft.NET\Framework64\v4.0.30319 18/03/2010 17:23 102,232 aspnet_regsql.exe 1 File(s) 102,232 bytes
http://www.youtube.com/watch?v=0QZKk1mslHs&feature=BFa&list=UURskdIbvjRLK9jzkldMG19Q&lf=plcp http://www.youtube.com/watch?v=pAcIjF3sKAE&feature=BFa&list=UURskdIbvjRLK9jzkldMG19Q&lf=plcp

<Grid.RowDefintions>
	<RowDefintions/>
	<RowDefintions/>
</Grid.RowDefintions>

<TextBox x:Name="txtToSend" Grid.Row="0" />
<Button Content="Send" Click="OnSend" Grid.Row="1" />
namespace Socks { public partial class Page : UserControl { Socket socket; byte [] bytes; public Page() { InitializeComponent(); } /* One restriction on using sockets in Silverlight is that the port range that a network application is allowed to connect to must be within the range of 4502-4534. */ void OnSend(object sender, EventArgs args) { bytes = Encoding.Unicode.GetBytes(txtToSend,Text) ; socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); SocketAsyncEventArgs socketArgs = new SocketAsyncEventArgs() { /* Silverlight on Port 943 is looking for [policy.xml] and IS application allowed 4502 */ RemoveEmdPoint=new IPEndPoint( IPAddress.Parse("192.168.0.10"),4502) }; socketArgs.Completed += OnConnectCompleted; socket.ConnectAsync(socketArgs); } void OnConnectCompleted(object sender, SocketAsyncEventArgs e) { e.Completed -= OnConnectCompleted; if (e.SocketError == SocketError.Success) { SocketAsyncEventArgs args = new SocketAsyncEventArgs(); args.SetBuffer(bytes,0,bytes.length); args.Completed += OnSendCompeted; socket.SendAsync(args); } } void OnSendCompleted(object sender, SocketAsyncEventArgs e) { socket.Close(); } } } /* THIS IS ALL CLIENT SEND TO SERVER EXAMPLE */
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ A following is an example Silverlight policy file for cross-domain connections using the WebClient and HTTP classes in the System.Net namespace to an HTTP service. This policy file accepts connections from any domain. This policy file limits request headers and does not include subpaths. http://msdn.microsoft.com/en-us/library/cc645032(v=vs.95).aspx Copy include-subpaths = "true" /api/sample /api/sample.xml /api/sample?web=true /api#intro /api?web=true#intro For the above policy file, these resources cannot be accessed: /web A following is a sample Silverlight policy file for connections using sockets. using System; using System.IO; using System.Net; using System.Net.Sockets; namespace PolicyServer { // Encapsulate and manage state for a single connection from a client class PolicyConnection { private Socket m_connection; // buffer to receive the request from the client private byte[] m_buffer; private int m_received; // the policy to return to the client private byte[] m_policy; // the request that we're expecting from the client private static string s_policyRequestString = ""; public PolicyConnection(Socket client, byte[] policy) { m_connection = client; m_policy = policy; m_buffer = new byte[s_policyRequestString.Length]; m_received = 0; try { // receive the request from the client m_connection.BeginReceive(m_buffer, 0, s_policyRequestString.Length, SocketFlags.None, new AsyncCallback(OnReceive), null); } catch (SocketException) { m_connection.Close(); } } // Called when we receive data from the client private void OnReceive(IAsyncResult res) { try { m_received += m_connection.EndReceive(res); // if we haven't gotten enough for a full request yet, receive again if (m_received < s_policyRequestString.Length) { m_connection.BeginReceive(m_buffer, m_received, s_policyRequestString.Length - m_received, SocketFlags.None, new AsyncCallback(OnReceive), null); return; } // make sure the request is valid string request = System.Text.Encoding.UTF8.GetString(m_buffer, 0, m_received); if (StringComparer.InvariantCultureIgnoreCase.Compare(request, s_policyRequestString) != 0) { m_connection.Close(); return; } // send the policy m_connection.BeginSend(m_policy, 0, m_policy.Length, SocketFlags.None, new AsyncCallback(OnSend), null); } catch (SocketException) { m_connection.Close(); } } // called after sending the policy to the client; close the connection. public void OnSend(IAsyncResult res) { try { m_connection.EndSend(res); } finally { m_connection.Close(); } } } // Listens for connections on port 943 and dispatches requests to a PolicyConnection class PolicyServer { private Socket m_listener; private byte[] m_policy; // pass in the path of an XML file containing the socket policy public PolicyServer(string policyFile) { // Load the policy file FileStream policyStream = new FileStream(policyFile, FileMode.Open); m_policy = new byte[policyStream.Length]; policyStream.Read(m_policy, 0, m_policy.Length); policyStream.Close(); // Create the Listening Socket m_listener = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp); // Put the socket into dual mode to allow a single socket // to accept both IPv4 and IPv6 connections // Otherwise, server needs to listen on two sockets, // one for IPv4 and one for IPv6 // NOTE: dual-mode sockets are supported on Vista and later m_listener.SetSocketOption(SocketOptionLevel.IPv6, (SocketOptionName)27, 0); m_listener.Bind(new IPEndPoint(IPAddress.IPv6Any, 943)); m_listener.Listen(10); m_listener.BeginAccept(new AsyncCallback(OnConnection), null); } // Called when we receive a connection from a client public void OnConnection(IAsyncResult res) { Socket client = null; try { client = m_listener.EndAccept(res); } catch (SocketException) { return; } // handle this policy request with a PolicyConnection PolicyConnection pc = new PolicyConnection(client, m_policy); // look for more connections m_listener.BeginAccept(new AsyncCallback(OnConnection), null); } public void Close() { m_listener.Close(); } } public class Program { static void Main(string[] args) { string PolicyFile = (args.Length == 0) ? "PolicyFile.xml" : args[0]; if (args.Length == 0) { Console.WriteLine("No policy file specified; using PolicyFile.xml"); } PolicyServer ps = new PolicyServer(PolicyFile); System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); } } }

After this is the end is a doodle past from xaml ...

Hello! Hello World ... ... To specify the contents of a grid cell, add the Grid.Row and Grid.Column attributes to an element, as shown here: where y is date formats cefnr for N2 .... •Source - this property provides the Uri of the page that will be opened in the frame, when the frame is loaded. For example if we have a Home.xaml page in the Views folder (don't forget the "/" at the beginning): •Navigate( Uri uri ) - with this method we can navigate through the pages, just pass the correct uri and don't forget the "/" and the Uri Kind: this.MainContent.Navigate( new Uri( "/Views/Home.xaml", UriKind.Relative ) ); •JournalOwnership - this property determines if the Frame should use its own journal or the one of the browser to store the navigation history. We'll take a look at it a little bit later. The UriMapper Now when you have already seen the generated urls, you'd probably say: "They don't look friendly enough." or "There is information in them that I don't want the user to be able to see." There is a solution to this problem too! I introduce you the UriMapper, which allows us to map the urls and display much more user friendly ones in the browser. In the App.xaml add the following namespace, which contains the UriMapper control: In the resources I add the following UriMapper with the following mappings: The Uri property determines the url that is displayed by the browser and that must be used to navigate in the code and the MappedUri property determines the url that is mapped when the Frame navigates to the specific page. Also notice the mappings for the Item.xaml page, where the title is not a constant. I define it in both the Uri and the MappedUri properties, and the rest of job a leave to the UriMapper. Finally we provide it to our Frame control via the UriMapper proeprty: http://manaspatnaik.com/blog/index.php/technology/navigation-framework-in-silverlight-4/436%20#more-436 private void hlHome_Click(object sender, RoutedEventArgs e) 2. { 3. this.frameContainer.Navigate(new Uri(“/View/Home.xaml”, UriKind.Relative )); 4. }