none
multiple binding on xaml textbox RRS feed

  • Question

  •  Is it possible to do multiple binding on "AutomationProperties.LabeledBy" in the code below

    <Label x:Name="CityWest" Content="English" HorizontalAlignment="Left" VerticalAlignment="Top" Width="77" HorizontalContentAlignment="Right" Margin="0,10,0,0" Height="31" VerticalContentAlignment="Center"/>
            <TextBox x:Name="TxtCity" AutomationProperties.LabeledBy="{Binding ElementName=CityWest}" Margin="82,9,0,0" VerticalAlignment="Top" Height="31"   HorizontalAlignment="Left" Width="276" VerticalContentAlignment="Center"/>
        





    • Edited by C_Well Wednesday, September 18, 2019 3:13 AM
    Friday, September 13, 2019 2:59 AM

All replies

  • Hi,

    The AutomationProperties.LabelBy property, which uses the Acceissble Name of the other control as the Acceissble Name of the current control.What do you mean by multiple binding? set multiple Acceissble Names for a control?

    Best Regards,

    Alex


    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.

    Friday, September 13, 2019 7:15 AM
    Moderator
  • multiple binding on ElementName or multiple binding on content=English while keep displaying English as Label as currently it is displaying English as Label.
    Wednesday, September 18, 2019 3:19 AM
  • multiple binding on ElementName or multiple binding on content=English while keep displaying English as Label as currently it is displaying English as Label.

    Hi,

    multiple binding on ElementName/content?What do you mean by setting multiple values for elementname/name?

    Best Regards,

    Alex


    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, September 26, 2019 7:17 AM
    Moderator