silverlight

Protect link for public downloads

I've got SL application where i should implement file managment subsystem. I've got hierarchical structure of files\folders(just description). Also each file\folder has its own permissions to users\groups. I would like implement that one user who has permission to download file couldn't give it to another user, who hasn't this permission...

Silverlight custom control ToolTip not showing up each time

In a Silverlight application I have a custom control with a number of custom properties. In the declaration class of the custom control additionally to defining its properties as dependency properties, I define showing a ToolTip: public override void OnApplyTemplate() { base.OnApplyTemplate(); Border bordercntr = bas...

Silverlight. Bind style items to datacontext.

I have button with custom style and i want to bind style items to button datacontext. How to do that? My tries: <UserControl.Resources> <Style x:Key="ButtonStyle1" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <TextBlock TextWrapping="Wrap" Te...

How do i reset a DependencyProperty back to it's default value in xaml

question as above ...

Caml query to search in Sharepoint ListItem MetaInfo

Hello, I am working with Sharepoint Lists in Silverlight and I am trying to write a CAML query that returns me all list items (pictures) which where made (effectively taken with the camera) after a specific date. I found that the ListItems have a MetaInfo property called "vti_ct" which is exactly the date I need. The problem is that I d...

WCF RIA, Silverlight 4

I am working on a Silverlight 4 project. I am using WCF RIA on the server and expose the model using a DomainService. I have 2 tables, let's say Table1 and Table2 linked with Foreign key say FID. Therefore, i can Load data from both table 1 and table 2 in single data grid. But my question is while editing datagrid if i need to change ...

How to make control like background selector in standard WP7 settings?

I want to have control like standart Windows Phone 7 background selector in the settings. It's like ComboBox. But i don't see any existed control like this. ...

Is is Poossible To Deploy Silverlight Apps on Android?

Hello Guys I simply want to ask that is it possible to deploy Silverlight Apps on Android. ...

Silverlight DataGrid TemplateColumn adding problem with ComboBox

I am in little trouble with this problem. I have made a DataGrid and it have DataTemplate Columns. here is the XAML for that <data:DataGrid x:Name="PortsGrid" Height="124" Margin="23,0,17,2" VerticalAlignment="Bottom" ItemsSource="{Binding PortsGridData, Mode=TwoWay}" AutoGenerateColumns="False" SelectionMode="Single"> <data:Dat...

Adding authentication to a Silverlight 4 RIA services application (not the business template)

I started a Silverlight 4 RIA Services application with the Navigation Application template, instead of the Business Application template. Now I want to add authentication to that application (to protect a page from unauthenticated users) I've added an AuthenticationService to the project, but I'm not sure what the steps are now to get...

Triggering Silverlight Prism command with a keyboard shortcut

Hello, Does anybody know whether one can trigger prism command with a shortcut? What I mean is I want to be able to define binding of a command to keyboard shortcut in declarative manner, like ClientUI does: Are there any opensource libraries for that purpose? Or maybe code samples? I found this question but I don't think that it an...

Silverlight Asp.Net project integration

I added a Silverlight application to my ASP.NET website. Visual Studio made a new silverlight project and added its xap to the ClientBin folder under the project of my website. So both the projects are under one solution. My Silverlight app is supposed to read an xml file and I was unable to make it access the file from the client bin f...

Style for Textbox Silverlight

I want to make a simple style for the textbox. I want to retain everything about the standard textbox look and feel except one item. OnFocus on want to be able to change the border color of the textbox. I have written the following and it does work. However, everything is restyled, I have to declare height, the look and feel of the no...

Silverlight canvas scrollbars

I have read that placing a canvas inside a scrollviewer won't work because the canvas does not report its size. I have been experimenting with different containers (borders, grids, canvases and scrollviewers) and could really do with a simple explanation of how scrollviewers behave within nested containers. e.g. If I have a container h...

VB.NET version of Silverlight Business Application template won't compile

I just installed the latest Silverlight 4 developer bits using the Web Platform Installer. I tried to start a new "Silverlight Business Application" project in VB.NET, but the project won't compile out of the box. For example, I get an error message to replace WebContext with WebClient. What might be the problem with the Silverlight B...

WP7 - Controls - Criteria to decide which class to inherit from - UserControl or ContentControl or Control class

Hi, I am developing controls for WP7 application. I am aware that I can quickly create control by inheriting from UserControl class (that derives from Control class). Also, that such controls cannot be customized, i.e., all the properties associated with control are those harcoded in user control - they cannot overridden in xaml etc. But...

Silverlight scaletransform adjust scrollbars

I have the following UI element hierarchy: UserControl>ScrollViewer>Canvas. I am drawing lots of stuff on the canvas, and it becomes larger than the UserControl, at which point the ScrollViewer displays the scrollbars. So far, so good. Now I apply a ScaleTransform to the Canvas (say, 2.0, making everything twice as large). However, m...

MVVMLight Multiple Listbox Selection

I have an ItemsContol bound to a Country model - which look like this. Country --int Id --string Name --List Counties In the DataTemplate of the ItemsControl there's a Listbox - which is bound to the Counties property. So what I want is only one item in any of the listboxes be selected at any one time. For example: I have an it...

Running a Silverlight Application

I have a Silverlight Application (3.0) that I have made changes to in Visual Studio and I can debug the application just fine. My question is what are the steps in getting the application to run through IIS? Visual Studio's project folder for my app is called SilverlightApplication and within that folder it has another SilverlightAppli...

Unable to load an external image in Silverlight - "ag e network error" exception

Hi, I'm using Silverlight 4 and I'm experiencing the following problem: First off, the code: BitmapImage bitmapImage = new BitmapImage(); bitmapImage.CreateOptions = BitmapCreateOptions.IgnoreImageCache; bitmapImage.DownloadProgress += new EventHandler<DownloadProgressEventArgs>(bitmapImage_DownloadProgress); bit...