src/Microsoft.PowerShell.GraphicalHost/ShowCommand/Controls/ImageButton/ImageButton.xaml.cs
/// <summary>
/// Copies the automation id from the parent control to the inner button
/// </summary>
/// <param name="sender">event sender</param>
/// <param name="e">event arguments</param>
Copies the automation id from the parent control to the inner button
Copies the automation id from the parent control to the inner button
private void ImageButton_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            object thisAutomationId = this.GetValue(AutomationProperties.AutomationIdProperty);
            if (thisAutomationId != null)
            {
                this.innerButton.SetValue(AutomationProperties.AutomationIdProperty, thisAutomationId);
            }
        }
private void ImageButton_Loaded ( object sender , System . Windows . RoutedEventArgs e ) { object thisAutomationId = this . GetValue ( AutomationProperties . AutomationIdProperty ) ; if ( thisAutomationId != null ) { this . innerButton . SetValue ( AutomationProperties . AutomationIdProperty , thisAutomationId ) ; } }
Copies the automation id from the parent control to the inner button
Copies the automation id from the parent control to the inner button
sender
object
None
e
System.Windows.RoutedEventArgs
None