silverlight-4.0

Type conversion from IronPython.Modules.PythonDateTime to System.DateTime

I'm hosting an IronPython engine instance in my C# (Silverlight 4) app to execute some Python scripts on the fly. These scripts can return values of either IronPython.Modules.PythonDateTime+datetime, IronPython.Modules.PythonDateTime+date or IronPython.Modules.PythonDateTime+time types. I need to convert these to System.DateTime values i...

How to attach EventTrigger in code behind in Silverlight 4

Hi, My question is the following: I have a grid and I attached the SelectedIndexChanged event the following way in the xaml file: "<cc:DetailViewGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dgAcitivityList" VerticalAlignment="Stretch" ItemsSource="{Binding EntityList}" SelectionMode="Single" Is...

Silverlight 4: Property not refreshing by INotify

HI , I am going to upgrade our applicaiton from silverlight 3 to silerlight 4. and also from telerik 2009 to 2010 (Which supports silverlight version 4). There is one strange problem is coming. I have one property like public ObservableCollection<FunctionalityDto> CurrentActivities { get { if (curren...

PropertyChangedEventHandler PropertyChanged is null

i am implementing PropertyChangedEventHandler PropertyChanged and it's always null. property string is right donno where is the problem here is the code i am using public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChangedEventHan...

Printing multiple pages in Silverlight (4.0)?

I'm trying to print a grid that would comprise multiple pages from Silverlight 4. The grid consists of a 'header section' (another grid with date, image, etc) setup as I needed it to look and a ItemsControl with a data template who's item source is set to an observable collection of objects. All I set in the code so far is PageVisual (...

Error in opening Silverlight 4 application thorugh aspx page in XP

Hi, I created a silverlight business application on VS2010 in my Win7 virtual PC. I only added a button to home.xaml..rest everything else is untouched in the template's code. I deployed the application on IIS 7 and when I try access it on win XP machine..I get an error "Unhandled Error in Silverlight Application" code: 2105 After a b...

Launching a Silverlight App from a desktop app and vice versa

I have been asked to investigate the possibility of launching our companies current desktop app from a silverlight app we may develop. Would it be possible to launch a desktop app from a silverlight app (both in browser and out of browser) and vice versa, i.e. launch the silverlight OOB app from the winforms desktop app? If so, how would...

How wrap image around cylinder in Silverlight

Hi all. I am trying wrap image around cylinder in silverlight. I looked a lot in Google but don't found anything. As I know it can be done with pixel shader, but don't know how. Is it possible? Thanks. ...

events doesn't work with the InvokeCommandAction

i am using a webbrowser control and interaction-triggers , and there is some events which don't work like ScriptNotify and LoadCompleted is this an limitation or there is something i should do Thanks ...

SilverLight Elevated Privileges

What are the capabilities of an elevated privilege OOB Silverlight Application? How low down is it able to communicate? I.e can you get to FileSystem areas, MAC addresses etc? The reason I ask is that I am looking at creating a security model for a Silverlight Business app, that would disallow one registered user installing the app on mo...

SL 4 -- Force redraw of visual tree

Our application has a number of objects on a canvas; the canvas is contained in a scroll viewer. We also have a slider control and some buttons, always centered at the top of the window. I am trying to print the application by capturing a bitmap of the app, but without any 'decorations' -- slider, buttons, or scroll bars. _sc...

How can I run some code when a SilverLight OOB Application is uninstalled?

Is there any way to add some code to fire when an OOB silverlight app is uninstalled? I would like to fire something to my webservice when a user uninstalls the app, is this possible? ...

returning a machine Unique key from OOB Silverlight App

Is there anyway to return a machine specific identifier from an out of browser SilverLight 4 App? This is to stop people installing my product with one licence key, and then copying the files onto someone else's machine. Normally MAC address would be the way to go, but I don't think you are able to do so from SilverLight. ...

Change RadWindow style

Hello, How I make to modify style or color of RadWindow? Im using SL4 and telerik latest binaries which is compatible with SL4. Thanks in advances Bhushan Deshmukh ...

XamlParseException occurred: Failed to create a 'System.Windows.Style' from the text 'PhoneMasterGridColumnHeader'.

I have four datagrids on a Silverlight 4 page. I'm trying to set different column header styles for each grid. I found this XAML which works when I embed it in each DataGrid inside <sdk:DataGrid.ColumnHeaderStyle> tags: <Style TargetType="primitives:DataGridColumnHeader" > <Setter Property="Template"> <Setter.Value> ...

Initializing a viewmodel

Something that continues to confuse me about MVVM - if I use the view-first approach to constructing my objects (this appears to be the most common approach, at least after much reading and searching), how do I get contextual information into the viewmodel? I've seen many answers to similar questions say "use the DI container to inject ...

Using SharedResourceDictionary in Silverlight

Christian Moser provides on his page a SharedResourceDictionary for WPF so that resource are only initialized once. I´ve tried to use this ResourceDictionary in my Silverlight 4 application, but i´m getting COMExceptions in Visual Studio or a message that the element is already a child of an other element. Has anyone successfully used ...

Run time Data Form!

hello , i have a table which contains details of the form contents , here are the details InputType ( value = Text / Radio / CheckBox , .... ) IsRequired ( True/False) OrderedAnswers ( contain options available for Radio / checkbox ) .... what i want is , make a page at run time which contains respective controls and the page sub...

silverlight 4 - expander - UI virtualization

I have a silverlight application that is showing some data nested in expander control. So I have 1 expander for root element and then some textBoxes and expanders for content. All thing together looks like a big tree. And all works great with low number of elements to show. But when I have huge data (like 2000-20000 elements) to disp...

RichTextBox SelectionChanged firing twice!

hello, the richtextbox's SelectionChanged is getting fired twice . basically the issue is , i am getting the font of the current selection inside this event , here is the code . private void rta_SelectionChanged(object sender, RoutedEventArgs e) { if (rta.Selection.GetPropertyValue(TextElement.FontSizeProperty) is double) ...