silverlight

Silverlight Checkbox inside datagrid causing Trouble

Hi all i came across a problem with the checkboxes inside the datagrid. First let me post my code of what i have achieved and then i will tell what's causing the trouble This is the code of my datagrid inside a child window <Controls:DataGrid x:Name="dgAthlete" Height="Auto" Width="Auto" IsReadOn...

Setter.Value instead of Setter in Silverlight

I know I can write a Setter in Silverlight like this: <Setter Property="Background" Value="{StaticResource MyBrush}" /> However, due to other considerations, I have to write the setter in the format: <Setter Property="Background"> <Setter.Value> ????? static resource </Setter.Value> </Setter> Any examples I've seen have t...

Expression blend behavior Mix 09 pack gallery

Hi Everyone :) I'm a designer so not to knowledgable at coding :( I'm trying to install a behavior from the gallery on Expression. I've tried this way http://social.expression.microsoft.com/Forums/en-US/blend/thread/b32dd55e-c592-4378-8153-744ccf0526ac/ but it doesn't seem to work. Basicly I downloaded http://gallery.expression.microsoft...

Multiple Sockets on the same port vs Multiple Sockets on multiple ports

Let me explain my scenario before asking the question. I am in creation phase of 17 different multiplayer games that can be played online, directly from browser. To accomplish this, I have choosed Silverlight. Communication will be done using Sockets. Image 17 different type of games like Chess, Backgammon, Pool and hundred of online use...

ruby inside silverlight functionality over c#

Having just found out that you can use Ruby or Python inside a SilverLight application.. link here ..I wonder if its possible to bypass some of the SilverLight limitations with use of these languages instead of C#. I know that the Ruby Engine inside the SilverLight application is trimmed down, just as the .NET CLR is, so I would like...

Silverlight - Radupload Issue with Importing file

Hi All, I am using Silverlight + Rad controls. I am implementing Import functionality. I have used Radupload control (Telerik.Windows.RadUploadHandler). When i am going to import file. But suppose the file is already open. Then it is throwing error that "process can not access the file, it is being used by another process". I am tr...

Silverlight interaction with the Web Server

I never worked with Silverlight before, but I have the requirement to build a fairly dynamic/interactive form to fill out. That leaves me the choice between two technologies I have not much experience with: JavaScript/jQuery or Silverlight. (edit: The application is internal, I can safely assume Silverlight to be available) At the end, ...

Silverlight graphics pixel side position?

I try to port simple game to silverlight (SameGame). The problem is that my old source code used pixel sizes to allight game marks to board. I draw simple grid using lines and game mark (using rectangle). How i can set rentacle position correctly? Example 20 20 pixels to upper left corner). private void DrawGrid() { ...

Changing visibility of child controls in RowDetailsTemplate based on DataContext property

I have a Silverlight DataGrid that contains a RowDetailsTemplate. The RowDetailsTemplate contains a TabControl with several TabItems. The DataGrid will be bound with items of type Contact. Contact has a property called ContactType. I would like to have several of the TabItems be hidden when ContactType is Client. Ideally I would lik...

Expose Silverlight Control to Modules

I'm using Prism to build my application and 19 of my modules need to interact with an control from another module. Is there any way to expose a control? I really don't want to use the event system because it would too much of the responsibility on my one know to know about the data being passed to it. ...

Silverlight SQL 2005

I want to allow a user to provide their SQL login credentials, and display local SQL tables, stored procs, etc. in a listing. Is this possible? Note: I do not want to install some local, small SQL variant. I'm talking about the full version of SQL 2005+ that's already sitting on a developer's workstation. ...

Silverlight, WCF AspNetCompatibilityRequirements and ASPNET Session State not shared

Hi, I have a Silverlight application that on a button opens an aspx page in a new browser window. I want to pass some username/password details from Silverlight to the aspx page. My understanding is that I should be using WCF services to set the session state, which can then be retrieved from the aspx page. I have followed what I thi...

Silverlight Unit Testing

I've searched for this info and see similar questions, but not one that matches very closely to this. If I missed one, I apologize. I was hoping that you'd be able to point me in a direction. I'm working on a Silverlight based project and my team is finally moving toward implementing unit testing. I and another memeber of my team are...

Prevent postback in current page while chunking and sending data to a WCF service

hey guys, I have a silverlight app on an MVC page that user's can draw on, when they click save an event fires in both MVC and silverlight The MVC event redirects to a page where the drawing is reloaded so the user can confirm it was saved correctly (viewed on another silverlight app) The silverlight application event fires off a rout...

Component screen error in Expression blend?

Hi I have this error in Blend. I'm a designer so don't have a wide knowledge of the code. I've created a component screen in Blend. This is the code on the main page - I also get this Invalid attribute value with an everlasting line of numbers in the results panel. And the component screen on the main page states Cannot create an in...

What should I know about working with ADO.Net Data Services? (FAQ)

I've been learning by doing with ADO.Net Data Services (Astoria) for the last couple of months, and while I like the technology the learning has been a real trial. Information that you need to use them effectively is spread over MSDN documentation, articles, blog posts, support forums and of course StackOverflow. This question is a place...

Silverlight UserControl Custom Property Binding

What is the proper way to implement Custom Properties in Silverlight UserControls? Every "Page" in Silverlight is technically a UserControl (they are derived from the UserControl class). When I say UserControl here, I mean a Custom UserControl that will be used inside many different pages in many different scenarios (similar to an ASP....

Zoom/scroll to cursor

I have a problem when zooming in/out of an image within a scrollviewer. When i use the zoom-in button i use a double animation for the image width/height to 1.25 of its original size each time the button is clicked. The same goes for the zoom-out button which sets the scale factor to 0.75. So far so good. The problem is that based on wh...

Why isn't my command parameter binding correctly?

I'm trying to bind a button command to take the text of a textbox as a parameter when the button is clicked. My Xaml looks like this: <TextBox x:Name="InputBox" Width="250" TabIndex="1" Text="{Binding Path=MessageText, Mode=TwoWay}" FontFamily="Verdana" FontSize="11" Margin="0,0,4,0" /> <Button x:Name="SendButton" Width="50" ...

How to learn Silverlight fast?

I need to make Silverlight application. I'm going to need server side, which I'm going to make with C#. What could be best way to learn to make simple application with Silverlight + C#? Here are few questions that I need to know... Btw. I have Visual Studio 2008 Pro and MS Expression Studio 3. 1) How can I make objects in silverlight? 2...