silverlight

Binding ComboBox.SelectedItem in Silverlight

This one is driving me crazy. Here's the XAML: <UserControl x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid x:Name="LayoutRoot" Background="White"> <StackPanel HorizontalAlignment="Left" VerticalAl...

silver light videos

Hi I am trying to watch tutorials on the official site for the ast 2 days, but its not respoding (only the videos section) Do you have an idea why? Do you know any other site the contain video tutorials? ...

Silverlight DRY when animating multiple UserControls on main Navigation page.

Hello all. Starting with Silverlight development. Yet to read a good Silverlight book: suggestions welcome. I have a main GUI screen where 7 user controls (menu items) 'swoop' into sight, all along their own path. I have the user controls nicely seperated and behaving well. Having multiple storyboards (1 each for each menuitem) with mu...

Visual Studio 2008 Xaml Editor not working / disappeared

When I start up VS 2008 to work on a WPF / Silverlight App and open a XAML or XML file the XAML / XML editor is no longer working. The designer does not show up and intellisense is unavailable. It basically looks like a text file has been opened. ...

How do I connect to events when using templates?

I'm new to Silverlight/XAML/C# and havn't figured out all the concepts yet. I'm using the Accordion control together with some templates, the XAML looks like this: <layoutToolkit:Accordion x:Name="MatchesAccordion" SelectionMode="ZeroOrMore" Width="Auto" SizeChanged="MatchesAccordion_SizeChanged"> <layoutToolkit:Accordion.HeaderTemp...

How to pass a generic object through WCF

Is it possible to pass generic objects (by generic I mean any with DataContract, not C# generic collection) without inheriting from one root? At the moment I have something like this: [OperationContract] void Save(GenericObject o); [DataContract] [KnownType(typeof(ClassA))] [KnownType(typeof(ClassB))] class GenericObject {.... [DataCo...

How do I figure out the size of a loaded image using Silverlight 2?

I'm loading an image to a background, and I want the silverlight canvas containing it all to resize to the image size (or maximum or minimum that I determine) of whatever the size of the image is. So I've done the following: private int ImageMargin = 4; public Page() { InitializeComponent(); BitmapImage bi = ne...

Prism Silverlight LoadModule and pass data

I'm loading a module dynamically on demand to edit a business object (let's say a customer module). I want to then load the module and pass a customerDTO (or a primary key) to the view model. I have the OnClick command on my button to trigger my ICommand and then I load the CustomerModule: private void EditCustomer(Guid customerID) ...

How do I get a reference to the ItemsPanel of a Silverlight ListBox

I've got a ListBox in Silverlight2 that is using a Grid as its ItemsPanelTemplate. In code, how do I get a reference to that Grid? <ItemsPanelTemplate x:Key="GridItemsPanel"> <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> ...

How can I include silverlight content in wordpress?

I tried to include silverlight content in my blog post. But wordpress is striping out many tags. Even I tried using 'text only editor' of wordpress, but of no avail. ...

Creating a WPF front end for a Silverlight 3.0 application

I'm considering creating a WPF front end for a Silverlight application. Since Silverlight generally has the smaller subset of functionality this should be possible, but I'm not sure the best way to approach the problem. From the outset, let me say that I'm currently running the app out of browser but it lacks functionality like capturi...

Can a Silverlight application authenticate versus a local LDAP/ActiveDirectory Server

If I have an externally hosted application (www.outside.com) outside the firewall but users within a company wanted to be able to enable LDAP authentication against their local (behind the firewall) AD server (acting as LDAP) or other LDAP server (call it ldap.inside.com), how would this be done. It seems technically possible in that wh...

Binding ComboBox.SelectedItem in Silverlight (more)

Related to my previous question: http://stackoverflow.com/questions/855519/binding-combobox-selecteditem-in-silverlight I have a ComboBox bound like so: <ComboBox x:Name="PART_CommentaryList" HorizontalAlignment="Left" Margin="3" ItemsSource="{Binding Path=CurrentVideo.Commentaries}" SelectedItem="{Binding Path=Curr...

Silverlight: Determine whether DataContext is inherited or not

At runtime in a generic fashion (i.e. iterating UIElements) can I determine if a given FrameWorkElement has a non-inherited DataContext property set? I want a list of elements where DataContext was explicitly set, not inherited from higher up in the chain. I thought perhaps GetBindingExpression() would help but so far it has not. Usin...

How do i resize a silverlight app based on its contents?

I have a simple app that I'd like to change the size of when I load the contents. For example, let's say I load an image of size 100. How do I change the size of the container in which the silverlight is being rendered? ...

facebook API from Silverlight

Does anyone have a sample showing how to query Facebook user photos from Silverlight? ...

Problem with ContentControl resizing

I've been hitting my head against a wall with this one for a while now. I've got a custom control that derives from ContentControl - it's working perfectly EXCEPT that it won't resize to fit its parent, either declaratively OR programatically. The custom control is parented within (ultimately) a content presenter, and that's correctly ...

Silverlight 3 - TreeView Programatic scroll not working

I was able to follow Justin Angel's (Silverlight team member) advice from this question to scroll to a particular item in a TreeView. Unfortunately, it simply isn't working in my project. Based on Justin's advice, I implemented the extension methods he designed which allowed me to get a TreeViewItem from an underlying object and in trac...

Silverlight specific Image shifting to the right

I am generating a set images to form a human body so that I can use for a physics engine. The images generated are in a specific user control in where I set the dimentions and co-ordinates of each image. That usercontrol is then loaded in another user control but for some reason when the images are loaded, one specific image which I name...

TranslateTransform.BeginAnimation in Silverlight?

I have a working WPF application that would like to port to SilverLight. I have a piece of WPF code that I haven't found a way to mimic in SilverLight. WPF Code Snippet: TranslateTransform trans = null; trans = child.RenderTransform as TranslateTransform; trans.BeginAnimation(TranslateTransform.XProperty, new DoubleAnimat...