{"action":"created","issue":{"url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/98","repository_url":"https://api.github.com/repos/XceedBoucherS/TestImport","labels_url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/98/comments","events_url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/98/events","html_url":"https://github.com/XceedBoucherS/TestImport/issues/98","id":241336483,"number":98,"title":"ArgumentException is thrown when setting IncludeLiterals=\"False\" for MaskedTextBox used inside DataGridTemplateColumn","user":{"login":"XceedBoucherS","id":29377763,"avatar_url":"https://avatars1.githubusercontent.com/u/29377763?v=3","gravatar_id":"","url":"https://api.github.com/users/XceedBoucherS","html_url":"https://github.com/XceedBoucherS","followers_url":"https://api.github.com/users/XceedBoucherS/followers","following_url":"https://api.github.com/users/XceedBoucherS/following{/other_user}","gists_url":"https://api.github.com/users/XceedBoucherS/gists{/gist_id}","starred_url":"https://api.github.com/users/XceedBoucherS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XceedBoucherS/subscriptions","organizations_url":"https://api.github.com/users/XceedBoucherS/orgs","repos_url":"https://api.github.com/users/XceedBoucherS/repos","events_url":"https://api.github.com/users/XceedBoucherS/events{/privacy}","received_events_url":"https://api.github.com/users/XceedBoucherS/received_events","type":"User","site_admin":false},"labels":[{"id":642264073,"url":"https://api.github.com/repos/XceedBoucherS/TestImport/labels/CodePlex","name":"CodePlex","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-07T17:58:40Z","updated_at":"2017-07-07T17:58:51Z","closed_at":null,"body":"<b>BaMusaSoft[CodePlex]</b> <br />When setting IncludeLiterals=quotFalsequot for MaskedTextBox which used as template for CellTemplate Or CellEditingTemplate properties of DataGridTemplateColumn, ArgumentException is thrown with “The Mask value cannot be null or empty.\r\nParameter name: mask” message.\r\nSetting this property to false when use MaskedTextBox outside the DataGridTemplateColumn no exception is thrown.\r\n\r\nWhy is that?\r\nHere is a small but complete demo:\r\nltWindow.Resourcesgt\r\n    ltDataTemplate x:Key=quotcellTemplatequotgt\n        ltexten:MaskedTextBox  Mask=quot## /##/ ####quot Value=quot{Binding Path=DateDue}quot IncludeLiterals=quotFalsequot/gt\n    lt/DataTemplategt\nlt/Window.Resourcesgt\nltGridgt\n    ltexten:MaskedTextBox Mask=quot## /##/ ####quot Value=quot{Binding Path=RegisterDate}quot Height=quot39quot Width=quot508quot Margin=quot12,55,87,313quot /gt\n    ltDataGrid ItemsSource=quot{Binding Details}quot AutoGenerateColumns=quotFalsequot Margin=quot-8,116,12,12quot RowHeaderWidth=quot20quotgt\n        ltDataGrid.Columnsgt\n            ltDataGridTemplateColumn Header=quotDateDuequot CellEditingTemplate=quot{StaticResource cellTemplate}quot\n                                    CellTemplate=quot{StaticResource cellTemplate}quot/gt\n        lt/DataGrid.Columnsgt\n    lt/DataGridgt\r\nnbsp\r\nlt/Gridgt\r\nnbsp\r\nTest t = new Test();\r\n    public MainWindow()\n    {\n        InitializeComponent();\n        DataContext = t;\n    }\r\nnbsp\r\nnbsp\r\npublic class Test : INotifyPropertyChanged\r\n{\n    ListltDetailsgt list;\n    public Test()\n    {\n        list = new ListltDetailsgt() { new Details() { DateDue = quot01012011quot } };\n    }\n    string registerDate;\n    public string RegisterDate\n    {\n        get { return registerDate; }\r\nnbsp\r\n        set\n        {\n            registerDate = value;\n            NotifyProprtyChanged(quotRegisterDatequot);\n        }\n    }\n    public ObservableCollectionltDetailsgt Details\n    {\n        get { return new ObservableCollectionltDetailsgt(list); }\n    }\n    public event PropertyChangedEventHandler PropertyChanged;\n    void NotifyProprtyChanged(string propertyName)\n    {\n        if (PropertyChanged != null)\n        {\n            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));\n        }\n    }\n    public void Save()\n    {\r\nnbsp\r\n    }\n}\npublic class Details : INotifyPropertyChanged\n{\n    string dateDue;\n    public string DateDue\n    {\n        get { return dateDue; }\n        set\n        {\n            dateDue = value;\n            NotifyProprtyChanged(quotDateDuequot);\n        }\r\nnbsp\r\n    }\r\nnbsp\r\n    public event PropertyChangedEventHandler PropertyChanged;\n    void NotifyProprtyChanged(string propertyName)\n    {\n        if (PropertyChanged != null)\n        {\n            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));\n        }\n    }\r\nnbsp\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/comments/313751546","html_url":"https://github.com/XceedBoucherS/TestImport/issues/98#issuecomment-313751546","issue_url":"https://api.github.com/repos/XceedBoucherS/TestImport/issues/98","id":313751546,"user":{"login":"XceedBoucherS","id":29377763,"avatar_url":"https://avatars1.githubusercontent.com/u/29377763?v=3","gravatar_id":"","url":"https://api.github.com/users/XceedBoucherS","html_url":"https://github.com/XceedBoucherS","followers_url":"https://api.github.com/users/XceedBoucherS/followers","following_url":"https://api.github.com/users/XceedBoucherS/following{/other_user}","gists_url":"https://api.github.com/users/XceedBoucherS/gists{/gist_id}","starred_url":"https://api.github.com/users/XceedBoucherS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XceedBoucherS/subscriptions","organizations_url":"https://api.github.com/users/XceedBoucherS/orgs","repos_url":"https://api.github.com/users/XceedBoucherS/repos","events_url":"https://api.github.com/users/XceedBoucherS/events{/privacy}","received_events_url":"https://api.github.com/users/XceedBoucherS/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T17:58:51Z","updated_at":"2017-07-07T17:58:51Z","body":"<b>BaMusaSoft[CodePlex]</b> <br />Yes, still get the error. \r\nBy the way IncludeLiterals=False not True will throw the exception, I modefied the code to reflect this change. Sorry for typo.\r\n"}}
{"actor":{"display_login":"XceedBoucherS"}}