silverlight

c# source obfuscation techniques

Hey all, I'm looking for ways to obfuscate the following c#/silverlight source code: if (searchBox.Text.Equals("string literal")){ MessageBox.Show("another string literal"); } So far all I can come up with to hide it is encoding the strings as arrays of ascii... Thanks EDIT All I want is for the source code to be un...

Showing custom tooltip?/Popup when hovering over an object in Silverlight

How can I go about getting similar popup/hover/tooltip (see image below) when I hover or click on an object in my Silverlight app? Update: (added bounty) I am looking for a control which can drop a shadow and show the arrow. I want like 3-4 lines of data which I can pass in as the control's properties. ...

Public facing complex business apps on Sharepoint 2010 (or 2007)

I would like to see some public-facing sites or complex business applications built on top of SHarepoint 2010 (or at least 2007). They can either use Sharepoint's look'n'feel or have a completely custom one. If they're using Silverlight in heavy doses even better. ...

Record audio from web page and upload to server

From a web page, I'm looking to record audio from the user's microphone and then upload the file to a server to be stored as an MP3. My solution is built using .NET. Most similar apps that I've seen use Flash on the client and presumably Flash Media Server on the server. We don't have the kind of budget for FMS. I'm looking for a fre...

How to show the excel file data in a silverlight appliction?

I am new to the Silverlight, I found a video by Tim Heuer here which is a really simple way to do this from a .dbo databasae. My question is is there a simple to read the data in a excel file, and binding to a sliverlight application just like the video show. What I want is to show some information in the excel in a silverlight applica...

Bind a Silverlight Datagrid to Excel XML FIle

Hi, I am trying to pull the data from an Excel File that has been saved as XML and bind it to a Silverlight DataGrid. I am following a tutorial that I found on the web, but I cannot get the desired results. using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using...

Content generated from ContentTemplate does not have DataContext of Silverlight ContentControl set

In my Silverlight 4 application, I have a ContentControl with its ContentTemplate property bound to a property in the data context. That works fine. However, the content of the template once rendered has its DataContext set to null. I would like the content to inherit the same DataContext as set for the ContentControl. Is there a way...

Silverlight 4 MediaElement Source Uri problems

I am having issues with setting the Silverlight 4 MediaElement Source property in my ASP.NET MVC 2 application. I have a Windows 7 development machine and a Windows Server 2008 staging server. Locally I have been using a MediaElement source like: <MediaElement x:Name="VideoMediaElement" Source="Assets/126.mp4"> ... </MediaElement> Th...

Can I run my .NET app offilne using the Silverlight UI?

I'm working on an interface for an app that I run locally (this needs to be able to run offline), and I want to use Silverlight's UI. I use certain references (specifically, Microsoft.Win32) in my .NET app which are not supported by the Silverlight framework, however. I want to not only use these assemblies, but somehow put a Silverlig...

Trading Platform built on Silverlight?

I've had an idea for some time now to write a trading platform application similar to think or swim in Silverlight. First of all is it something that one person can do in a reasonable time-frame? Ok next question is how would the performance of the Silverlight be running such a memory intensive application? Will it scale? Nearly all t...

Master Page with an Aspx page containing Silverlight App

Hi, When creating a new Silverlight App, VS2010 generates the following page with the aspx extension <%@ Page Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="s...

How to prevent Silverlight RIA Entity getting attached to datacontext before i'm ready

I have a Silverlight 4 application for a simple 'TODO' list. The problem I'm having is that databinding is hooking up relationships on my TODO object, which causes the RIA data context to add it to the DataContext.TODOs list before I want it there. I want to treat the object as new and detached until I'm explicitly ready to add it to th...

Writing a webapp for creating presentations

I need to write a webapp similar to Google Presentations, but with lot fewer features (single slide; no effects, just editing styled text; images and shapes), for a specific requirement. I am undecided whether to do it in HTML/JavaScript or in Silverlight. I rate my skills as: C# - Advanced HTML/JavaScript - Intermediate Silverlight ...

Double Animation item detection

I'm currently writing a marquee control for WPF. The control consists of an ItemsControl, with TextBlock as the DataTemplate element of choice. The ItemsControl is the target of a Double Animation, which manipulates the Canvas.Left property. What I would like to do is create a "circular mode", which will allow the marquee to dynamicall...

how to display CCITT Group 4 tiff files in silverlight?

According to "How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?"(sorry cannot post links here yet) trying to port LibTiff.NET library to Silverlight, but failed. Will be very grateful if someone explain me how to remove unsupported by silverlight without losing opportunity decompress CCITT...

Silverlight application running on FF gets CommunicationException during accessing a web using WCF through SSL, but not IE nor Chrome

Hi, I know this exception is pretty popular for SL and WCF developers since I saw tons of posts asking solutions, but I can't find a similar question to my situation, so could anyone help me? I have a SL app which uses the WCF accessing an IIS 7 through SSL. Basically it works well, but when I run it on FireFox3.6.6, it gives me the Co...

Rendering Two rectangles in a canvas in silverlight

Hi I have added canvas in the xaml file. From code iam creating two rectangles and adding it to the canvas. Here the size of both the triangles are same. When I run the application both the triangles are coming one upon the other I mean they are overlapping. But when I add them to a Stack panel they are coming one after the other? Can a...

Silverlight: Determine which control initiated drag'n'drop

Using the drag'n'drop features of the Silverlight 4 Toolkit, I have a drag'n'drop enabled Listbox where each ListboxItem can be dragged/reordered up and down. Each ListboxItem contains several controls (TextBlocks, TextBoxes and Buttons) and my problem is that when I click the buttons within a ListboxItem, I will occasionally initiate a...

How to use Default Silverlight 4 Context Menu AND custom context menu?

This is what I would like: I want to keep the Silverlight default menu options and build up my own global rightclick context menu. I added the menu to my mainpage .xaml and made my custom menu (you can see the live version here) - this works fine (it currently only has "Resize to fullscreen"). This then suppresses the default Silverlig...

Using generic collections in Silverlight user controls

There is an interface: public interface IFoo { } A Silverlight user control has a collection of IFoo instances: public ObservableCollection<IFoo> Items { get; set; } There is an abstract class that implements the interface: abstract public class Foo : IFoo {} And a class that further derives from that: public class DerivedFoo :...