Windows 8 Metro: Implementing Validation

前端 未结 3 643
别那么骄傲
别那么骄傲 2021-01-18 18:10

I just googled for about 2 hours and didn\'t find anything.

Given the following scenario:

public class Person
{
    [Required]
    public string Name         


        
3条回答
  •  逝去的感伤
    2021-01-18 18:40

    Just use events in the particular XAML control, like if in textbox use pointerexited and write a function in the code behind to perform the required validation.

提交回复
热议问题