Skip to content
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

Closed
SuperJMN opened this issue Dec 13, 2016 · 9 comments
Closed

[Slider] Two-Way Binding to Slider.Value produces Stack Overflow #824

SuperJMN opened this issue Dec 13, 2016 · 9 comments
Labels
Milestone

Comments

@SuperJMN
Copy link
Contributor

SuperJMN commented Dec 13, 2016

It happened with this Binding:

<Slider Value="{Binding MyValue, Mode=TwoWay}"  />

To avoid the problem I had to set the OneWayToSource mode.

@grokys grokys added this to the Alpha 5 milestone Jan 7, 2017
@grokys
Copy link
Member

grokys commented Jan 7, 2017

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.

@donandren
Copy link
Contributor

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.

donandren added a commit to donandren/Avalonia that referenced this issue Jan 15, 2017
donandren added a commit to donandren/Avalonia that referenced this issue Jan 15, 2017
@danwalmsley
Copy link
Member

@jameswalmsley also experienced this bug.

donandren added a commit to donandren/Avalonia that referenced this issue Feb 16, 2017
donandren added a commit to donandren/Avalonia that referenced this issue Feb 26, 2017
donandren added a commit to donandren/Avalonia that referenced this issue Feb 26, 2017
… behind scenes is using weakobservable
donandren added a commit to donandren/Avalonia that referenced this issue Feb 26, 2017
donandren added a commit to donandren/Avalonia that referenced this issue Feb 26, 2017
@danwalmsley
Copy link
Member

Just experienced this too!

@danwalmsley
Copy link
Member

@danwalmsley
Copy link
Member

above file is a minimal repro

@wieslawsoltes
Copy link
Collaborator

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>

@kekekeks kekekeks added the bug label Oct 12, 2017
@kekekeks
Copy link
Member

Clicking on a checkbox in BindingTest also produces a stack overflow

@jkoritzinsky
Copy link
Collaborator

Fixed by #856.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants