Automation of Actipro Pop up and Menu

Ribbon for WPF Forum

Posted 11 years ago by Azhagiri Selvam
Version: 4.5.0476
Avatar
Hello,

We have a control hierarchy similar to the following one in our application.
The number of menu times varies based on some business logic.

<actr:PopupButton Command="{StaticResource NewLaborDropDownCommand}">
<actr:Menu>
<actr:Menu.ItemsSource>
<MultiBinding Converter="{x:Static app:SREntityListConverterMultiple.Instance}" ConverterParameter="SR AvailableProblems">
<Binding Mode="OneWay"/>
<Binding RelativeSource="{RelativeSource Self}" Mode="OneWay"/>
</MultiBinding>
</actr:Menu.ItemsSource>

<actr:Menu.Resources>
<DataTemplate x:Key="NewLaborTypeMenuItemTemplate">
<actr:Button
Command="{StaticResource NewLaborCommand}"
CommandParameter="{Binding Mode=OneTime}"
Context="MenuItem" VariantSize="Small"
Label="{Binding LaborType.Name,Mode=OneTime}"
ScreenTipDescription=""
/>
</DataTemplate>
</actr:Menu.Resources>

<actr:Menu.ItemTemplate>
<DataTemplate>
<actr:PopupButton
Context="MenuItem" VariantSize="Small"
ImageSourceSmall="{Binding Mode=OneTime,
Converter={x:Static ui:EntityUIConverter.Instance},
ConverterParameter=imagesourcesmall}"
ImageSourceLarge="{Binding Mode=OneTime,
Converter={x:Static ui:EntityUIConverter.Instance},
ConverterParameter=imagesourcelarge}"
Label="{Binding Mode=OneTime,
Converter={x:Static ui:EntityUIConverter.Instance},
ConverterParameter=formattednumber}"
>
<actr:Menu
ItemsSource="{Binding Mode=OneTime, Converter={x:Static app:ProblemLaborTypesConverter.Instance}}"
ItemTemplate="{StaticResource NewLaborTypeMenuItemTemplate}" />
</actr:PopupButton>
</DataTemplate>
</actr:Menu.ItemTemplate>
</actr:Menu>
</actr:PopupButton>

While automating, we could get the handler of the outermost Popup button only. We don't have any idea how to get the handler for the Menu and other children. We are using Visual UI Automation verify tool.

Any pointers will be really helpful.

Thanks,
Giri

[Modified at 10/17/2008 06:52 AM]

Comments (3)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks, we noticed this too when working on the TextBox update yesterday but didn't get a chance to dig into this one since it's a bit more complex. We have it on the TODO list to look into.


Actipro Software Support

Posted 11 years ago by Azhagiri Selvam
Avatar
When can we expect a result, so that we can plan our deliverables ?
Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We'll try and get this in soon however we do have a couple high priority things to finish first.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.