Git Product home page Git Product logo

softfluent.windows's People

Contributors

maudchiva avatar meziantou avatar smourier 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

softfluent.windows's Issues

Theme styling

Using MahApps dynamic themes styling, while background is honored, the foreground does not change, and the grid is not readable.

image

Is user-input validation available?

[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?

Editing object in sub-editor does not refresh display of object

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.

Width parse error

Source code for this issue github

  • Reproduce
    capture-8

  • Expected Results
    The width of editor in different tab items should be corrected!

How to block the Validations implemented by AutoObject or PropertyGrid?

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.

Validate problem

I download and run samples project,
When to override a Validate method in Customer
memberName always null, why?

default

How to refresh the content in UI when validation fails?

[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?

NuGet package does not report .NET 5 compatibility

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.

Quirk presentation when using MahApp Controls in Custom Editors

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.

How to disable cell selection highlighting?

I used a textbox+slider as a customized editor. But when select the slider, the whole data grid cell was highlighted. This is ugly. Is it possible to disable cell selection highlighting?
1

SavableObjectEditor not enumerating object properties

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?

Tab-Focusable Issue

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?

Project Outdated?

It's not working anymore, at least not for me and I did exactly what the "Wiki Getting Started" told me^^

How to customize the tooltip when exception thrown?

Is it possible to customize the tooltip to display DataValidationError (without modifying the source code of SF )?

Alternatively, is there any way to recover the value to old value if data validation fails (when lost focus)?

Expected outcome

untitled

Environment

  • SoftFluent.Windows v1.0.0
  • Windows OS win7 x64
  • Visual Studio 2017
  • .NET Framework 4.5

More complicated editor

capture-10

I've searched in the demo but found no relevant examples. How to customize this kind of editors? The data showed in a listbox/DataGrid should be editable.

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.