silverlight

Silverlight 3: Navigation page always aligns left!

Hello, I have a silly question. How to center the content of navigation pages??? I've been following this tutorial: http://silverlight.net/learn/learnvideo.aspx?video=187319 (source code on page) I tried setting the horizontalalignment to center on every damn thing possible but the content always ends up top left. Anyone else have th...

SilverLight 3 Out of Browser Experience Parameter Passing

I have a video player that I made with Silverlight 2, and to pass parameters in I'd have the following in the html file hosting it inside the SilverLight object tag: <param name="initParams" value="path=http://foo.bar/pathToVid.wmv, autoplay=false" /> This works in browser, but with the ...

Silverlight Recommended Book

I have just been reading about Silverlight 3 and would like to start getting into Silverlight. Can someone recommend a good silverlight book (version 2 would be fine). I found this but the answers and one ups were quite sparse, perhaps there is a better answer now it has been around longer. http://stackoverflow.com/questions/60822/can-a...

Google App Engine on Silverlight

Hi, are there any good examples on how to use Google App Engine from Silverlight, preferably without writing custom webservices? Cheers Nik ...

Silverlight Code Obfuscation

I'm looking for recommendations of any free tools available for Silverlight code obfuscation. The professional version of obfuscator supports Silverlight, but the community edition of Obfuscator does not. Obfuscar from Google Code requires manual specification of every item that shouldn't be obfuscated, so every control and property re...

loading multiple files using Silverlight with asp.net

Hi All I have developed one project by using silverlight 2 with asp.net. I have one silverlight application and two .aspx pages (one for login.aspx and another for registration). I have designed login.aspx using silverlight 2 and I have attached .xap file to my login.aspx. For registration.aspx. I need to developed one more silverlig...

How to combine .NET RIA Services with MVVM in Silverlight 3?

The .NET RIA Services are described as an n-tier framework for Silverlight. I have been wondering what the relation is between this framework and the Model-View-ViewModel pattern. Are they in conflict or can you see the potential for synergic combination? ...

data access in silverlight 2.0

i'm new to silverlight and i'm porting from asp.net 2.0. I have done many data binding applications in asp.net where i use sql server 2005 and use it's tables and access them via sqlconnection object and perform all kind of database related functions. Can any one tell does silverlight 2.0 supports such kind of facility. If so can i use a...

How to notify the user about binding errors in silverlight?

To my understanding, binding errors are displayed only during debug mode in Visual Studio's Output window. However, I want to know about broken bindings when the user runs my app, and I want to notify him that something is not working quite right. Is there a way to handle binding exceptions from code, when the datacontext is set, and so...

If I use the MinWidth / minHeight in my layoutRoot Grid the preview gridlines stop working

What am I doing wrong, or is this a bug in blend 3/Silverlight 3 preview <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="10*"/> </Grid.RowDefinitions> <Grid x:Name="SideBar" HorizontalAlignment="Left" MinHeight="768" MinWidth="100" G...

WPF vs Silverlight 3.0

Silverlight 3.0 beta has just been announced at Microsofts Mix Conference in Las Vegas. Two features of the new beta are 3D-graphics and the ability to run applications outside of the browser, which to me seemed to be two of the major features that WPF (Windows Presentation Foundation) previously offered over silverlight. I am currentl...

Access codebehind variable in XAML

Hi, How can i access public variable which in Sample.xaml.cs file like asp.net <%=VariableName%> ? Thanks. ...

Silverlight: Invalid Attribute Type for TargetType="{x:Type TextBlock}"

Just playing around with Silverlight a bit and trying to set a style to apply to all TextBlocks. The following XAML: <Style TargetType="{x:Type TextBlock}"> <Setter Property="Margin" Value="10, 10, 10, 10" /> </Style> Gives me the error Invalid attribute value {x:Type TextBlock} for property TargetType. I copied and pasted this bi...

Sharing assembiles between Silverlight and "plain vanilla" .Net.

I'm using some generic classes as data containers, and am using them to pass data to and from a wcf service. Because of the way WCF mangles generic names on the client side into a class named something like "ListOfBlah231546797646", I'm adding a reference to the real assembly as a "KnownType". Silverlight needs to consume these service...

Silverlight: Create image from silverlight controls

Is it possible to generate an image from a silverlight control so that the control would render itself and its contents to an image so that I can do sime pixel manipulation on the image? ...

Silverlight Toolkit: Why can't I change ItemsSource on Chart.Series?

I'm starting to experiment with the new chart controls in System.Windows.Controls.DataVisualization.Charting (from the Silverlight 3 Toolkit) I want to bind a data table that contains a list of budgets (name & value column). It works when I first load my page: <v:Chart x:Name="BudgetChart" Title="Budget Distribution"> <v:...

Displaying PDFs in Silverlight

Hi, I want to make a PDF document reader, and the only thing I've found to help me is "Amyuni PDF Suite" that will turn the PDF into XAML and stream that. Are there any other controls for displaying PDFs in Silverlight? Or could I add an IFrame into Silverlight and let the client render it? Cheers Nik ...

Does Silverlight 3 Change the MVC vs. Silverlight question?

I'm starting a new project soon and investigating whether or not to use MVC, Silverlight or both. This question Silverlight vs. ASP.NET MVC was a good starting point. But looking over the SL3 beta, it looks like there are two things that change the landscape just a bit. First, the navigation feature which is a direct feature of Silver...

Hosting ASP.NET Inside Silverlight

Yes, I know it is not the intention of Silverlight to host ASP.NET and that the namespaces/classes have been removed, but I have a small personal/pet project where Cassini-like hosting functionality (localhost only is fine) from within Silverlight would be a slick feature. Can this be made to work somehow? What is missing? ...

What is the most intuitive, usable way of entering a time of day or a duration?

I'm building a line-of-business application in Silverlight and need to get the user to edit two .NET TimeSpan values. One is a time of day (relative to midnight) and the other is a duration. Currently I'm using two TextBoxes, formatted as hh:mm. This is pretty straightforward, but it could definitely be improved. I've observed people usi...