Click here to Skip to main content
       

Silverlight / WPF

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Building a GUI in WPFmentorWayne Gaylard20 Feb '13 - 22:15 
What you basically need is a Mediator[^] that can act as a go between. Reading Sacha's article in the link I provided will be a good start.
 

Good Luck!
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

QuestionAfter Upagrading Silverlight from .NET 4 to 4.5 WCF Stopped workingmemberVuyiswa Maseko20 Feb '13 - 6:54 
Good Day
 
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.
 
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com

AnswerRe: After Upagrading Silverlight from .NET 4 to 4.5 WCF Stopped workingmemberVuyiswa Maseko20 Feb '13 - 8:16 
Good Day All
 

 
i got an Error , my proxy was not generated , i saw a warning that says "Custom tool warning: No endpoints compatible with Silverlight 5 were found. " and i did the Following
 
Delete the Service reference and did it from scratch and on the Service reference dialog uncheck the part that says
 
The 'reuse types in referenced assemblies' check-box
 
it was a cause of the problem.
 

 
Thanks
Vuyiswa Maseko,
 
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
 
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com

QuestionEvent Handling between ThreadsmemberAeroClassics19 Feb '13 - 11:34 
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.
 
Opinions, please?
 
Thanks,
Doug
I am a Traveler
of both Time and Space

AnswerRe: Event Handling between ThreadsmemberSledgeHammer0119 Feb '13 - 12:57 
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.
GeneralRe: Event Handling between ThreadsmemberAeroClassics20 Feb '13 - 4:42 
Good tip! Thanks i will look into this. I am using VS2010 so will need the add on.
 
Doug
I am a Traveler
of both Time and Space

Questionpanel with sorting animationmembertetrapack19 Feb '13 - 9:00 
Hi forum,
 
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.

Any suggestions? Thanks in advance!
 
regards,
tetrapack
QuestionI know what's ItemTemplate, what's PropertyTrigger,DataTrigger and MultiTrigger but What's "TemplateTrigger"?memberdevvvy15 Feb '13 - 18:29 
I know what's ItemTemplate (For example ListBox.ItemTemplate +DataTemplate), what's PropertyTrigger/DataTrigger/MultiTrigger[^]but What's "TemplateTrigger" in context of DependencyProperty value resolution?[^]?
 
I just found the answer in case if anyone else...[^]
dev

QuestionAbout Silver light Sql Data Connectionmembervijaynet1014 Feb '13 - 19:14 
how can we give a sql connectivity in silver light application during run time because my application style is
different from attached data base working as i already viewed few examples in our site


AnswerRe: About Silver light Sql Data ConnectionmemberMycroft Holmes15 Feb '13 - 0:45 
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).
Never underestimate the power of human stupidity
RAH

GeneralRe: About Silver light Sql Data Connectionmembervijaynet1015 Feb '13 - 4:30 
Thank u for your reply do you have any examples about WCF
GeneralRe: About Silver light Sql Data ConnectionprotectorPete O'Hanlon15 Feb '13 - 5:46 
There's bound to be one or two you can follow here[^].
I was brought up to respect my elders. I don't respect many people nowadays.

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

AnswerRe: About Silver light Sql Data ConnectionmvpAbhinav S15 Feb '13 - 17:01 
You cant give direct Sql Connectity in the database.
Try using a WCF service to connect to the database.

QuestionIs it safe to change datagridcolumn cell style at run time?memberDr. Hurol Aslan14 Feb '13 - 17:03 
The question is in the title. I just need to relieve myself of the gnawing worries, that is, until someone answers "No".
AnswerRe: Is it safe to change datagridcolumn cell style at run time?memberMarco Bertschi15 Feb '13 - 3:12 
It should be safe because you are only changing the style and do not delete it or anything like that.
GeneralRe: Is it safe to change datagridcolumn cell style at run time?memberDr. Hurol Aslan15 Feb '13 - 8:03 
Thank you, but one more thing: I have come across examples that involve replacing DataGridColumn objects in handlers for AutoGeneratingColumn event. Would you consider that unsafe?
GeneralRe: Is it safe to change datagridcolumn cell style at run time?memberMarco Bertschi15 Feb '13 - 8:04 
I have no experience with this. But it sounds kinda scry to me Sigh | :sigh:
GeneralRe: Is it safe to change datagridcolumn cell style at run time?memberMycroft Holmes15 Feb '13 - 12:37 
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.
 
Caveat - I have never done this either!
Never underestimate the power of human stupidity
RAH

GeneralRe: Is it safe to change datagridcolumn cell style at run time?memberDr. Hurol Aslan15 Feb '13 - 14:43 
Thank you, too, but I had written "... replacing DataGridColumn objects in handlers for AutoGeneratingColumn event ...". The author of such an example also expressed concerns, like you did.
GeneralRe: Is it safe to change datagridcolumn cell style at run time?memberMycroft Holmes15 Feb '13 - 14:53 
Ah that makes more sense, I would still try and change the existing columns properties rather than replacing it.
 
In one scenario I know the content of the first 4 columns and change the individual formats in the afterautocolumngenerated event (the event name maybe wrong Blush | :O ). The remainder are from a pivot query and are not formatted.
Never underestimate the power of human stupidity
RAH

QuestionSend mail at a specific timememberslobo32014 Feb '13 - 2:27 
Is there any possibility to send mail to a specific time when the fact that the whole program on the server
GeneralRe: Send mail at a specific timememberPIEBALDconsult14 Feb '13 - 3:11 
What does that have to do with Silverlight / WPF ?
 
I'd use a Scheduled Task.
AnswerRe: Send mail at a specific timemvpAbhinav S15 Feb '13 - 17:03 
Not through Silverlight (since you will not know if the client is running at all times or not).
Use the server to build a scheduled task.

QuestionEnterprise solutionmembervaishali thaker13 Feb '13 - 20:09 
Is it preferable to move ur desktop application to web based application for enterprise solution...
AnswerRe: Enterprise solutionmvpRichard MacCutchan13 Feb '13 - 22:32 
Preferable in what sense? It depends on the application, the user community, and what you are trying to achieve.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid