... pop-up windows as separate tabs in
the current window.
• When calling PopupWindow(), you must supply an absolute URI.
Inspecting the HTML Document
Retrieving browser information and performing ... displaying by using the same code in several pages. Figure 14 -8
shows the result of this approach, as the content changes inside a Silverlight application.
Figure 14 -8. Sizing the...
... Value property. In a LinearPointKeyFrame it’s a Point, in a DoubleKeyFrame it’s a double, and so on.
You can create a more interesting example using a series of key frames. The following
animation ... defined here. >
</Canvas>
</UserControl>
With this code in place, you could insert a bomb into your window using a
<bomb:Bomb> element, much as the main win...
... syntax that was introduced in .NET 3. 5.
LINQ works with any data source that has a LINQ provider. Using the support that’s
included with Silverlight, you can use similarly structured LINQ queries ... = new List<Product>();
foreach (Product product in products)
{
if (product.UnitCost >= 100)
{
matches.Add(product);
}
}
Using LINQ, you can use the following exp...
... System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace SilverlightApplication1 ...
MainPage.xaml.cs. Here’s what you’ll see in the MainPage.xaml.cs file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using...
... more properties for controlling fonts, inline formatting, and
text wrapping. You’ll consider these properties in the following sections.
Font Properties
The TextBlock class defines font properties ... creating an ordinary .NET property.
The first step is to define an object that represents your property. This is an instance of
the DependencyProperty class (which is found in the Syst...
...
warnings.
The installation process places the application in a randomly generated folder in the
current user’s profile. When the installation process finishes, it launches the newly installed ... Description
NotInstalled The application is running inside the browser and hasn’t been installed as an
out-of-browser application.
Installing The application is in the process of being i...
...
line segment that connects the final point to the starting point. You can fill the interior of this
shape using the Fill property. Figure 8- 8 shows the previous polyline as a polygon with a yellow ... Lines
It’s easy to create simple lines using the LineSegment and PathGeometry classes. You set the
StartPoint and add one LineSegment for each section of the line. The LineSegment.Point
p...
... users zoom into massive images in real time.
■ What’s New Silverlight continues to refine its audio and video support. Although the programming
interface remains the same in Silverlight 3 (for ... DEEP ZOOM
38 8
When it comes to video, Silverlight supports the follow standards:
• Windows Media Video 7 (WMV1)
• Windows Media Video 8 (WMV2)
• Windows Media Video 9 (WM...
... code inline (as in this example). The
inline approach works well for simple operations, like this single-line update. But if you need to
use a more complex process to update the user interface, ...
else
{
int[] primes = (int[])e.Result;
foreach (int prime in primes)
{
CHAPTER 20 NETWORKING
680
■ Note The networking examples in this chapter assume you’re using a solut...
...
Author of
Pro WPF in C# 20 08
Pro ASP.NET 3. 5 in C# 20 08
(with Mario Szpuszta)
Beginning ASP.NET 3. 5 in
C# 20 08
Pro Silverlight 2 in C# 20 08
Your Brain: The Missing
Manual
Companion ... APRESS ROADMAP
Pro Silverlight 3
for the Enterprise
Pro
Silverlight 3 in C#
Beginning
Silverlight 3
Accelerated
Silverlight 3
Si...