softfluent / softfluent.windows Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Is the property "IsExpanded" of each Expanders accessible? I want to expand some frequently used categories and collapse others.
I came across a mention on Stack Overflow that the project is "free and open source", but that's a bit indirect and non-specific. Can you add a license file to the repository?
How to hidden the ScrollBar?
[DisplayName("PRG")] public int PRG { get; set; }
If the input is illegal, the PropertyGridProperty throw an exception like this:
An exception of type 'System.ArgumentException' occurred in SoftFluent.Windows.dll but was not handled in user code
Additional information: Cannot convert value {4.} to type 'System.Int32'.
My question is: How to validate the input when using SoftFluent.Windows?
For problem reproduction: https://github.com/ShannonZ/playground
I implemented my version of IDataErrorInfo like this:
But it seems that the validation cannot be triggered when using as a SelectedObject.
What shoud I do to make my own validation procedure work?
Is there any way to set the tooltip of value column. It could be also bonded to Description.
I use the ObjectEditor to edit a sub-object, and that sub-object has a ToString definition that enables a quick view. After editing the sub-object, the ToString will have changed, but the view does not refresh for that new value. Since editing sub-objects does not fire PropertyChanged, I can't refresh the object manually.
Source Code can be download here
Source code for this issue github
I create a class implementing INotifyDataErrorInfo and bound to sf.
But when ErrorChanges(HasError= true), no error information will show in UI.
ValidatesOnNotifyDataErrors was set to True in the corresponding Editor.
I want to know how to block the validation behaviors implemented by AutoObject or PropertyGrid?
I just want to use SF only to auto generate UI controls, no anything more.
[PropertyGridOptions(SortOrder = 14)]
public float RG { get; set; }=1; // positive integer
RG <----> txt.Text
When user typed -1 into txt, an validation will return false. Then RG won't change to -1.
Is it possible to refresh the text("-1") to the correct value of RG when validation return false?
When loading SoftFluent into a .NET 5 WPF project, the build process gives the following warning.
Warning NU1701 Package 'SoftFluent.Windows 1.0.1.6' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0-windows7.0'. This package may not be fully compatible with your project.
Demo solution: https://drive.google.com/open?id=0B9QI8E5qFmuEYzhfcXRJb3V0SEU
Mah_SF.zip (the same with the google drive link)
<DataTemplate x:Key="MyEditor"> <Controls:NumericUpDown Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum = "0" Maximum = "100" Interval ="1" StringFormat="0" HideUpDownButtons = "false"/> </DataTemplate>
[PropertyGridOptions(EditorDataTemplateResourceKey = "MyEditor")] public int age { set; get; } = 18;
When running, the NumericUpDown shows nothing in the textbox.
I've modified the example project to have an Address object in the Customer object, with the template specified as SavableObjectEditor. Expanding the single object within the PropertyGrid opens the editor but no values are specified. Is this expected behavior?
I think the column bound to DisplayName should not be focusable. This can be implemented by adding <Setter Property="Focusable" Value="False"/>
to the relevant style section.
At the same time, the Editor should be focusable. But why there need press the tab key twice to change the focus from a editor to another?
It's not working anymore, at least not for me and I did exactly what the "Wiki Getting Started" told me^^
Alternatively, is there any way to recover the value to old value if data validation fails (when lost focus)?
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.