silverlight-4.0

How to set a default value which is bound to another value for the combobox in datagrid

Hi I have a datagrid which has one combobox column. -the itemsource of the datagrid will be bound to the data from the database through RIA WCF -the itemsource of the combobox which is inside the datagrid will be bound to the ListFinancialAccountType property which is a collection of Financial Account Types (also retrieve through RIA W...

Calling Office Communicator via Silverlight Out of Browser

I need to invoke office communicator to create a chat window and phone call directly from Silverlight when running out of browser. When running in browser I do this and it works pretty well: System.Windows.Browser.HtmlPage.Window.Eval(String.Format("window.open(\"sip:{0}\", target=\"_self\");", sip)); When running out of browser as f...

Can I buy a Context Menu control for Silverlight?

I've been looking for a ContextMenu control for Silverlight. There is one from Microsoft, but it's severely crippled (you can't add/remove things at runtime, does not support submenus, etc...) I've looked at the commercial components from Telerik, ComponentOne, Infragistics, etc... and they provide the features I am looking for, but t...

Docking of Silverlight Controls

I've read this question, but still, it explains how to dock controls within DockPanel. How does one dock the DockPanel within the window? As you can see, the Map control is docked to the DockPanel, but the DockPanel is not docked to the window. What am I missing? ...

Silverlight 4: how to display list of custom controls (not in list order)

There are following object: 'FieldItem' custom control; 'Field' - ... XAML-object, which will contains a dozen of field items; FieldItemViewModel - data class that hosts data to be displayed with 'FieldItem' custom control; position of 'FieldItem' control depend from data entity parameters that is bounded to the control (X and Y); item...

Silverlight datagrid to buy

Hi I am looking for a SL DataGrid to buy that deals with a few main issues that I found annoying in the regular toolkit control. I am not using RIA or WCF Data services. I intend to perform the actual paging in the SQL query. I just Need a control that will let me override the functionality of its pager.In other words - let me insert ...

How to have an enum value in CommandParam in XAML

I have the following enum that represent a state of UI (I use it to enable and disable UI elements): enum Mode { EDIT, RUN, REVIEW } I would like to pass Mode.EDIT to command in CommandParam: <Button Grid.Column="6" VerticalAlignment="Top Command="{Binding Path=ChangeMode}" CommandParameter="{StaticResource local:Mode.RUN}" /...

Handling events from Word using dynamic com interop from C#

From Silverlight 4, it's pretty easy to start Word and let the user do something: dynamic word = System.Runtime.InteropServices.Automation.CreateObject("Word.Application"); word.Visible = true; word.Documents.Open("test.doc"); MS Word exposes a Quit event[1]. I'd like to handle this event, but for the life of me I can't figure out how...

How do I make endpoints compatible with Silverlight 4?

I added a service reference to my project and the following warning appears in my error list... " Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. " How do I create SL4 compatible endpoints? Why is my cu...

Showing a cross-fade (or other) transition when changing a control's content

I have a Silverlight control with a Content field. I'd like to be able to programmatically switch the child control that appears in that field, and to show an animated transition between the old content and the new. What's the best way to accomplish this? ...

Silverlight 4 - does install require administrator privileges?

I'm trying to figure out if installing the Silverlight 4 client requires local administrators rights. Some pages seem to indicate that it does, but others that it doesn't. I've had already seen this question: http://stackoverflow.com/questions/1529130/are-local-admin-rights-required-to-install-silverlight However, I'm asking against ...

how to move text from one posion to another position in silverlight?

hi, i want to display the textbox text in animated way.how to move the text from left to right in silverlight? give me some samples for animation to controls in silverlight. ...

Can individuals digitially sign Silverlight OOB apps for public release in their website name?

I have read all the blog posts on digital signing and checked out GoDaddy, Thawte and a couple of others. All of these say that you need to be a registered company and have official documentation and proof on incorporation etc. I don't have any of that - I am a Sole Trader based in Australia who runs a social network (PokerDIY.com) for ...

Can`t find the parent of a control which is in another page of a different project from source code

Hy, Can someone tell me how can i find the page parent of an element in Silverlight 4. The element is in a page of a Project2 (is a userControl), and i want to find that page in the codeSource of the ControlElement. The code which i use now is this (this code is in control): Project1.MainPage pageM = Application.Current.RootVisual as Pr...

Converting file formats (PDF to TIFF?)

Hi guys an easy one here, What are some of the better converts out there which work well and what are the drawbacks of doing a conversions if any? Loss of quality/res/anything? ...

How to properly use a Subclassed silverlight control?

Hi guys, I created this class where I wanted to override this specific event for the content control. public class MyContentControl : ContentControl { protected override void OnKeyUp(KeyEventArgs e) { //do something //.......... e.Handled = true; } } However when I am using this control in my XAM...

How to pass two parameters to ViewModel class in Silverlight?

I am studying to use MVVM pattern for my Silverlight application. Following code is from xaml UI code : <Button Width="30" Margin="10" Content="Find" Command="{Binding Path=GetCustomersCommand, Source={StaticResource customerVM}}" CommandParameter="{Binding Path=Text, ElementName=tbName}"/> <TextBox x...

how to bind to control inside expanders' contentemplate

I have a textbox inside a Expasnders contentemplate that I'm trying to bind to from outside the expander, but it's not really possible, I have another textbox inside the expander looking like this: and an exact duplicate of this markup outside the expander, The textbox inside the expander updates it's text proeprty when txtTitle is ch...

asp.net with sl4 content?

Hi, We have an app template we've created in asp.net 2.0 that we use for our web apps. It has a header that hosts a couple controls (like a drop down for customer selection) and a language dropdown. It has a footer that's pretty static. In the middle is the content portion of the masterpage. Talk has come up as to whether we can make the...

How to download js file with webclient

I have a javascript -> c# array parser that I would like to feed with some .js files from the internet, so what I'd like is to download those files and have the interpreter run them through. Only problem is that I can't do this since there is no crossdomainpolicy on the sites that I dl from, but I don't get why that should be an obstacle...