为什么WPF会忽略此ToString()覆盖? (F#)

时间:2016-11-11 20:35:38

标签: wpf string mvvm binding f#

我有以下

[[1,2,3],[1,4,5],[6,7,8],[6,9,10]]

现在在WPF中,第一个绑定不起作用,它在我的WPF应用程序中什么都不生成。如果我在绑定路径中指定“FullName”属性,它只显示文本。

type GivenName() =
    inherit VMBase()
    member this.First
        with get() = this.Get(<@ this.First @>, String.Empty)
    member this.Middle
        with get() = this.Get(<@ this.Middle @>, String.Empty)
    member this.Last
        with get() = this.Get(<@ this.Last @>, String.Empty)
    member this.Prefix
        with get() = this.Get(<@ this.Prefix @>, String.Empty)
    member this.Suffix
        with get() = this.Get(<@ this.Suffix @>, String.Empty)
    member this.FullName
        with get() = this.Get(<@ this.FullName @>, String.Empty)
        and set (value) = parseName value
    member this.Generation
        with get() = this.Get(<@ this.Generation @>, String.Empty)

    override this.ToString() = 
        this.FullName

0 个答案:

没有答案