I have my own TextBox2 class that derives from TextBox. I want to add a state called TextBlock and I want the VisualStateManager to go to that state when the IsTextBlock property/dependency property is true. When this is true, I want to change the style of the text box to be readonly and look just like a TextBlock but be able to select...
Hello
I have created a Silverlight 2 appliction, that uses a WCF service.
The service is located in a local folder (not IIS) and works fine with a Winforms test.
when I try to call the service, it returns with an error: " no pocily for cross domain".
I've tryed to add clientaccesspolicy.xml and crossdomain.xml to:
the wcf project fol...
Analysing log files I've noticed that ~1% of service calls ended with TimeoutException on the Silverlight client side.
The services (wcf) are quite simple and do not perform long computations.
According the log all calls to the services are always processed in less that 1 sec (even when TimeoutException is occurred on the client!), so it...
The docs for Silverlight's IsolatedStorageFile.GetUserStoreForApplication just say that the isolated storage is specific to the "application", and that each different application will have its own storage independent of all other "applications" (but with one quota for the entire domain).
That's great, but I haven't found anything yet th...
Imagine i keep the below code in button click...
if(condition==true)
{
Panel1.Visibility = Visibility.Visible;
Panel.Visibility = Visibility.Collapsed;
}
else
{
Panel.Visibility = Visibility.Visible;
Panel1.Visibility = Visibility.Collapsed;
}
works for the first time and then one of the panel collapses but the other panel doesnt beco...
I normally use StructureMap.dll (from MvcContrib) for dependency injection in .NET.
Is there an equivalent for Silverlight, or any tools anyone uses? I can do it by hand, obviously, and it's not difficult. But I wondered if there was something formalised like StructureMap but for Silverlight.
...
I've created a WCF service and added it to an existing Silverlight application that I am working on.
When I run the silverlight application in debug mode it fails when I reference the WCF web service.
Unrecognized element '' in service reference configuration. Note that only a subset of the Windows Communication Foundation configu...
I can either have the data elements in the viewmodel (partial code):
public class PersonViewModel : INotifyPropertyChanged
{
public string FirstName
{
get
{
return firstName;
}
set
{
firstName = value;
OnPropertyChanged("FirstName");
}
}
public string LastName
{
get
{
return lastName;
}
set
{...
I need to make sure certain essential data are loaded before a module is loaded and shown on screen. considering the async nature of data loading in silverlight, I was wondering if there is a pattern I should follow to load my data (like an event on the module or the bootstrap to hook into, or a method to override)...
...
I'm attempting to use a large number of short sound samples in a game I'm creating in Silverlight 2. The samples are less than 2 seconds long.
I would prefer to load all the audio samples onto the canvas during the initualization. I have been adding the media element to the canvas and a generic list to manage it. So far, it appears to...
Hi folks,
I've got a simple ImageSource silverlight control which i have on my canvas. Works fine. Is there any way I can extract the content of an ImageSource to a byte array?
cheers!
PS. Any version of SL will be fine.
...
Hello!
I'm using the lastest version of Silverlight 2.0 within Visual Studio 2008. I have a simple Silverlight UserControl with the following code:
public partial class SilverlightControl1 : UserControl
{
public SilverlightControl1()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(SilverlightContr...
I'm looking for a solution for capturing audio from a user's microphone and posting it (preferably as MP3) to a server. I need something that I can embed in a web page.
I've seen where Flash can do this, but I understand that this approach requires expensive server-side software from Adobe. I'm not aware of whether Silverlight may pro...
I'm working on a SQL Server 2008 Express + silverlight project, and so far things are working pretty well on the local machine. I've set it up to where the silverlight app connects to the SQL Server using a service reference and LINQ, and I believe the SQL Server allows remote connections with TCP/IP.
However, since the silverlight app ...
I am attempting to create a long range calendar that dynamically loads (and unloads) event data as the user scrolls left or right through time. I'm really struggling to figure out how to lay the basic framework of the UI out and how to dynamically build the interface as the user scrolls by clicking and dragging the mouse in the view area...
How do you determine the width of the text in a WPF TreeViewItem at run time?
I need to calculate an offset so I can draw a line from one leaf to the leaf of a different TreeView. All the 'width' properties return a size that is way bigger than the space taken up by the actual text of the node. It must be possible because the Select f...
At the moment I'm developing a web based application using Silverlight 3.0. For the business rules I'm looking for a rules engine that's both easy to use for me and my users, which will work with SL3. Is something like that available out of the box or will I need to roll my own?
I've Googled and looked around the various code sites (Co...
I'm trying to use Prism and the MVVM pattern to develop an application. In my UI, I have a previous and next button defined. For use in a calling web services, I've defined an enum that will tell me the direction I need to traverse. So, in this instance, the buttons map directly to an enum value. The enum definition is very simple a...
Please tell me the basic and quick way to bind a Collection(List,etc) to a combobox and handle the selection changed event and get the selected item.
...
I work with a team that uses Behaviour Driven Development(BDD) to deliver our applications. We have started delivering Silverlight applications.
I would like to associate the agreed BDD Scenarios written in plain text to the results of the automated tests for our silverlight application. So when a scenario is met in the application th...