Click here to Skip to main content
15,860,859 members
Home / Discussions / WPF
   

WPF

 
QuestionMy First JavaScript Code - Exception Pin
Kevin Marois2-Mar-17 7:18
professionalKevin Marois2-Mar-17 7:18 
AnswerRe: My First JavaScript Code - Exception Pin
Sander Rossel2-Mar-17 8:03
professionalSander Rossel2-Mar-17 8:03 
GeneralRe: My First JavaScript Code - Exception Pin
Kevin Marois2-Mar-17 8:14
professionalKevin Marois2-Mar-17 8:14 
GeneralRe: My First JavaScript Code - Exception Pin
Afzaal Ahmad Zeeshan2-Mar-17 8:21
professionalAfzaal Ahmad Zeeshan2-Mar-17 8:21 
Questionwhite Popup show while calling wpf app(made on win-07) by Thirdparty app(Made on Xp service pack -3) on windows 7 Pin
Member 1227019516-Feb-17 19:51
Member 1227019516-Feb-17 19:51 
AnswerRe: white Popup show while calling wpf app(made on win-07) by Thirdparty app(Made on Xp service pack -3) on windows 7 Pin
Richard MacCutchan16-Feb-17 21:42
mveRichard MacCutchan16-Feb-17 21:42 
QuestionList of CheckBoxes Localization not working Pin
Member 1300292515-Feb-17 5:33
Member 1300292515-Feb-17 5:33 
Questionstill shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA7-Feb-17 21:14
MrKBA7-Feb-17 21:14 
Hi,
I included DialogService in my Window to call other view which contains User input values
What I need is to prevent closing this dialog until input are validated.
_roleViewModel = new Role_ViewModel(eTypeOperation);
            var createCommand = new UICommand
            {
                Id = MessageBoxResult.OK,
                Caption = Properties.Resources.CstOk,
                IsCancel = false,
                IsDefault = true,
                Command = new DelegateCommand(CreateRole, CanCreateRole)
            };
            var cancelCommand = new UICommand
            {
                Id = MessageBoxResult.Cancel,
                Caption = Properties.Resources.CstCancel,
                IsCancel = true,
                IsDefault = false,
            };
            RoleService.ShowDialog(new List<UICommand> { createCommand, cancelCommand }, Properties.Resources.CstNewRole, _roleViewModel);

private IDialogService RoleService
        {
            get { return GetService<IDialogService>("RoleServiceDialog"); }
        }

the CanCreateRole control the state of Button "OK" regarding input user But What I need is to :
When click OK button , we should check data (user input) if it is ok we return and close the DialogService otherwise we should display messagebox and stay on this DialogService (don't close) until press "Cancel"

Thank you
AnswerRe: still shown DialogService until error exists in user input and dont press Cancel Pin
Richard Deeming8-Feb-17 2:04
mveRichard Deeming8-Feb-17 2:04 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA8-Feb-17 21:20
MrKBA8-Feb-17 21:20 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
Richard Deeming8-Feb-17 21:53
mveRichard Deeming8-Feb-17 21:53 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA8-Feb-17 22:10
MrKBA8-Feb-17 22:10 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
Richard Deeming8-Feb-17 22:16
mveRichard Deeming8-Feb-17 22:16 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA8-Feb-17 23:47
MrKBA8-Feb-17 23:47 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
Richard Deeming9-Feb-17 0:00
mveRichard Deeming9-Feb-17 0:00 
GeneralRe: still shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA9-Feb-17 1:41
MrKBA9-Feb-17 1:41 
QuestionWPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle6-Feb-17 3:04
Mark McArdle6-Feb-17 3:04 
AnswerRe: WPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Richard Deeming6-Feb-17 7:55
mveRichard Deeming6-Feb-17 7:55 
PraiseRe: WPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle7-Feb-17 2:07
Mark McArdle7-Feb-17 2:07 
QuestionStyle User Control In Another Assembly Pin
Kevin Marois2-Feb-17 6:54
professionalKevin Marois2-Feb-17 6:54 
AnswerRe: Style User Control In Another Assembly Pin
Pete O'Hanlon2-Feb-17 7:12
subeditorPete O'Hanlon2-Feb-17 7:12 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:13
professionalKevin Marois2-Feb-17 7:13 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:50
professionalKevin Marois2-Feb-17 7:50 
QuestionTelerik GridViewComboBoxColumn Pin
eddieangel25-Jan-17 12:29
eddieangel25-Jan-17 12:29 
AnswerRe: Telerik GridViewComboBoxColumn Pin
Graeme_Grant28-Jan-17 2:23
mvaGraeme_Grant28-Jan-17 2:23 

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.