Click here to Skip to main content
14,866,697 members
Home / Discussions / WPF
   

WPF

 
QuestionList of CheckBoxes Localization not working Pin
Member 1300292515-Feb-17 5:33
MemberMember 1300292515-Feb-17 5:33 
Questionstill shown DialogService until error exists in user input and dont press Cancel Pin
MrKBA7-Feb-17 21:14
MemberMrKBA7-Feb-17 21:14 
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
MemberMrKBA8-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
MemberMrKBA8-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
MemberMrKBA8-Feb-17 23:47 
In my MainWindow.xaml (which will validate data after click on OK )
<pre> <dxmvvm:Interaction.Behaviors>
        <dx:DXMessageBoxService />
        <dxmvvm:CurrentWindowService Window="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" />
        <dx:DialogService DialogWindowStartupLocation="CenterOwner" Name="RoleServiceDialog">
            <dx:DialogService.ViewTemplate>
                <DataTemplate>
                    <views:Role_View></views:Role_View>
                </DataTemplate>
            </dx:DialogService.ViewTemplate>
        </dx:DialogService>
    </dxmvvm:Interaction.Behaviors>

in MainWindow.cs (the ViewModel related to the MainWindow.xaml)
_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 void CreateRole()
       {
           _roleViewModel.AcceptChanges();
           if (ValidateData(_roleViewModel.RoleName.Trim()))
           {
               AddRole(_roleViewModel.RoleName, _roleViewModel.RoleDescription);
           }
       }
private bool CanCreateRole()
        {
            return !string.IsNullOrEmpty(_roleViewModel.RoleName.Trim());
        }

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
MemberMrKBA9-Feb-17 1:41 
QuestionWPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle6-Feb-17 3:04
MemberMark 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
MemberMark 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
mvePete 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
Membereddieangel25-Jan-17 12:29 
AnswerRe: Telerik GridViewComboBoxColumn Pin
Graeme_Grant28-Jan-17 2:23
professionalGraeme_Grant28-Jan-17 2:23 
QuestionDataGrid DataGridComboBoxColumn Enum Descriptions Pin
Kevin Marois24-Jan-17 6:22
professionalKevin Marois24-Jan-17 6:22 
AnswerRe: DataGrid DataGridComboBoxColumn Enum Descriptions Pin
Afzaal Ahmad Zeeshan24-Jan-17 6:46
mveAfzaal Ahmad Zeeshan24-Jan-17 6:46 
QuestionWPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:00
professionalKevin Marois23-Jan-17 10:00 
AnswerRe: WPF DataGrid Extended Pin
Richard Deeming23-Jan-17 10:25
mveRichard Deeming23-Jan-17 10:25 
GeneralRe: WPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:28
professionalKevin Marois23-Jan-17 10:28 
QuestionComboBox Restore Saved Item Pin
Kevin Marois20-Jan-17 10:06
professionalKevin Marois20-Jan-17 10:06 

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.