Click here to Skip to main content
14,640,235 members
Home » Discussions » Silverlight / WPF
   

Silverlight / WPF

 
GeneralRe: Is there any way to automate the silverlight application using Eclipse-testng-selenium-java frameowork Pin
Ashish khanduri20-Nov-16 19:50
MemberAshish khanduri20-Nov-16 19:50 
QuestionSound Command that can intercept the Active Thread Pin
Vimalsoft(Pty) Ltd15-Nov-16 17:56
professionalVimalsoft(Pty) Ltd15-Nov-16 17:56 
AnswerRe: Sound Command that can intercept the Active Thread Pin
Gerry Schmitz16-Nov-16 6:07
mveGerry Schmitz16-Nov-16 6:07 
QuestionCan't Move Label with mouse in WPF Pin
Dadou5512-Nov-16 22:44
MemberDadou5512-Nov-16 22:44 
AnswerRe: Can't Move Label with mouse in WPF Pin
Richard Deeming14-Nov-16 2:13
mveRichard Deeming14-Nov-16 2:13 
QuestionHow to achieve grouping and ungrouping usercontrol in wpf application programmatically Pin
Pankaj Deharia10-Nov-16 3:05
professionalPankaj Deharia10-Nov-16 3:05 
AnswerRe: How to achieve grouping and ungrouping usercontrol in wpf application programmatically Pin
Gerry Schmitz10-Nov-16 7:01
mveGerry Schmitz10-Nov-16 7:01 
QuestionHow to solve the echo in a MVVM project with external data updates Pin
ronald6231-Oct-16 0:16
Memberronald6231-Oct-16 0:16 
We are building a WPF project to control a machine. The machine is controlled by a PLC, and link to the PLC is with OPC.

The update from the PLC is done via reflexion, so the 'set' is called, but the disadvantage of this is that the value is written to the PLC again via 'SetValueToPlc()' see example.

The easy solution would be to copy all properties with a Write to PLC variant, but since our project already contains more than 2000 properties this is not the prefered solution.

The way I'm thinking is to make use of a template like the Nullable, and create 2 separate 'setters'. One which is coupled to the ViewModel for updates from the View and business-logic. And the other can be use by the OPC updates (reflection). The implementation from the last would be without writing the value back to the PLC.

So my question is how to make such a template, or are there other sugestions?




Example property:
[OpcItem("Simulate")]
public Boolean Simulate
{
    get { return _simulate; }
    set
    {
        _simulate = value;
        SetValueToPlc(MethodBase.GetCurrentMethod().MethodHandle, value);
        RaisePropertyChanged();
    }
}

AnswerRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz4-Nov-16 5:02
mveGerry Schmitz4-Nov-16 5:02 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald624-Nov-16 5:15
Memberronald624-Nov-16 5:15 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz4-Nov-16 5:46
mveGerry Schmitz4-Nov-16 5:46 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald627-Nov-16 3:38
Memberronald627-Nov-16 3:38 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz7-Nov-16 6:35
mveGerry Schmitz7-Nov-16 6:35 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Pete O'Hanlon7-Nov-16 10:44
subeditorPete O'Hanlon7-Nov-16 10:44 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz7-Nov-16 11:36
mveGerry Schmitz7-Nov-16 11:36 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald629-Nov-16 0:01
Memberronald629-Nov-16 0:01 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz10-Nov-16 12:11
mveGerry Schmitz10-Nov-16 12:11 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald6221-Nov-16 1:14
Memberronald6221-Nov-16 1:14 
QuestionPrinting an xps fixed document Pin
holdorf5-Oct-16 8:04
Memberholdorf5-Oct-16 8:04 
AnswerRe: Printing an xps fixed document Pin
holdorf5-Oct-16 9:56
Memberholdorf5-Oct-16 9:56 
QuestionCoverflow like animating grids or contentcontrol Pin
Jayme655-Oct-16 0:44
MemberJayme655-Oct-16 0:44 
SuggestionRe: Coverflow like animating grids or contentcontrol Pin
Richard MacCutchan5-Oct-16 2:24
mveRichard MacCutchan5-Oct-16 2:24 
GeneralRe: Coverflow like animating grids or contentcontrol Pin
Jayme655-Oct-16 3:05
MemberJayme655-Oct-16 3:05 
GeneralRe: Coverflow like animating grids or contentcontrol Pin
Richard MacCutchan5-Oct-16 3:05
mveRichard MacCutchan5-Oct-16 3:05 
QuestionApplication download error in XBAP application after deploying the application Pin
indian14319-Sep-16 7:41
Memberindian14319-Sep-16 7:41 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.