Great_Enterprise 2019-12-28 13:24 采纳率: 0%
浏览 431

VS2019未到return就突然函数执行结束

图片说明
构造函数执行到第47行就返回了,断点检测到的,程序没有爆出任何异常。
之前代码都一直是正常执行的,突然一次编译就这样了
而且突然所有的数据绑定和命令绑定都失效了。
有谁遇见过吗?

<Page xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="VRnew.View.ManagePatientView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
       xmlns:local="clr-namespace:VRnew.View"
      mc:Ignorable="d" 

      DataContext="{Binding managePatientViewModel, Source={StaticResource Locator}}"
      x:Name="ManagePatientVMPage"
      Title="ManagePatientView">

            <telerik:RadButton x:Name="FlushButton" Grid.Row="4" Grid.Column="0"
                           Content="刷新"  FontSize="25"
                           Command="{Binding DataContext.FlushPatient ,ElementName=ManagePatientVMPage}" 
                            telerik:StyleManager.Theme="Office2016Touch"
            ></telerik:RadButton>

这是View层的

private RelayCommand _flushpatient;
        public RelayCommand FlushPatient =>
        _flushpatient ?? (_flushpatient = new RelayCommand
        (async () =>
        {
            PatientInformationIE = managePatientModel.GetAllPatient(); 
        })
        );

这是VM层的,点击flush按钮没有触发command,断点不执行这里。

  • 写回答

1条回答

  • 关注
    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集