silverlight

Silverlight: Wrapping a non-DependencyProperty in a DependencyProperty

Hi, I want to be able to add a Binding to some properties of a DataGridTextColumn (i.e. Width, Sorting order, etc.), however it seems that those properties are not DependencyPropertys, so they can't be bound to. Another answer suggested subclassing DataGridTextColumn to expose those properties as DependencyPropertys, however I can't see...

How to add attributes to properties of a class generated (web service proxy)?

I have a Silverlight 3 application which gets data from a web service. When I add a reference to my web service, all the classes used by the web service are defined in a proxy class. So far, so good... Now, I would like to use the DataForm offered in Silverlight 3. To use that component, I must add metadata to my class (e.g. see code bel...

Get font name of odttf files generated by XPS document writer

I have pdf file using only 2 type of fonts. But when exporting the pdf to xps format, there are odttf files as many as glyphs elements in generated xps document. Now I want every glyphs with the same font type to have the same FontUri value. But how to identify if 2 odttf files is the same font type? ...

Unit testing silverlight where does this live?

Im tring to start unit testing with silverlight and some of the samples online use the following statements EnqueueCallback EnqueueConditional EnqueueTestComplete where do these live? ...

How to check if a dependency object contains a dependency property?

Essentially I want some simple reflection where I have an arbitrary DependencyProperty as a parameter. I'd have a special case (in an if statement, for example) if DependencyProperty is defined by / property of a PlaneProjection. I've done some simple fandangling of GetType() but no luck with the expected getters like MemberType. public...

add close button

How to add close button on the right top of the window in silverlight? ...

Silverlight 3 List box

Hi How to set the orientation of the List box in Silverlight i.e how to display the datas horizantally Thanks in advance ...

Silverlight 3 + RIA Services Data Commit Issue

Hello, I'm working on a Silverlight 3 app with RIA Services. I've got the app running but for some reason it's only reading data, not committing changes. Most of the online examples I've seen use Linq2Entities; we're using Linq2SQL (our data model is pretty good as-is without abstraction.) Here's a snippet of the Service: [EnableCli...

Pasting images into Silverlight

Hi Guys, I am looking for a way to enable my users to paste images into my Silverlight component (into a TextBox, I guess, or is there any better control for doing this?). From what I read on the internet, for security reasons, there is no clipboard access from code, except by using a JavaScript function that works only with IE. But w...

Silverlight RenderTransforms available to children?

I have setup a StackPanel with a set of controls. Each control is an instance of the same class. The control is also a stack panel and has another custom control in it. So: StackPanel: CustomControl1: StackPanel: CustomControl2: ListBox CustomControl1: StackPane...

WPF: Can I get the size of a UIElement AFTER a transform is applied?

In WPF/Silverlight, can I get the calculated value of a UIElement after a transformation is applied? (Per the comment below): I've got a stack panel and I've applied a TranformGroup to it. There are two translate and one scale transforms in this group. (warning, psuedo code ahead) groupTransform.children.add(new TranslateTransform())...

Image adding in silverlight

How to add images in Silver light? ...

SIlverlight 3 out-of-browser high DPI window size problem

My Silverlight 3 application looks perfect in and out-of-browser with DPI setting in Windows XP set to Normal size (96 DPI). After changing DPI settings to Large size (120 DPI) the application looks the same in browser but scales up out-of-browser. The problem is that when running out-of-browser the hosting window size stays the same r...

silverlight 3 datagrid x:name issue

I have recently uplifted my SL2 solution to SL3. I have a UserControl that contains only a datagrid: <UserControl x:Class="Case.CaseDataGrid_View" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:Syste...

how to fetch data from database?

how we can fetch the data from the database through Silver light? I want the basics only. because i am a fresher in silver light. ...

Is it impossible to put AutoCompeleteBox inside of DataForm?

I tried to use autocompletebox inside of dataform instead of TextBox. but I cannot see instance name of autocompletebox in the class file. BTW, If I put autocompletebox outside of dataform, I can see instance name of autocompletebox, "acbEmpName". So, my question is that Is it impossible to put autocompletebox inside of dataform? If so...

binding data into the List box

how to bind the data from the text box into a List box in Silver light? I have 5 text boxes and at the time clicking the save button, the list box will flll with the data that displayed in the text boxes. How it will be done in silver light? ...

Line with different solid colors, solidcolorbrush with gradient stops but without the gradients

In Silverlight (version 3 preview), I want to create a Line with different solid colors, so no gradients between colors. Basically I want to do the following: <Line X1="0" X2="500" StrokeThickness="10"> <Line.Stroke> <LinearGradientBrush> <GradientStop Color="Blue" Offset="0.5" /> <GradientStop Color="Red" Offset="1"/> </LinearGr...

Silverlight with WCF Doesn't Work in FireFox

I have a Silverlight app that is using WCF to connect to some services. The services are running as a windows service and are on a different port, so I have to use a client access policy file. In the WCF services there is a method for getting the client access policy. [WebGet( ResponseFormat = WebMessageFormat.Xml )] public Stream GetC...

Silverlight fullscreen limitations

Hello, When a Silverlight plug-in is in full-screen mode, it disables most keyboard events. They say it is for security reasons: is intended to minimize the possibility of unintended information being entered by a user What I don't understand is what is the difference of silverlight fullscreen or any web browser fullscreen? I...