Click here to Skip to main content
15,921,941 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 9:50
mveGerry Schmitz18-Apr-18 9:50 
AnswerRe: Field Level Rights Pin
Mycroft Holmes18-Apr-18 14:31
professionalMycroft Holmes18-Apr-18 14:31 
We use groups and check on view load but the principle should be the same. We have bool properties for each field that needs controlling - this can be bloody tedious even if you can group fields.

Any event bound to the VM property change can then fire the SetViewState method that checks the state of the bound object and sets the various field bools according to the rules defined.

Caveat this can become a bloody nightmare when you have hundreds of input fields that all need validating based on the user profile and the inputs. Trying to keep it simple can be a nightmare.
Never underestimate the power of human stupidity
RAH

QuestionApplication.Run C# equivalent Pin
GregJ717-Apr-18 4:32
GregJ717-Apr-18 4:32 
AnswerRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 4:38
mveRichard MacCutchan17-Apr-18 4:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 6:26
GregJ717-Apr-18 6:26 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 6:38
mveRichard MacCutchan17-Apr-18 6:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 7:59
GregJ717-Apr-18 7:59 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 8:47
mveRichard MacCutchan17-Apr-18 8:47 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 8:04
GregJ717-Apr-18 8:04 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 8:48
mveRichard MacCutchan17-Apr-18 8:48 
GeneralRe: Application.Run C# equivalent Pin
Richard Deeming19-Apr-18 1:52
mveRichard Deeming19-Apr-18 1:52 
GeneralRe: Application.Run C# equivalent Pin
GregJ719-Apr-18 2:42
GregJ719-Apr-18 2:42 
AnswerRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 11:52
GregJ717-Apr-18 11:52 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 20:53
mveRichard MacCutchan17-Apr-18 20:53 
GeneralRe: Application.Run C# equivalent Pin
GregJ718-Apr-18 1:24
GregJ718-Apr-18 1:24 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan18-Apr-18 1:37
mveRichard MacCutchan18-Apr-18 1:37 
AnswerRe: Application.Run C# equivalent Pin
Pete O'Hanlon18-Apr-18 1:52
mvePete O'Hanlon18-Apr-18 1:52 
GeneralRe: Application.Run C# equivalent Pin
GregJ718-Apr-18 1:57
GregJ718-Apr-18 1:57 
GeneralRe: Application.Run C# equivalent Pin
Pete O'Hanlon18-Apr-18 2:01
mvePete O'Hanlon18-Apr-18 2:01 
QuestionDragDrop In A Canvas Pin
Kevin Marois11-Apr-18 8:36
professionalKevin Marois11-Apr-18 8:36 
AnswerRe: DragDrop In A Canvas Pin
Mycroft Holmes11-Apr-18 14:18
professionalMycroft Holmes11-Apr-18 14:18 
GeneralRe: DragDrop In A Canvas Pin
Kevin Marois12-Apr-18 5:50
professionalKevin Marois12-Apr-18 5:50 
QuestionAbout drag-and-drop issues Pin
Member 1300190328-Mar-18 17:31
Member 1300190328-Mar-18 17:31 
AnswerRe: About drag-and-drop issues Pin
Richard Deeming29-Mar-18 3:04
mveRichard Deeming29-Mar-18 3:04 
GeneralRe: About drag-and-drop issues Pin
Member 1300190329-Mar-18 20:26
Member 1300190329-Mar-18 20:26 

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.