Int32EditBox doesn't trigger setter if value is in selection mode

Editors for WPF Forum

Posted 12 years ago by Mariano Spiegelberg
Version: 12.1.0562
Avatar

Hi !

                    <editors:Int32EditBox 
			 x:Name="MipmapLevel" VerticalAlignment="Center"
			 Width="37"
		         Value="{Binding Path=CurrentMipMapLevel, Mode=TwoWay}"
                         Maximum="{Binding Path=MaxMipMapLevel}"
		         Minimum="{Binding Path=MinimumMipMapLevel}"
                         SpinnerVisibility="Visible"/>

I use this control to set mipmaplevel and if I use the spinner of this control, everything is fine and works great. The "Value"  can be changed within the limits ( min / max ) and the setter of "CurrentMipMapLevel" is triggered. BUT... if you go to the limits, the next spinner click leads you to a selection mode of this control ( e.g. you're at 7, click to max = 8 and the next up click leads you to selection of the Value 8 in the edit area of this control. From now on you can set the Value from min to max ( 0-8 ) with the spinner but the setter isn't called and a converter isn't called too. You have to remove the focus ( anyhow ) from this control to update the binding and let the setter be called. I want to avoid the selection mode after reaching a limit ( min or max ) and I need binding updates while I am in the selection mode ( if I click into the edit area of the Value ). How can I do this ? Thanks for your reply.

 

We use: 

- ActiproSoftware.Editors.Wpf in version 11.2.553.0

- .NET Framework 4.0 ( 4.0.30319 SP1Rel

- Visual Studio 2010 Ultimate ( 10.0.40219.1 SP1Rel )

Comments (1)

Posted 12 years ago by Mariano Spiegelberg
Avatar

At least the update issue is fixed.

I added a UpdateSourceTrigger=PropertyChanged and everything is fine and works.

WPF source looks like that... 

<editors:Int32EditBox 
	 x:Name="MipmapLevel" VerticalAlignment="Center"
	 Width="37"
	 Value="{Binding Path=CurrentMipMapLevel, 
         UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
         Maximum="{Binding Path=MaxMipMapLevel}"
         Minimum="{Binding Path=MinimumMipMapLevel}"
         SpinnerVisibility="Visible"/>           

[Modified 12 years ago]

The latest build of this product (v24.1.2) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.