-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slider] Two-Way Binding to Slider.Value produces Stack Overflow #824
Comments
Could we get a repro for this? I tried changing this control to a slider with a two-way binding but didn't get a stack overflow. |
With the recent versions I'm also experiencing StackOverflow with Binding in some situations. I think this exception is not related to Slider, but it's more general problem in the new binding subsystem (from the last few months). Will try to find repro or unit test. |
@jameswalmsley also experienced this bug. |
… behind scenes is using weakobservable
…scenes is using weakobservable
Just experienced this too! |
above file is a minimal repro |
Had same issue today. <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Core2D.Avalonia.Views.Style;assembly=Core2D.Avalonia">
<Grid RowDefinitions="Auto,Auto,Auto,Auto" ColumnDefinitions="Auto,*,50">
<TextBlock Classes="default" Grid.Column="0" Grid.Row="0" Text="A"/>
<Slider Classes="default" Grid.Column="1" Grid.Row="0" Value="{Binding A, Mode=TwoWay}" Minimum="0" Maximum="255"/>
<TextBox Classes="default" Grid.Column="2" Grid.Row="0" Text="{Binding A, Mode=TwoWay}"/>
</Grid>
</UserControl> |
Clicking on a checkbox in BindingTest also produces a stack overflow |
Fixed by #856. |
It happened with this Binding:
<Slider Value="{Binding MyValue, Mode=TwoWay}" />
To avoid the problem I had to set the OneWayToSource mode.
The text was updated successfully, but these errors were encountered: