Automation Properties for Windows Forms applications RRS feed

  • Question

  • I noticed that the Automation Properties are supported in WPF applications, but not in Windows Forms.

    For example, in WPF we can set the Automation Properties as shown below:

    <TextBox x:Name="AgeTextBox" 
         AutomationProperties.Name="{Binding Content, ElementName=AgeLabel}" 
         Text="{Binding Age, Mode=TwoWay, UpdateSourceTrigger=Explicit}"  
         Grid.Column="1" Grid.Row="3" Margin="3"
        AutomationProperties.HelpText="{Binding AgeTextBoxToolTipString,Source={StaticResource TooltipStrings}}">
                   <ToolTip Content="{Binding AgeTextBoxToolTipString,Source={StaticResource TooltipStrings}}" />

    How can I implement AutomationProperties in Windows Forms applications too?

    Best Regards,
    Nadeem Bader

    Wednesday, October 14, 2020 9:55 PM

All replies

  • Hi Nadeem Bader

    Thank you for posting here.

    I did not find a complete solution, but these documents may be helpful.

    Provider Implementation by non-WPF Elements

    UI Automation Overview

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, October 15, 2020 7:59 AM
  • Hi
    Thank you very much
    I viewed the documents that you sent, but I was not implement it with Windows Forms.
    Hope to get some help here

    Best Regards,
    Nadeem Bader

    Sunday, October 18, 2020 12:17 PM