Giter Club home page Giter Club logo

Comments (10)

h82258652 avatar h82258652 commented on May 17, 2024

I need this demo too. I saw this feature on msdn, but there have not any documents.

from windows-universal-samples.

bricelam avatar bricelam commented on May 17, 2024

@h82258652 I looked more into it on VS 2015 RC, and the properties aren't even available. But, as you said, it's mentioned in Whatโ€™s new for developers in Windows 10.

from windows-universal-samples.

h82258652 avatar h82258652 commented on May 17, 2024

@bricelam
Thanks, I can not find these classes on VS 2015 RC either. But I had been seen them on VS 2015 CTP6. Maybe MS remove this feature now?
Hopefully this feature can come back in the official Win 10 version. Validate input is necessary. Just like the model validation in asp.net mvc.

from windows-universal-samples.

bricelam avatar bricelam commented on May 17, 2024

FYI, patterns & practices has some good guidance on implementing validation yourself, but it will sure be nice to have it built in.

from windows-universal-samples.

h82258652 avatar h82258652 commented on May 17, 2024

Emm, great article. But I think this:

<TextBox x:Name="FirstNameValue"
         Grid.Row="2"
         Text="{Binding UserInfo.FirstName, Mode=TwoWay}">
    <interactivity:Interaction.Behaviors>
        <quickstartbehaviors:HighlightFormFieldOnErrors PropertyErrors="{Binding UserInfo.Errors[FirstName]}" />
    </interactivity:Interaction.Behaviors>

</TextBox>

can be more better. We write "FirstName" twice. The validation system should know what property we are binding.
I found this method on msdn: https://msdn.microsoft.com/en-us/library/ms598124(v=vs.110).aspx
This method is also available in WPF and Windows Runtime.
We pass a dependency property to this method, if this dependency property is binding now, it will return a object which contains binding path, binding source and etc.
Maybe we can use this to build our validation framework.

from windows-universal-samples.

AdamBraden avatar AdamBraden commented on May 17, 2024

This topic is increasing in scope, I've reached out to the owners of this API to respond on this thread specifically about samples in this area. I recommend moving the more in-depth discussion to the Developing Universal Windows apps forum - https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=wpdevelop

from windows-universal-samples.

h82258652 avatar h82258652 commented on May 17, 2024

@AdamBraden
So MS decided to remove this feature?

from windows-universal-samples.

bricelam avatar bricelam commented on May 17, 2024

I've reached out to the owners of this API to respond ... about samples in this area.

Thank you.

from windows-universal-samples.

timheuer avatar timheuer commented on May 17, 2024

Hi @bricelam thanks for this note. Unfortunately, yes these features for validation will not make it in the final release for Windows 10 right now. We had some good initial feedback from customers that we weren't delivering the expectations and we want more time to get this right before delivering something that wasn't going to meet customers needs primarily. This remains on our backlog for prioritizing against ongoing/new customer requests.

from windows-universal-samples.

h82258652 avatar h82258652 commented on May 17, 2024

@timheuer
Thanks you.
Emm, Iโ€˜m trying now, but resolve the binding path to property is difficult.

from windows-universal-samples.

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.