GithubHelp home page GithubHelp logo

ProgressBar bug about fayde HOT 9 CLOSED

Sally-Xu avatar Sally-Xu commented on August 14, 2024
ProgressBar bug

from fayde.

Comments (9)

Sally-Xu avatar Sally-Xu commented on August 14, 2024

Testing XAML:

<controls:NumericUpDown x:Name="SliderValue" DecimalPlaces="0" Increment="1" Value="50" />
<ProgressBar Value="{Binding ElementName=SliderValue, Path=Value}" Height="20" Margin="0,5" Width="300"/>

from fayde.

BSick7 avatar BSick7 commented on August 14, 2024

This testing xaml is for NumericUpDown instead of ProgressBar.

from fayde.

Sally-Xu avatar Sally-Xu commented on August 14, 2024
  1. Looks like the DefaultStyle is not missing, but for some reason it doesn't show the initial value until the Value changes (using Metro Theme doesn't have this problem). Test with this XAML:
    <ProgressBar Value="50" Height="20" />

from fayde.

Sally-Xu avatar Sally-Xu commented on August 14, 2024
  1. Setting Width on the ProgressBar makes the Progress to show as 100% regardless the current Value.
    Testing XAML:
    <ProgressBar Value="30" Height="20" Width="200" Margin="0,5" />

from fayde.

Sally-Xu avatar Sally-Xu commented on August 14, 2024
  1. Binding only works when set Mode=TwoWay on the ProgressBar, We should only need one way binding for ProgressBar as the control is a readonly control. In this testing I'm using ProgressValue NumericUpDown Control to enter the progress value. I also tested binding the ProgressBar.Value to a ViewModel's Progress property which gave me the same result:

Testing XAML:
<controls:NumericUpDown x:Name="ProgressValue" DecimalPlaces="0" Increment="1" Value="50" />
this XAML one doesn't work:

<ProgressBar Value="{Binding ElementName=ProgressValue, Path=Value}" Height="20" Margin="0,5" />

this XAML works:
<ProgressBar Value="{Binding ElementName=ProgressValue, Path=Value, Mode=TwoWay}" Height="20" Margin="0,5" />

from fayde.

Sally-Xu avatar Sally-Xu commented on August 14, 2024
  1. Using the same testing XAML in case 3. Make sure to use Metro Style. I don't get the error when using Default style.

from fayde.

BSick7 avatar BSick7 commented on August 14, 2024

Should be fixed. Please retry.

from fayde.

Sally-Xu avatar Sally-Xu commented on August 14, 2024

Number 3 is still not fixed, still need to set Binding mode = TwoWay. All others are working as expected.

from fayde.

BSick7 avatar BSick7 commented on August 14, 2024

Fixed binding. Coercing of Maximum and Value in RangeBase was clearing the binding expression. Pushed nuget package 0.9.8.8.

from fayde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.