silverlight

Silveright image source on web not showing anything

I'm sure that this is a simple newbie question, but the answer is eluding me right now. I have the following control compiled in Silverlight 3: <UserControl x:Class="SLImageTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http:/...

Parent Child Relationship UI

Consider the following Parent/Child relationship. What I would like to know is how I would go about creating a GUI for this with the following requirements: All Parents or children will contain an image a label and a couple of buttons Parents will be collapse able New Parents/Children can be added at any time I was thinking about us...

WPF / XAML - Can text be auto sized?

For a fixed size wrappable text area, is there any way to make the font size as large as possible based on the amount of text? For example, if you have a 500x500 area with the text "Hello", the font size would be really big. But if you have a paragraph of text the font size would be smaller to fit into the area. I have looked at Viewb...

Silverlight DataGrid Combobox Newbie Question

Good Day, I am working on a datagrid in silverlight. I have a WCF service that returns a List that works fine when I populate a datagrid. CoreEmployee returns properties of EmployeeId, FirstName, LastName, HourlyRate, HireDate. This is my XAML of the hourly rate: <data:DataGridTemplateColumn Header="Hourly Rate"> <data:DataGridT...

Silverlight RichTextBox Anchoring of Content

I'm trying to find out how to anchor all of the content in a RichTextBox control to a particular location, for example: horizontal = center and vertical = center. I can horizontally align paragraphs, but not all of the content in the control itself (which anchors at top/left by default). It appears, from the documentation that <VerticalC...

Set silverlight Template from code?

How can i set the control.Template from code if my template is placed in an ResourceDictionary? ...

How to allow users to draw freeform rectangles in Silverlight 3.0 App

The functionality: Users can draw rectangles on a defined area of the screen, by clicking the left mouse button and dragging to create the desired sized rectangle. A similar example would be re-sizing a rectangle in BLEND. I am also open to options where the rectangle already exists, and users can resize using a drag/resize handle. Id...

How do I give the focus to a TextBox in a DataForm?

I've got a small DataForm and I want to set the focus on the first TextBox. I'm using the Novermber 2009 Toolkit. I've named the TextBox and tried using .Focus() from the DataForm's loaded event. I see it get focus for one cursor 'blink' and then it's gone. I'm trying to work out if this is an artefact of the DataForm or something el...

What is the best way to remove a layout element

I have a progress bar shown as I am loading images with the webclient object asynchronously. Once the images have been downloaded I set the loadingComplete bool property to True in my viewmodel to indicate that the loading process has been completed. Currently I am using this value for an attached property to set focus on a control. Wha...

Binding Custom Object Datagrid Silverlight 4

Hi and happy new year, I create an object Custom as you can see below public class GridViewModel { private List _listRowCust = new List(); public List ListRowCust { get { return _listRowCust; } set { _listRowCust = value; } } } public class RowCustom { private List<CellCustom> _listCellCustom = new Li...

Printing support in Flash

Hi, Is there is any printing support in Adobe Flash like the new one in Silverlight.net beta 4? ...

Silverlight 4 and Outlook 2010 Out of Browser

Dear StackOverflowers; How/what is the best way to access a user outlook while out of browser in Silverlight ? I'm looking for sample code to start making queries on a user e-mail box after the user installs a silverlight app. I know this busts most if not all of the silverlight security sandboxes, but installing elevates the app trus...

How to create silverlight sequence animation programmatically?

I need to animate a rectangle to move horizontally first, then after 2 second make it move vertically. All this should be done programmatically. Anybody can help me? Thanks! ...

Trying to track down a Silverlight memory leak that only happens in browsers.

This is an odd one. I am making a app that is kind of a game, and I wanted to have a shooting starburst effect. I made it one evening and it all worked well, until I noticed that my browser was eating over 300 megs of ram, eating 1 meg every 5 seconds, mainly when the starburst would happen. Here is an example stripped down to just th...

SLsvcUtil.exe proxy generated class does not inherit from INotifyPropertyChanged

hi guys, I been getting a really nasty error when updating a "Service Reference" for a WCF web service when using VisualStudio 2010 Beta 2 so I have switched to using SLsvcUtil.exe to generate the client proxy to use in my Silverlight 3 application. Problem is that I noted that before, when using "Add Service Reference" from within Vi...

Silverlight TextBox, moving caret position

Hi, I am trying to make a TextBox behavior for an on-screen keyboard, it can update the text in the textbox but I can't get it to focus the textbox and move the caret to the end of the text once it's done updating. I have tried using TextBox.Focus() and TextBox.Select() in both orders with no luck. Thanks for your time ...

Silverlight Toolkit ImplicitStyleManager and Databinding

I have a UserControl that is using the ImplicitStyleManager. Controls on this UserControl (like buttons) are correctly styling with implicit styles. However, buttons in a datatemplate in a databound ListBox control are not picking up the styles. I have tried setting the mode to Auto. Am I missing something? ...

Custom HttpHandler to block downloads of .wmv files

Hi I create a custom http handler to block download of .wmv files e.g. www.pakdev.net/videos/file.wmv (blocked by httpHandler). But the problem is that now silverlight cannot also stream these video files as they are blocked too. What should I do? ...

Why my binding does not update on UIElement.RenderSize or UIElement.ActualWidth ?

I'm trying to data bind a TextBlock to the RenderSize of a Rectangle. Here is the code. <StackPanel x:Name="root"> <Rectangle x:Name="rect" Fill="Green" RenderTransformOrigin="0.5,0.5" Height="100" Width="100" /> <TextBlock Text="{Binding ElementName=rect, Path=Width}"></TextBlock> <TextBlock Text="{Binding Elem...

How do I use a command line tool to install .net 4 to IIS

I'm trying to deploy my WCF RIA services application to our in-house server for testing. I've been following the instructions and comments from this blog site: http://timheuer.com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx At the end someone points to this question: http://stackoverflow.com/questions/1528324...