packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/Dialogs/Common/DialogControl.cs
///<summary>
/// Calls the hosting dialog, if it exists, to check whether the 
/// property can be set in the dialog's current state. 
/// The host should throw an exception if the change is not supported.
/// Note that if the dialog isn't set yet, 
/// there are no restrictions on setting the property.
/// </summary>
/// <param name="propName">The name of the property that is changing</param>
Calls the hosting dialog, if it exists, to check whether the
property can be set in the dialog's current state.
The host should throw an exception if the change is not supported.
Note that if the dialog isn't set yet,
there are no restrictions on setting the property.
Calls the hosting dialog if it exists to check whether the property can be set in the dialog ' s current state . The host should throw an exception if the change is not supported . Note that if the dialog isn ' t set yet there are no restrictions on setting the property .
protected void CheckPropertyChangeAllowed(string propName)
        {
            Debug.Assert(!string.IsNullOrEmpty(propName), "Property to change was not specified");
            if (HostingDialog != null)
            {
                HostingDialog.IsControlPropertyChangeAllowed(propName, this);
            }
        }
protected void CheckPropertyChangeAllowed ( string propName ) { Debug . Assert ( ! string . IsNullOrEmpty ( propName ) , " " ) ; if ( HostingDialog != null ) { HostingDialog . IsControlPropertyChangeAllowed ( propName , this ) ; } }
Calls the hosting dialog, if it exists, to check whether the
property can be set in the dialog's current state.
Calls the hosting dialog if it exists to check whether the property can be set in the dialog ' s current state .
// This will throw if the property change is not allowed.
propName
string
The name of the property that is changing
The name of the property that is changing