View Issue Details

IDProjectCategoryView StatusLast Update
0005326NoesisGUIStudiopublic2026-11-25 13:27
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version4.0 
Summary0005326: Triggers Are Unable To Remove Focus From A Focused Element
Description

Currently, we are able to establish Focus on an Element within a hierarchy by default by pressing the ArrowKeys in any direction whilst Focusable Elements are present on-Stage.

However, it appears that once Focus has been established in a Page being played, Focus cannot not be removed during the playthrough.

See attached video.


Repro Steps:

1) Download, unzip, and open the attached 'RemoveFocusAction' Project in Studio, and opening MainPage.xaml.

2) Identify Button_A3 (bottom left of the grid of Buttons).

3) In the Triggers Panel, identify the KeyTrigger applied to this Button, and inspect the Trigger's Properties.
Observe how in theory, whilst Button_A3 is focused, pressing the 'Q' key should change its 'Focusable' Property to 'Disabled' (not focused).

4) Play the Page, and use the arrowkeys to set the Focus on Button_A3 in the lower-left corner.

5) With Button_A3 still focused, press 'Q' on the Keyboard.
Observe how the Button persists as 'Focused'.

6) Exit Play Mode, select Button_A3, and manually uncheck its 'Focusable Property', then Play the Page again.

7) Whilst in 'Play Mode' use the Arrow keys to navigate around the Grid.
Observe how Button_A3 is correctly being excluded from Focus.

Expected Results: Changing a Focused Element's 'Focusable' Property to 'Unfocused', removes Focus from it during playback.

Attached Files
RemoveFocusAction.zip (1,620 bytes)
PlatformAny

Activities

sfernandez

sfernandez

2026-11-25 12:28

manager   ~0012939

Changing Focusable property to False works as expected, I just verified it with the following xaml:

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  xmlns:system="clr-namespace:System"
  mc:Ignorable="d"
  d:DesignWidth="1920"
  d:DesignHeight="1080" Background="#FF35393D">
  <Grid x:Name="LayoutRoot">
    <b:Interaction.Triggers>
      <b:EventTrigger/>
      <b:KeyTrigger Key="Q">
        <b:ChangePropertyAction TargetName="btnB" PropertyName="Focusable">
          <b:ChangePropertyAction.Value>
            <system:Boolean>False</system:Boolean>
          </b:ChangePropertyAction.Value>
        </b:ChangePropertyAction>
      </b:KeyTrigger>
    </b:Interaction.Triggers>
    <StackPanel Spacing="10" Width="415" Height="368" Margin="686,364,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
      <Button x:Name="btnA" Content="Button A"/>
      <Button x:Name="btnB" Content="Button B"/>
      <Button x:Name="btnC" Content="Button"/>
    </StackPanel>
  </Grid>
</Page>

What happened in your example is that the ChangePropertyAction didn't have the Value set to "False", it still had the default null value, so the action was not changing the Focusable property at all.

The problem is then that we're not communicating correctly that when a bool property is selected, initially NO value is assigned, you have to click twice the checkbox to go to True and then False.

dstewart

dstewart

2026-11-25 13:27

developer   ~0012940

So in this context you added , what I would probably expect:

Unchecked Checkbox=False (always)

Checked Checkbox=True (always)

Null Values are 'opt-in' and set by accessing the Property's 3-Dot Menu and manually performing a 'Set Null' which then adorns it in Yellow similar to the attached example, but where it would be linked to the Checkbox, and not the Input Field.

Purely from an experience standpoint, I think I'd expect it to be set to 'Unchecked/False' by default instead of 'Null'.

Doing so also gives the advantage of not having to manually go 'Clear' the 'Null Binding' before being able to set a True or False on the CheckBox itself, since currently 'Null Bindings' need to be 'cleared' before they can be filled.

NullValue.jpg (39,530 bytes)   
NullValue.jpg (39,530 bytes)   

Issue History

Date Modified Username Field Change
2026-11-06 17:29 dstewart New Issue
2026-11-06 17:29 dstewart File Added: RemoveFocusAction.zip
2026-11-06 17:29 dstewart File Added: 2026-11-06 11-20-28.mp4
2026-11-06 17:29 dstewart Description Updated
2026-11-25 12:28 sfernandez Assigned To => sfernandez
2026-11-25 12:28 sfernandez Status new => feedback
2026-11-25 12:28 sfernandez Note Added: 0012939
2026-11-25 13:27 dstewart Note Added: 0012940
2026-11-25 13:27 dstewart File Added: NullValue.jpg
2026-11-25 13:27 dstewart Status feedback => assigned