silverlight

Is there a size limit to the PNG file size for a SilverLight Image?

Hi, I have been running into issues loading Images into a SilverLight Application. These images have been generated for DeepZoom purposes and have sizes of over 30 Megs (as PNG). I have been told there might be a limit to BitMap Sizes that can be loaded, I would like to know where I can have a point of reference to this kind of infor...

Silverlight: retrieving controls nested within a Listbox

hi, i made a listbox that generates dynamic controls such as dropdowns & datepicker. i wanted to retrieve the data within the rows. Normally, in windows forms we commonly index the ...Items[i].FindControl("ControlID") method. How do you do about in XAML? I need to retrieve the changes upon clicking a button. btw, here's a simple view o...

How to use EPS files in a WPF or Silverlight application?

I have a few images in EPS format which I would like to use in my WPF application. Is this possible? If not, is there a way to convert them to XAML so I can use them directly in WPF? I don't have a budget for Expression Design or Adobe Illustrator, and there are only a few images to convert. ...

How can a user enter a newline character in Silverlight?

I'm trying to get a screen in silverlight where the user can enter their own text and add line breaks as neccesary. The problem is that whenever they hit return inside of a text block, nothing happens. Is there some way around this? Thanks ...

Silverlight app. displays "ConfigFileMissing" message when trying to use a web service.

The silverlight class library throws System.InvalidOperationException exception with "ConfigFileMissing" message when trying to access a very simple SOAP web service. As you can see there's only one line of code that initializes the client. This is the line where exception happens. public void GetDataFromWebService() { ServiceRefer...

Silverlight: Sometimes, StackPanel shows in FireFox but not IE, Why?

I'm using the following XAML as part of my page: <StackPanel x:Name="RuleWarning" Orientation="Horizontal" HorizontalAlignment="Stretch" Margin="5,0,0,0"> <Image Source="{Binding WarningIconPath}" Margin="0,0,0,0" Width="16" Height="16" HorizontalAlignment="Stretch" VerticalAlignment="Center"/> <TextBlock x:Name="tbRuleWarning...

sliverlight application won't load.

hi. i'm trying to get started with silverlight 2. i have a weird bug. every app i build in vs 2008, when i run it the browser prompts me to install silverlight 2 although it's already installed and i have no problem running other silverlight websites. i'm trying to build a simple "hello world" application. i've tried uninstalling and rei...

How can I have associations with objects that have the same key ("Id") using .Net Ria Services?

Say I have two classes and have a requirement that the primary key property must be named "Id" (example: Book and Publisher). The requirement is because I'm working with our companies code generated objects and can't change the way they are generated. These classes have a a foreign key between them: Book to Publisher and is a one to one ...

Syncronously populating DependencyProperties of a custom control in Silverlight

I have a Silverlight custom control with two properties; Text and Id. I have created DependencyProperties for these as per the code below. public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(LookupControl), new PropertyMetadata(NotifyPropertyChanged)); public static readonl...

How do I find out if a Silverlight Control's property has a binding attached?

I want to loop through the controls on a UserControl and set a property if the control isn't bound. e.g, If I have these controls: <Button x:Name="uxButton" Content="Foo"/> <Button x:Name="uxButton2" Content="{Binding Foo}"/> <TextBlock x:Name="uxText" Text="Blah"></TextBlock> ...

Compiling Castle Microkernel and Windsor for Silverlight 2.0

I am having trouble compiling Castle Microkernel and Windsor for Silverlight 2.0. I am working with the current build on the trunk (5837). I can build the InversionOfControl-vs2008-SL.sln solution fine and this generates Core-Silverlight.dll no problems, but will only build the Microkernel and Windsor assemblies for .net and not for Sil...

Silverlight development - best practises for organizing workflow between .net developer and blend designer

Hello, I will be starting soon my first silverlight 2.0 project. I'm responsible for .net stuff and organizing team work. Currently we use environment build with subversion and cruisecontrol.net. It suited our neeed so far during Winforms and ASP MVC projects. I've got a few questions concerning Silverligt development. Microsoft clai...

Silverlight. Treeview overlap edge of containing control.

I have a treeview contained in a border that I want to use as a menu. I want the individual menus to drop down. This seems to be working fine except I want them to drop down over the edge of the border. Currently the are dropping down inside the border and thus can't be fully seen. Thanks in advance for your help. ...

How to access actual Height of Elements with Height=Auto

I have a situation like this: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="560"/> <ColumnDefinition Width="250"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <!-- status infos & content start --> <RowDefinition Height="Auto" /> <!-- status infos ...

Targeting both .NET 3.5 and Silverlight

Let's imagine I already have a project building .NET 3.5 assembly. Now I want to build this assembly for Silverlight, and moreover, maintain its Silverlight version with minimal efforts further. What is not acceptable: Creating separate project for Silverlight build What is acceptable: Adding custom directives allowing me to targ...

Silverlight deep zoom image click issue

Hello everyone, I am using deep zoom composer to generate XAP and html files and they works fine for me. Currently, I want to retrieve the information about which image the end user is clicked, and I want to display the description information for the user clicked image in another Silverlight TextBox control on the same page. The descri...

Different configuration per URL in silverlight

I need to change database and settings when my customers load the application (xap) on different URLs. Examples: client A connects on URL: www.clienteA.com/system client B connects on URL: www.clienteB.com/system The two urls above call the same xap file, but I need to change database and settings; how I do that? ...

Source attribute of Silverlight MultiScaleImage

Hello everyone, I learned we should assgin a .bin file to the Source attribute of Siverlight MultiScaleImage. For example, I learned from here (refers to code sample in section Anonymous Methods for Events), http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/410/Silverlight-Deep-Zoom-Sample-Code-Part-2.aspx But I have tried using ...

Can I run PowerShell scripts in an Silverlight application?

Can I run PowerShell scripts in an Silverlight application? ...

Problem Implementing Own Design of a WCF Reliable Service for SilverLight (basicHttpBinding)

I am trying to implement a very basic reliable message state handling system to provide improved reliability in my Silverlight to WCF server communications. I have taken the route of introducing a custom message header into the SOAP request that contains an incrementing integer as a message ID. The idea is that when I receive a reques...