... about in the following sections: scrollable interfaces, scalable interfaces, and full-screen interfaces Scrolling None of the containers you’ve seen have provided support for scrolling, which is ... Content, to Silverlight’s basic element infrastructure The Content property accepts a single element, which becomes the content of that user control User controls don’t include any special functionality–they’re ... manually using the Canvas.Clip property Technically, the Clip property takes a Geometry object, which is a useful object you’ll consider in more detail when you tackle drawing in Chapter Silverlight
Ngày tải lên: 06/08/2014, 08:22
... Name ="lstMessages"></ ListBox > < Button Grid.Row ="3" Margin ="5" Padding ="3" : Name ="cmdClear" Click ="cmdClear_Click" Content ... ="Black" BorderThickness ="1" Click ="cmd_Click"> < StackPanel > < TextBlock Margin ="3" Text ="Image and text label"></ TextBlock ... ="0" Grid.Column ="1" Margin ="3" Padding ="2" Content ="Browse"></ Button > Finally, it’s worth noting that you can create some interesting
Ngày tải lên: 06/08/2014, 08:22
Apress pro Silverlight 3 in C# phần 5 docx
... abstract System.Windows.Media.Projection class from which all projections derive At present, Silverlight includes just two projections: the practical PlaneProjection that you’ll use in this chapter, ... you–you can store it in the App class, or you can use static members in your custom page class, as done here with a single string: public partial class CustomCachedPage : Page { public static string ... destination page with code like this: int productID, type; if (this.NavigationContext.QueryString.ContainsKey("productID")) productID = Int32.Parse(this.NavigationContext.QueryString["productID"]); if
Ngày tải lên: 06/08/2014, 08:22
Apress pro Silverlight 3 in C# phần 6 pps
... Name ="LayoutRoot" Background ="White"> < Button : Name ="cmdGrow" Width ="160" Height ="30" Click ="cmdGrow_Click" Content ="This ... in a professional application ■ Note Because the EasingFunction property accepts a single easing function object, you can’t combine different easing functions for the same animation Easing In and ... ="projection" RepeatBehavior ="Forever" Storyboard.TargetProperty ="RotationX" From ="0" To ="360" Duration ="0:0:40"> Figure 10-8 Spinning
Ngày tải lên: 06/08/2014, 08:22
Apress pro Silverlight 3 in C# phần 7 pptx
... a second This process will actually decrease performance To switch on bitmap caching, you set the CacheMode property of the corresponding element to BitmapCache Every element provides this property, ... switch caching on and off using a checkbox The change is performed programmatically using code like this: img.CacheMode = new BitmapCache(); Another useful tool is Silverlight’s built-in diagnostic ... surfaces–even in the case of the button, there is a TextBlock with content inside • The fourth number shows the number of implicit hardware-accelerated surfaces In some situations, switching caching
Ngày tải lên: 06/08/2014, 08:22
Apress pro Silverlight 3 in C# phần 8 pps
... TextBlock > < Button Margin ="3" Padding ="3" Content ="Button One"></ Button > < Button Margin ="3" Padding ="3" Content ="Button ... BorderBrush}" BorderThickness ="{TemplateBinding BorderThickness}" CornerRadius ="{TemplateBinding CornerRadius}" Background ="{TemplateBinding Background}"> < ContentPresenter ... Button Margin ="3" Padding ="3" Content ="Button Four"></ Button > </ StackPanel > < TextBlock TextWrapping ="Wrap" Margin ="3" FontSize
Ngày tải lên: 06/08/2014, 08:22
Apress pro Silverlight 3 in C# phần 9 pps
... which will successfully match any string that starts with the numbers 333, followed by a single whitespace character and any three numbers Valid matches include 333 333, 333 945, but not 334 333 ... StoreDb.GetProducts(); // Create a second collection with matching products List < Product > matches = new List < Product >(); foreach ( Product product in products) Using LINQ, you can ... SqlConnection con = new SqlConnection (connectionString); Trang 9CHAPTER 16 ■ DATA BINDING SqlCommand cmd = new SqlCommand ( "GetProducts" , con); cmd.CommandType = CommandType StoredProcedure;
Ngày tải lên: 06/08/2014, 08:22
apress pro silverlight 3 in c sharp phần 10 potx
... Dispatcher class includes just two members: a CheckAccess() method that allows you to determine if you’re on the correct thread to interact with your application’s user interface, and a BeginInvoke() ... RoutedEventArgs e) { backgroundWorker.CancelAsync(); } Nothing happens automatically when you call CancelAsync() Instead, the code that’s performing the task needs to explicitly check for the cancel request, ... to access web content from a website that doesn’t allow cross-domain... that can be accessed by Flash applications can also be accessed by Silverlight applications The clientaccesspolicy.xml
Ngày tải lên: 06/08/2014, 10:20
Apress pro Silverlight 3 in C# phần 4 pdf
... objects: Product[] products = new []{ new Product("Peanut Butter Applicator", "C_PBA-01"), new Product("Pelvic Strengthener", "C_PVS-309"), }; acbProduct.ItemsSource ... database) Product[] products = GetProducts(); // Create a collection of matches List< string > productMatches = new List< string >(); foreach (Product product in products) private ... section <input:AutoCompleteBox : Name ="acbProducts" FilterMode ="None" Populating ="acbProducts_Populating" ></ input : AutoCompleteBox > When the Populating event
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 3 pdf
... 5 The count of the second sequence is: 33 The count of the concat sequence is: 38 The count of the union sequence is: 37 Success! Intersect The Intersect operator returns the set intersection ... elements, minus the entries from the processed entry collection. You can then process this exception sequence again without the concern of reprocessing an entry. For this example in Listing 4-37, ... in the input sequence Since this prototype... following using directives to your code if they are not present: using System .Linq; using System.Collections; using System.Collections.Generic;
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 2 ppsx
... "Adams", "Arthur", "Buchanan", "Bush", "Carter", "Cleveland", "Clinton", "Coolidge", "Eisenhower", "Fillmore", ... "Kennedy", "Lincoln", "Madison", "McKinley", "Monroe", "Nixon", "Pierce", "Polk", "Reagan", "Roosevelt", "Taft", ... "Adams", "Arthur", "Buchanan", "Bush", "Carter", "Cleveland", "Clinton", "Coolidge", "Eisenhower", "Fillmore", "Ford",
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 4 ppt
... selector method delegate can be provided, allowing a member of each element in the input sequence to be compared while searching for the minimum value in the input... LIN Q TO XML INTRODUC ... sequence so all can see it foreach (int item in intSequence) Console.WriteLine(item); Console.WriteLine(" "); // Now... by calling the Min operator on the birth year Listing 5-55 is the code calling ... ints = Enumerable.Range(1, 10); foreach (int i in ints) Console.WriteLine(i); Console.WriteLine(" "); int sum = ints.Sum(); Console.WriteLine(sum);... to your project for the System.Xml .Linq
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 5 ppt
... XDeclaration("1.0", "UTF-8", "yes"), new XDocumentType("BookParticipants", null, "BookParticipants.dtd", null), new XProcessingInstruction("BookCataloger", "out-of-print"), ... XDeclaration("1.0", "UTF-8", "yes"), new XDocumentType("BookParticipants", null, "BookParticipants.dtd", null), new XProcessingInstruction("BookCataloger", ... XDeclaration("1.0", "UTF-8", "yes"), new XDocumentType("BookParticipants", null, "BookParticipants.dtd", null), new XProcessingInstruction("BookCataloger", "out-of-print"),
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 6 ppt
... of LINQ, this query can be combined into a single, more concise statement as demonstrated in Listing 8-3. Listing 8-3. A More Concise Example of Calling the First Ancestors Prototype XDocument ... foreach block are for this purpose. Then in the second foreach loop, I call the Ancestors operator and display each ancestor element. In reality, in that second foreach loop, I could have called ... case-sensitive, which isn’t that surprising since XML is case-sensitive. DescendantNodes The DescendantNodes operator can be called on a sequence of elements and returns a sequence containing
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 7 pptx
... XElement("LastName", "Buckingham")))); Console.WriteLine("Here is the source XML document:"); Console.WriteLine("{0}{1}{1}", xDocument, System.Environment.NewLine); XmlSchemaSet ... must have MinOccurs = 1 and MaxOccurs = 79228162514264337593543950335 Element FirstName is Valid Schema element FirstName must have MinOccurs = 1 and MaxOccurs = 1 Element MiddleName is Invalid ... BookParticipant is Valid Schema element BookParticipant must have MinOccurs = 1 and MaxOccurs = 79228162514264337593543950335 Element FirstName is Valid Schema element FirstName must have MinOccurs
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 8 pps
... the call to the SubmitChanges method in a try/catch block and specifically caught the ChangeConflictException exception. This is for handling concurrency conflicts, which I will cover in detail ... records, as easily as accessing a property of the parent class. Likewise, accessing a child’s parent class is as easy as accessing a property of the child class. Concurrency Conflict Detection ... In Listing 13-3, I will create a new customer using the InsertCustomer stored procedure Listing 13-3 Creating... Point] @p6: Input String (Size = 2; Prec = 0; Scale = 0) [FL] @p7: Input String
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 9 ppt
... as changing properties on an object, calling the DataContext object’s SubmitChanges method, and handling any concurrency conflicts that may occur Don’t let the concurrency conflict handling intimidate ... cities.Contains(c.City)); foreach (Customer cust in custs) { Console.WriteLine("{0} - {1}", cust.CustomerID, cust.City); } As you can see in Listing 14-18, instead of writing the query so that the customer’s ... Source=.\SQLEXPRESS;Initial Catalog=Northwind");db.Log = Console.Out; string[] cities = { "London", "Madrid" }; IQueryable<Customer> custs = db.Customers.Where(c => cities.Contains(c.City));
Ngày tải lên: 06/08/2014, 08:22
Apress pro LINQ Language Integrated Query in C# 2008 phần 10 ppsx
... catch (ChangeConflictException ex) Trang 22 foreach (MemberChangeConflict memberConflict in objectConflict.MemberConflicts)In the preceding code, I catch the ChangeConflictException exception This ... “Pessimistic Concur-rency” in Chapter 17 to see an example doing this Change Tracking Once the identity tracking service creates an entity object in its cache, change tracking begins for that object Change ... Catalog=Northwind");Console.WriteLine("Querying for the LAZYK Customer with LINQ."); Customer cust1 = (from c in db.Customers where c.CustomerID == "LAZYK" select c).Single<Customer>();
Ngày tải lên: 06/08/2014, 08:22
Pro WPF in C# 2010 phần 3 doc
... want. CHAPTER 6 ■ CONTROLS 170 ■ Tip Of course, you can still pack a lot of content in a single content control. The trick is to wrap everything in a single container, such as a StackPanel ... content inside a content control because the XAML parser converts that to a string object and uses that to set the Content property. However, you can’t place string content directly in a layout container. ... use a custom cursor, you pass the file name of your cursor file or a stream with the cursor data to the constructor of the Cursor object: Cursor customCursor = new Cursor(Path.Combine(applicationDir,
Ngày tải lên: 06/08/2014, 09:20
Building CMS / E-Commerce Project using ASP.NET 3.5 in C# 2008 and SQLServer 2005.Chương 3 docx
... longnamit@yahoo.com Page Building CMS / E-Commerce Project using ASP.NET 3.5 in C# 2008 and SQLServer 2005 // Trả Cache protected static Cache Cache { get { return HttpContext.Current.Cache; } } //Lấy ... _connectionString = value; } } //Thuộc tính EnableCaching(true, false) cho phép Caching hay khơng private bool _enableCaching = true; protected bool EnableCaching { get { return _enableCaching; ... (abstract class) /// public abstract class DataAccess { //Thuộc tính chuỗi kết nối private string _connectionString = ""; protected string ConnectionString { get { return _connectionString; }
Ngày tải lên: 02/07/2014, 00:20
Bạn có muốn tìm thêm với từ khóa: