I understood your point and tried to modify the source path. However I am wandering that when I am trying to Register the System.Web.Silverlight why I am getting that warning and error. Element Silverlight is not a known element. Web.Config File Missing and all those stuffs.What I have understood from the link you provided earlier is that there are two controls already shipped with Silverlight 2 SDK. i.e.
Meadia Control and Silverlight Control.

Since this Silverlight Control is not shipped by default with Silverlight 5 SDK I was thinking of that way out. Can you suggest about modifying the web.config file ?

What's the preferred way to add an event -> ICommand mapping from within a style. I know I can do this use the i:interaction stuff *IF* I'm re-templating. In my case, I do not want to re-template. I just want to add an event handler through the style (because the base style must remain generic). There is no "root" UIElement to add to either. Specifically, I'm trying to handle an event thats coming from the TreeViewItem in my VM. I template the TreeViewItem in my UI Library, but I can't have app specific stuff in there. Don't want to copy the styles over because they are quite large and they really need to remain in the UI library so I don't have to maintain 2 copies.

I've seen some mention of attached behaviors, but it seems like you can only add a single attached command through a style??

We're using property grid object in the September release of the Extended Toolkit. We can't upgrade to the latest because they changed some stuff that will break our code. I don't remember exactly what it was, so don't bother asking.

In any case, we have a couple of properties in an object that have the ExpandableObject attribute set. We have an editor template defined that works fine until we try to use it with an ExpandableObject's property. In once instance (a color editor), the template doesn't visually appear at all. In the other (a number up/down), it doesn't appear to be obeying the Min/max values specified in the XAML. Again, BOTH of these templates work fine as long as the property isn't from an ExpandableObject.

Can anyone provide insight?

The docs for the toolkit quite frankly suck as much as documentation can suck, and info regarding the toolkit on the web is - to be kind - sparse.

".45 ACP - because shooting twice is just silly" - JSOP, 2010-----You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010-----"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

I see the same rendering behavior (With some black splashes when resizing) And when VS2012 not responding the real title-bar appears again over WPF's and not outside . Which is what WindowChrome does , Providing drawing on non-client areas .

But then i thought that it's impossible to make a drop-shadow effect outside of WinAPI's drawing area .. But seems that they actually success , Interesting .

SO , Did they used WindowChrome or something else ? I really want to know .

Hello,
I have a general question:
I'm building a WPF application.
I have a main window, in the window i have some constant header and footer and between them there is an area with changing content(work area).
During application lifetime different controls created inside the work area and the controls creates small windows.
I ran into a problem when i wanted to send an event from one of the windows to some control,the problem was that the window didn't have a reference to the control.
So i started to think maybe i did some bad design work and there is some way to create and manage my multiply controls and windows so the interaction between them will be easier.
Any one can help me with this one?

I have a project which was in .NET 4 , i used VS2010 on it. I later opened the Project in VS2012 and Build everything that build well in VS2010 , but it gives me some error relating to accessing the WCF functions. now in .NET 4 , we can create our service and reference it on the SIlverlight project like this

AuditSystem.DataLayer.DataAccessLayerClient business = new AuditSystem.DataLayer.DataAccessLayerClient();
business.GetAllUsersAsync();
business.GetAllUsersCompleted += new EventHandler<AuditSystem.DataLayer.GetAllUsersCompletedEventArgs>(business_GetAllUsersCompleted);

but now in VS2012 this does not look like its possible. After my upgrade to VS2012(4.5) my project does not build

Can one explain why ?

Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

I am asking this in the WPF forum because this is a WPF app but this question does not necessarily pertain to WPF, i.e. the UI thread.

Here is the scenario:
I have three (3) threads. Thread One (1) call it the Master Thread; Thread Two (2) is a Ethernet Comm thread; and Thread Three (3) is a GPIB comm thread. Both communication threads handle asynchronous communications from remote entities. At this time there is only one entity hanging off each comm type.

I have implemented a mix of EventWaitHandles and delegates. This all works pretty well. Just think this architecture is a bit ...... ugly. So which one is better/safer?

My concern is as follows. With delegates, for example, the Master thread registers an event handler with Thread 2 and an event handler with Thread 3 for messages that come in. Obviously data could come in near simultaneously. So Thread 2 encases a message in an EventArg and invokes the event on the Master thread. The Master Thread begins processing and then Thread 3 encases its message in an EventArg and invokes the event on the Master Thread. What happens? Does the Master Thread stop in the middle of handling the first event to service the second one? Does the second event wait until the first event is processed? What if Thread 2 gets another message and invokes the event again while the Master is processing the first event?

I wonder if using a queue and an manual Reset EventWaitHandle is not a better idea as the Thread 2 can check the status and wait until it is reset before putting the message in the queue and setting the EventWaitHandle again.

What version of Visual Studio are you using? Use the new async keyword. If you are using VS2010, you need to install the Async CTP. The async keyword produces *MUCH* cleaner code since all the syncronization / threading is hidden from the developer.

i know there are some articles for animated panels. But in all examples i've seen only that the items gets animated when the panel rearranges all items (because of resizing).

I am looking for some solution that also animates the items when the panel gets sorted. I've built some hack to get the container items animated when sorting. But it's far away from beeing a clean solution. It also looks like you can't use ItemsControl anymore, because if you use ItemsControl for sorting then all container items are recreated. This isn't good for performance and it's also not good when you use a fade-in Animation on items Loaded event.

You can't connect your silverlight to a database, it does not support the System.Data namespace. You need to create a service interface between your SL app and the database, thats called WCF (or RIA services).

You are trying to replace an Event (AutoGeneratingColumn) with an object?

I think you mean and auto generated column with a customised datagridcolumn, therefore replacing one object with the same type of object just custom built. I would think this would be reasonable, be prepared for the column collection to object but I don't see how.

I would locate the column in the collection and customise it in place rather than replacing it.