silverlight-3.0

Silverlight 3.0 Slider Move in increments of N

I was wondering if anybody knows how to move the slider in increments of 50 or more. 0 - 50 - 100 - 150 - 200 ETC.... I'm implementing a slider to filter some grid results. <Slider x:Name="PointsSlider" Width="350" Height="Auto" ValueChanged="PointsSlider_ValueChanged" Minimum="25" Maximum="3000" LargeC...

How to create a changing button based on an ellipse in Silverlight?

Hi everyone! I have the following problem to solve: I have some ellipses in my xaml that work as buttons, and some of them may open in 2 new buttons when clicked. I put them in separate canvas, in a way that this buttons to be generated already exist with opacity 0. What I want is to have an effect to set this buttons opacity to 1 when I...

How to write an image file on server?

Hello, I have a silverlight 3 app using webservices, which uploads an image to server. Then, on server, I resize this image (using EmguCV) and I want to save this image on the server filesystem. The resulting image is created with the size (500px max in one dimension) and saved to 'C:\ ...". This is all working well when debugging in as...

Resizable datagrid is not consistent in rendering its background image

Hi Guys, I have a datagrid in silverlight, it contains two template columns, i set a background image in each one of them. I made this datagrid resizable using codebehind logic. I have done my calculations in double values so that no fractional space is left in the grid. What I want is that my datagrid should not show any vertical line...

RIA Services and SSL by configuration?

According to this I need to set an attribute in code to get SSL encryption for my RIA service calls. Is there no way to do this with a configuration file? (I currently use Visual Studio 2008 and Silverlight 3.) ...

ListBox ItemsSource Binding doesn't work

Hello. I'm developing a Windows Phome application. I have the following ListBox on a page: <ListBox Margin="10,10,8,8" x:Name="WallList"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <Grid x:Name="ListBoxItemLayou...

which frameworks(MVVM light, Prism, MEF,..) should i use for my Financial Silverlight application?

Hi first of all, I am new to silverlight(play around with it for one month) and this is my first job. However, i am willing to learn anything which can let me advance my silverlight knowledge. Currently, I need to implement a big Silverlight project about Financial(kind of similar to Microsoft Accounting). It will have a lot of tables ...

Silverlight: Get a calendar day to repaint itself.

This is an interesting one. I've managed to get something working in WPF, but Silverlight is a different beast. I have a relatively simple extension for Calendar called HolidayCalendar. Essentially there is a customized style containing elements for a custom background colour and caption based on the type of holiday. (National vs. state...

How to refresh a silverlight page from ASP Usercontrol?

Hi, Is it possible to refresh the silverlight parent page on close of the IE popup(which has ASP Usercontrol), the IE window is opened on a button click in the silverlight application. This silverlight application is hosted in MOSS 2007. ...

what namespace and reference should i add for INotifyPropertyChanged

i am getting this error message The type or namespace name 'INotifyPropertyChanged' could not be found (are you missing a using directive or an assembly reference?) what namespace and reference should i add for INotifyPropertyChanged any help would be great ...

How to stream AAC/mp4 in silverlight with bit rate throttling

Hello I'm trying to play AAC audio files in mp4 container with Silverlight. Server is IIS 7 with Bit rate throttling for mp4 (10 sec burst, 100% stream rate). With wma files this setup works fine, but with mp4 the player doesn't start until the whole audio file has been downloaded to the client. Has anyone a good advice on this? TIA /St...

Silverlight Nested Properties

First Control I can create a UserControl with a DependencyProperty called UserNameLabel. Then, I can just set the datacotext to relativesource self on the UserControl and fill the property in markup. ... public String UserNameLabel { get { return (String)GetValue(UserNameLabelProperty); } set { SetValue(UserN...

How wrap image around cylinder in Silverlight

Hi all. I am trying wrap image around cylinder in silverlight. I looked a lot in Google but don't found anything. As I know it can be done with pixel shader, but don't know how. Is it possible? Thanks. ...

silverlight drag and drop collision detection

Hello everyone, I am trying to develop a simple prototype app with the following requirements: click and drag multiple elements highlight valid containers for dragged element(s) on mouse move a "snap-to" feature when the dragged element(s) are placed inside the valid container element remains in container if mouse is released with obj...

Silverlight 3/WCF Communication over SSL Issue

I have a WCF over SSL service that works no problem. I am able to add a reference to this service to my Silverlight Project. Everything is hosted in IIS7. When My app runs I get the following error An error occurred while trying to make a request to URI 'https://wikittybam/BurgerCounter.svc'. This could be due to attempting to acc...

binding datagrid using MVVM Architecture in silverlight 3

hi, i have an datagrid where i am binding it. it is a simple way what i have done. now i need to do the same thing using mvvm Architecture if any one can help me out how to do it. it would be great below is my code any help would be great <UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly...

How to find the event handler for a DispatcherTimer in windbg

I have a Silverlight 3 application which seems to be leaking DispatcherTimer objects. At least, over time when the application runs I find more of them on the heap: !dumpheap -type DispatcherTimer returns an increating number of them. I'd like to find the Tick event handler method for these so I can identify where they're created in m...

How can I define a VisualState for MouseOver and Focus simultaneously in SL?

Hello, I have a Silverlight application (3.0) and defined some Visualstates for TextBoxes in it: <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal"/> <VisualState x:Name="Mous...

How do I get Entity Framework 4 and WCF Data Services to work with Silverlight 3.0

I have a project that needs to be upgraded in stages. I need to implement Entity Framework v4 first and then eventually upgrade the Silverlight v3 application to v4. Unfortunately my client is not able to roll out Silverlight version 4 until for at least four months (they do want to move to v4 but they have to go though a company wide ...

how to define events in mvvm model in Silverlight

hi, i have an combox control defined with events in my mainpage.xaml <Grid x:Name="LayoutRoot"> <ComboBox SelectionChanged="ComboBox_SelectionChanged"></ComboBox> </Grid> private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { } now how do we defined events for combox control i...