View Issue Details

IDProjectCategoryView StatusLast Update
0004315NoesisGUIStudiopublic2025-07-29 18:32
Reporterfllorens Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004315: Property dropdown empty for ChangePropertyAction targeting FindAncestor binding
Description

No way to acces properties like IsSelected from ancestors inside ListBox Item DataTemplates.

  1. Create listbox with a ListBoxItem template
  2. Create a trigger with a ChangePropertyAction
  3. Bind the Target to FindAncestor>ListBoxItem
  4. Properties dropdown appears empty
Attached Files
imatge.png (55,585 bytes)   
imatge.png (55,585 bytes)   
PlatformAny

Activities

sfernandez

sfernandez

2025-07-28 16:44

manager   ~0010932

The Target property in ChangePropertyAction can only select named elements. You can define a FindAncestor binding, then use "Name" as the binding Path, in case the specified control type has a name.

I think we need to extend the Target property editor to support objects too, not only names.

fllorens

fllorens

2025-07-29 18:32

developer   ~0010936

Last edited: 2025-07-29 18:32

Indeed. I can make it work writing it like this:

      <b:ChangePropertyAction PropertyName="IsSelected" Value="True" TargetObject="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>

Instead using the Studio I'm getting this:

      <b:ChangePropertyAction TargetName="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" Value="True"/>

Issue History

Date Modified Username Field Change
2025-07-23 13:30 fllorens New Issue
2025-07-23 13:30 fllorens File Added: imatge.png
2025-07-28 16:37 sfernandez Assigned To => sfernandez
2025-07-28 16:37 sfernandez Status new => assigned
2025-07-28 16:37 sfernandez Target Version => Studio_Beta
2025-07-28 16:44 sfernandez Status assigned => feedback
2025-07-28 16:44 sfernandez Note Added: 0010932
2025-07-29 18:32 fllorens Note Added: 0010936
2025-07-29 18:32 fllorens Status feedback => assigned
2025-07-29 18:32 fllorens Note Edited: 0010936