USDTab.CloseControlCanExecute Method
Internal binding function used for XAML declarative actions.
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls.Styles
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Usage
'Usage
Dim instance As USDTab
Dim sender As Object
Dim e As CanExecuteRoutedEventArgs
instance.CloseControlCanExecute(sender, e)
Syntax
'Declaration
Public Sub CloseControlCanExecute ( _
sender As Object, _
e As CanExecuteRoutedEventArgs _
)
public void CloseControlCanExecute (
Object sender,
CanExecuteRoutedEventArgs e
)
public:
void CloseControlCanExecute (
Object^ sender,
CanExecuteRoutedEventArgs^ e
)
public void CloseControlCanExecute (
Object sender,
CanExecuteRoutedEventArgs e
)
public function CloseControlCanExecute (
sender : Object,
e : CanExecuteRoutedEventArgs
)
Parameters
- sender
Specifies the control that the action is for.
- e
Specifies the event arguments.
Remarks
The control bindings in your XAML should appear as follows:
<Control.CommandBindings>
<CommandBinding Command = “usd:ActionCommands.CloseControl”
CanExecute=”CloseControlCanExecute”
Executed=”CloseControlExecuted” />
</Control.CommandBindings>
A button that uses these bindings should be declared as follows:
<Button Command=”usd:ActionCommands.CloseControl” CommandParameter=”” />
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Change History
See Also
Reference
USDTab Class
USDTab Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls.Styles Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.