diff options
author | Matt Ward <matt.ward@xamarin.com> | 2015-07-06 13:27:10 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2015-07-06 13:35:47 +0300 |
commit | e8053cbb542624a6d1e24dc2d28ba21ac7f85996 (patch) | |
tree | f8139cd9321271d3813a6723cbae2c9b95341e0a /main/src/addins/WindowsPlatform | |
parent | 890fe2b37de1029fe70195a539beb020940d46c8 (diff) |
[Windows] Allow controls to be disabled in Open File dialog.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs index 89ad76e623..8d418ac4c6 100644 --- a/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs +++ b/main/src/addins/WindowsPlatform/WindowsAPICodePack/Shell/CommonFileDialogs/CommonFileDialog.cs @@ -910,7 +910,7 @@ namespace Microsoft.WindowsAPICodePack.Dialogs customize.SetControlState(control.Id, state);
}
- else if (propertyName == "Enabled" && dialogControl != null)
+ else if (propertyName == "Enabled" && (dialogControl = control as CommonFileDialogControl) != null)
{
ShellNativeMethods.ControlState state;
customize.GetControlState(control.Id, out state);
|