nikobarli
Topic Author
Posts: 180
Joined: 26 Apr 2017, 06:23

Are "IsDefault" and "IsCancel" supported in the current Noesis ?

01 Jul 2022, 07:49

Hi,

Are "IsDefault" and "IsCancel" are supported in the current Noesis ?

https://docs.microsoft.com/en-us/dotnet ... mework-4.8
https://docs.microsoft.com/en-us/dotnet ... mework-4.8

The properties are available in Noesis but they are seem not implemented yet.

https://www.noesisengine.com/docs/Gui.Core._Button.html
 
User avatar
sfernandez
Site Admin
Posts: 2569
Joined: 22 Dec 2011, 19:20

Re: Are "IsDefault" and "IsCancel" are supported in the current Noesis ?

01 Jul 2022, 10:19

Hi,

Unfortunately no, although the properties are exposed, there is no logic regarding that feature.
Could you please report it in our bugtracker?
 
nikobarli
Topic Author
Posts: 180
Joined: 26 Apr 2017, 06:23

Re: Are "IsDefault" and "IsCancel" are supported in the current Noesis ?

01 Jul 2022, 11:30

Thanks, I added the feature request here: https://www.noesisengine.com/bugs/view.php?id=2369

In the meantime, what is the best way to mimic this behavior with the current Noesis. We are thinking to use this feature to close input form dialogs.
 
User avatar
sfernandez
Site Admin
Posts: 2569
Joined: 22 Dec 2011, 19:20

Re: Are "IsDefault" and "IsCancel" are supported in the current Noesis ?

04 Jul 2022, 18:38

In the meantime, what is the best way to mimic this behavior with the current Noesis. We are thinking to use this feature to close input form dialogs.
You can use KeyBindings in the dialog to associate the same commands that the Ok/Cancel buttons have.
<Grid>
  <Grid.InputBindings>
    <KeyBinding Gesture="Enter" Command="{Binding OkCommand}"/>
    <KeyBinding Gesture="Escape" Command="{Binding CancelCommand}"/>
  </Grid.InputBindings>
  ...
</Grid>

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 1 guest