Home > Net >  Urgent, when compiling platform for X64 Xaml designer cannot show on the value of the Viewmodel
Urgent, when compiling platform for X64 Xaml designer cannot show on the value of the Viewmodel

Time:11-25

When the platform for AnyCPU and X86 are normal,

X64:


X86 or AnyCPU:


 
XMLNS="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
XMLNS: x="http://schemas.microsoft.com/winfx/2006/xaml"
XMLNS: d="http://schemas.microsoft.com/expression/blend/2008"
XMLNS: MC="http://schemas.openxmlformats.org/markup-compatibility/2006"
XMLNS: local="CLR namespace: CefTest"
MC: Ignorable="d"
Title="MainWindow" Height="450" Width="800" & gt;








 
Public class TestM: INotifyPropertyChanged
{
Private string _tes="123123123123";

Public TestM () {}

Public string TextStr
{
The get=& gt; _tes;
Set
{
If (_tes!=value)
{
_tes=value;
RaisePropertyChanged ();
}
}
}


The public event PropertyChangedEventHandler PropertyChanged;

Protected void RaisePropertyChanged ([CallerMemberName] string propertyName=null)
{
PropertyChanged? Invoke (this, new PropertyChangedEventArgs (propertyName));
}
}
  •  Tags:  
  • C#