Giter VIP home page Giter VIP logo

peregrinesview's People

Contributors

peregrine66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

peregrinesview's Issues

WeakPropertyChangedEventHandler fix

In the file WeakPropertyChangedEventHandler (ViewModels) I encountered two erros, maybe due to a previous code layout.

  1. WeakPropertyChangedProperties constructor : WeakReference has a protected constructor, in fact it exposes Create static method, so the class new instance should be instantiated with :
    _weakSouce = WeakReference<INotifyPropertyChanged>.Create(source);
    _weakSouce = new WeakReference<INotifyPropertyChanged>(source);

  2. WeakPropertyChangedProperties CleanupEverything : _weakSouce doesnt have TryGetValue
    INotifyPropertyChanged source = _weakSouce.Target; if(source != null).....
    if (_weakSource.TryGetValue)

FS proplems with no US decimal seperator setting

Fontsize accepts numerical values with decimal separators e.g. <fs *1.16> this will work as expected on computers with US decimal settings.
In other countries of the world it is common to use a comma as decimal separator and the dot as thousand separator. This leads to unexpected results in the current version.
Please exchange the TryParse()… methods with invariant language versions:
=>
private static void SplitTextAtFirstTag

if (relativeSize)
{
if (!double.TryParse(fontSizeText, NumberStyles.Any, CultureInfo.InvariantCulture, out var relativeFontSize))
relativeFontSize = 1.0d;

                    newFontSize = relativeFontSize * fontSize;
                }
                else if (!double.TryParse(fontSizeText, NumberStyles.Any, CultureInfo.InvariantCulture, out newFontSize))
                    newFontSize = fontSize;

BusySpinner sample - binding errors

BusySpinner works correctly, however it reports many binding errors during runtime
e.g.:
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Foreground; DataItem=null; target element is 'Ellipse' (Name='Item11'); target property is 'Fill' (type 'Brush')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=ItemDiameter; DataItem=null; target element is 'Ellipse' (Name='Item11'); target property is 'Height' (type 'Double')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=ItemDiameter; DataItem=null; target element is 'Ellipse' (Name='Item11'); target property is 'Width' (type 'Double')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Foreground; DataItem=null; target element is 'Ellipse' (Name='Item12'); target property is 'Fill' (type 'Brush')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=ItemDiameter; DataItem=null; target element is 'Ellipse' (Name='Item12'); target property is 'Height' (type 'Double')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=ItemDiameter; DataItem=null; target element is 'Ellipse' (Name='Item12'); target property is 'Width' (type 'Double')

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.