silverlight-3.0

Accessing other controls by name in a Silverlight ControlTemplate

I have a custom control that inherits from ContentControl. Inside the generic.xaml file is a simple Grid with 2 rows: Row 1 - A toggle button Row 2 - A StackPanel with a TextBlock, named "Stackpanel1" The ToggleButton has its own nested ControlTemplate which has VisualStates for Checked/Unchecked. Is it possible to reference "Stack...

Using Silverlight with Existing Application

This seems like a very basic question but I couldn't find any help on web. If you could provide some link or steps to do this. I have created few basic Silverlight applications which are working fine standalone. I also have a basic ASP.NET application with a solution with around 10 Class Library Projects and 1 website. I want to create ...

silverlight 3 and System.Core.dll version

I have a Visual Studio 2008 solution with several projects. One project is a web site with a Target Framework of ".NET Framework 3.5". One is a Silverlight 3 Application which was created with the selection (in the dropdown) of ".NET Framework 3.5". I notice that if I wish to add a reference to System.Core.dll to the website, I am p...

Cursor on Path doesn't appear in SilverLight

I am trying to draw a circle with a glass effect using Alpha. I am successful in creating that by using the below XAML. The cursor changes to Hand for the Ellipses, but it doesn't affect Path. Basically, I want to show "hand" cursor wherever the mouse appears over the circle. I hope this is not a known issue and I am missing something sm...

Pass Data From asp.net application to SL application at different hosts

Hello everybody. I've got two web independent applications: ASP.NET www.site1.com and SL(3) app www.site2.com. How can i pass some data(id,strings) from asp.net to SL app. I was thinking about cookie, but I can't write cookies to any site. So is there any way to do it? ...

How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)

Hi, I have a Mediaplayer control on my XAML page like below: <CustomMediaElement:CustomMediaPlayer x:Name="custMediaElement" VerticalAlignment="Center" Width="600" Height="300" Visibility="Collapsed" /> Now I am ble to set the playList by using setPlayList() method like below: priv...

Silverlight DatePicker in DataGrid: Enter does not submit

I have DataGrid with DataGridTemplateColumn which has DatePicker as editing element: <data:DataGridTemplateColumn Header="Due date" CanUserSort="False" > <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding EndDateFormatted}" /> </DataTemplate> ...

why "Library caching" is disabled when "Out of browser" is enable?

why "Library caching" is disabled when "Out of browser" is enable in silverlight projects? i can choose only one at a time! why!!!? ...

Silverlight 3 custom control: only 'int' as numeric type for a property? [e.g. long or int64 seems to break]

Hi, I'm trying to add a new property to a Silverlight 3 custom control of mine. An int property works perfectly, but if I change it to a long or an int64, I've got a xaml parser exception on runtime. Do you know if it's a known restriction in SL3? C# side, new control: public class myExtTextBox : TextBox { public int MaxNumericVa...

Silverlight Toolkit - Rating Control

This is my first silverlight Application. I am trying to use Rating Control from 3.0 Toolkit with VisualStudio 2008 Here are the problems: I am unable to see designer view after adding Rating Control and few other controls. I am not getting any errors or warnings on markup or while compiling. Trying to access Property window for any ...

MouseLeave LostFocus events Silverlight

Hello! I'm writing a Windows phone 7 Silverlight Application. and i have to set Visibility of my Stackpanel to Collapsed when mouse leaves this control. But this event occurs even if i simply click on my control without mouse movings. Lost focus event doesn't work too. How to achieve my goal? Thx in advance! ...

Equivalent of Path.BitmapEffect in Silverlight

Hi, While I copied the XAML code from a WPF Pageto my SilverlightPage I found out that few of the prpoorties are not supported in Silverlight , mentioned bwlow: <Path.BitmapEffect> <BlurBitmapEffect Radius="2"/> </Path.BitmapEffect ClipToBounds="False" SnapsToDevicePixels="False" Can any one please help with the Silverlight Equi...

How to Call an Event of Control that is present inside a Custom Control?

Hi, I have a Custom Cntrol that has a button inside it. Now I want to access the button click from my Application Page. ...

SL3/SL4 - Ado.Net Data Services Error during new DataServiceCollection<T>(queryResponse)

Hey all, I have two functions in a SL project (VS2010) that do almost exactly the same thing, yet one throws an error and the other does not. It seems to be related to the projections, but I am unsure about the best way to resolve. The function that works is... public void LoadAllChunksExpandAll(DataHelperReturnHandler handler, string ...

window.open("c:\test.txt") from Silverlight

I'm trying to open local file from Silverlight. I try Window.Navigate("c:\test.pdf", "_blank") and invoking JavaScript like this: window.open("c:\test.pdf", "_blank") Both give "Access is denied". However it works in plain HTML when I do <input type="button" value="test" onclick="window.open('c:\test.pdf', '_blank')" /> I...

Can I have two different Styles in a CustomControl

Hi, Can we have two different styles in generic.xaml setter template Property Something like: <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="local:customLocalFolderButton"> **<----Style 1---->** </ControlTemplate TargetType="local:customLocalFold...

Unable to Edit the Style of MediaElement

Hi, I am trying to create a Custom Media Element , but While trying to do so , I am not able create the media Element. ...

Silverlight 3.0 Custom ListBox DataTemplate has a checkbox, checked event not firing

The datatemplate for the ListBox is set dynamically by XamlReader.Load. I am subscribing to Checked event by getting the CheckBox object using VisualTreeHelper.GetChild. This event is not getting fired Code Snippet public void SetListBox() { lstBox.ItemTemplate = XamlReader.Load(@"<DataTemplate xmlns='http://sch...

Drag and Drop from Silverlight to WPF

Hey guys, I'm wondering if anyone has been able to Drag some item (let's say an image with an id) in silverlight and drop it in a listbox in WPF. If you have please help ;) Thanks, S ...

Value is out of Range Exception While setting ResourceDictionary Source to CustomControl's generic.XAML

Hi, I have a custom Control which contains the generic.xaml inside the Themes folder. I have set the build action to Resource. Now from App.xaml I am setting the reference to the DLL by using : xmlns:localFolder="clr-namespace:customControl;assembly=customControl" After the reference is set I am trying to Merge the Resource diction...