silverlight-4.0

Silverlight 4: how to highlight control on mouse over

My aim is to get fine control "animation" when it is mouse-over-ed. For example, I have a "map" of controls (game map that represent different type of terrain), each of them is an image with trees/rocks/hills on the green grass or water (lake or see) image of blue/cyan color. When user point any image with mouse it should get shiny: eith...

Parsing Data in Silverlight

I have a design question about parsing data in Silverlight. I need to allow my users to validate their csv data (they paste ten rows into a textblock), but I am not sure if I should attempt to do it on the client side where I don't have access to the textfileparser class or send the data to a webservice for validation. If I send it to ...

MouseOver state for Border element

I have a Border element on my page that contains some TextBlock elements contained in a grid, e.g. (simplified): <Border Style="{StaticResource borderStyle}"> <Grid Background="Transparent"> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnD...

How to refactor common XAML code in silverlight?

I have a project with multiple views, all the views are going to have a common ribbon bar on the top. Based on the ribbon bar action, I will need to do something specific on the specific view currently on. One option I was thinking is to create one view with Ribbon bar and create all views as user controls and add and remove them based o...

Silverlight displays solution name as title of page until application loads

I have a Silverlight 4 application and I cleverly name my apps by whatever color strikes me as appropriate to the project I am building. | It works for me. | My problem is that when I launch the application the solution/project name displays in the title/tab until the home page loads and then whatever I have set as my page title in my re...

Setting FontSize below 6 in Silverlight

Whenever I set a TextBox's FontSize dependency property to a value less than 6.0, whether in XAML or in code, an ArgumentException is thrown. Is there any way to work around this arbitrary limit? ...

How to: Silverlight 4 business appliacation Form athentication with stand alone database

I am working on a silverlight 4 business application. for the form based authentication I created a user database with all the user, role and profile tables on SQL Express. In my VS2010 ASP.NET configuration I can see and manage my users and roles by adding, removing or modifying them. So, I assume my app.config connectionstrings set...

How to expand a TreeViewItems from the inside out as with Josh Smith's WPF example

Josh Smith wrote a clear, consise tour of working with the TreeView control in WPF. The secret to the success is the binding of IsExpanded and IsSelected properties of the viewmodel to the treeviewitems. The paper is here. However after a day of attempting to map his approach to the Silverlight Toolkit TreeView I'm beginning to suspec...

Silverlight 4: How to reference class from another assembly

In XAML-file of the SquadView page (VfmElitaSilverlightClientView.Pages.SquadView) I am using custom value converter. XAML-file is in "VfmElitaSilverlightClientView" namespace. Separate folder was created for converter and it is in "VfmElitaSilverlightClientView.Converter" namespace (in the same assembly). To use converter following code...

Silverlight 4 website dies on Internet Explorer 7 on Vista

Hi All, Ive had a quirky issue brought up by one of my website users. They are running Vista and with IE 7.0.6. When they open up my Silverlight website it seems to download the XAP correctly but once the XAP has finished downloading IE just dies/crashes. Just wondering if anyone has seen this problem before and has any advice? Thanks ...

Bullets and Numbering in Silverlight

I'm looking for some comprehensive library for Silverlight on bullets/numbering. I've found a few, like Vector Light's RTB control, but most are lacking extended features of bullets/numbering that word processing programs have, like having the First Line Indent of a great value than the Hanging Indent (e.g. first line indent is 1 inch an...

Silverlight and MEF

Hi, Im looking at using MEF to load plugins into my application to allow for customisation, and have a couple of quick question that I not seen answered in the sample apps I have looked at: 1) Can MEF only load XAP files from the web site hosting the main XAP 2) Do I need to create a "Silverlight Application" project for each plugin o...

How to create circle button with image background and CLICKING feel IN Silverlight

Hi Right now i can change the look of the button to an ellipse with a background image. However, when i click on it, i don't feel the CLICKING EFFECT of the normal buttons in Silverlight Can anyone help me how to get that effect? this is my XAML style for the round button <style x:Key="roundButton" TargetType="Button"> <Setter Pr...

How to save my xml file as PDF file using C#.

i am converting silver light grid view into XML. it opening in excel exactly. what i need is while saving the file as xml.i need to convert that my file into pdf formate. either i have to use Save As PDF option through coding. are i have convert my data into pdf formate. suggest me to this task perfectly. ...

windows application that launch out of browser silverlight application and do other work

i wanna create an exe that check the running processes on the windows and launch my xap file i wanna close it if another software was running I read the silent install scripts but yet still confused how can i use them examples will be appreciated Thanx ...

Silverlight - Adding controls dynamically to stackpanel from Style

I have a stackpanel as a place holder, and i would like to add multiple controls to it depending on user input. The problem i have having is that i get a "The property 'Template' was not found in type 'System.Windows.Controls.StackPanel'. [Line: 104 Position: 34]" Here is my xmal Style Element <Style TargetType="StackPanel"...

Using MEF to handle authoerization/user-access w/ the Navigation Framework.

I think im starting to understand how to use MEF now. But im still not sure what the best way of utilizing MEF in order to handle controlling user access. For example: Im using the silverlight navigation framework. And each navigation menu item is to be either disabled or not shown at all if a particular user has rights (i.e. roles, cla...

How to approach loading displaying different views based on Selected Treeview Node

I need some guidance on the plumbing of an MVVM patterned app. Here's the setup. The page is vertically divided in two. The LHS has a treeview, and the RHS will display the details on whatever item is selected from the tree. The treeview items bind to a few different types of View Models (Customers, Vendors, Employees for example) Se...

silverlight - change child window position when opened

How do I change position of childWindow control when it is opened? I want to do that because I want to make resize animation. ...

Silverlight performance design tips

What's your top 3 Silverlight performance design tips? Thanks ...