Unable To Bind Current data context in UWP

huangapple go评论50阅读模式
英文:

Unable To Bind Current data context in UWP

问题

如何从视图模型设置的数据上下文中获取当前页面元素名称
请查看图片以获取代码和描述,代码描述

英文:

How to get current page element name if data context set from the view model
Please check image for Code and description, Code Descriptioon

答案1

得分: 0

请尝试为您的要求,给viewmodel实例一个x:Name,并使用x:Bind访问MyViewModel.SaveButton

英文:

For your requirement, Please try to give the viewmodel instance a x:Name and access with x:Bind MyViewModel.SaveButton

huangapple
  • 本文由 发表于 2020年1月6日 16:48:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/59609061.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定