Share via


USDTab.CloseControlCanExecute Method (Object, CanExecuteRoutedEventArgs)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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)

Syntax

public void CloseControlCanExecute(
    object sender,
    CanExecuteRoutedEventArgs e
)
Public Sub CloseControlCanExecute (
    sender As Object,
    e As CanExecuteRoutedEventArgs
)

Parameters

  • sender
    Type: System.Object

    Specifies the control that the action is for.

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=”” />

See Also

USDTab Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls.Styles Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright