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条回答 默认 最新

  • 关注
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?