peregrine66 / peregrinesview Goto Github PK
View Code? Open in Web Editor NEWCode samples & library for my C# / WPF / MVVM blog
Home Page: http://peregrinesview.uk/
License: MIT License
Code samples & library for my C# / WPF / MVVM blog
Home Page: http://peregrinesview.uk/
License: MIT License
In the file WeakPropertyChangedEventHandler (ViewModels) I encountered two erros, maybe due to a previous code layout.
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);
WeakPropertyChangedProperties CleanupEverything : _weakSouce doesnt have TryGetValue
INotifyPropertyChanged source = _weakSouce.Target; if(source != null).....
if (_weakSource.TryGetValue)
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')
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;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.