赞
踩
命名空间:
程序集:
System.ObjectModel.dll
通知客户端属性值已更改。
public interface INotifyPropertyChanged
以下为demo
- <Window x:Class="_20INotifyPropertyChanged.MainWindow"
- 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:_20INotifyPropertyChanged"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <TextBox Height="30" Width="288" Text="{Binding Name}"></TextBox>
- <Button Height="50" Width="288" Command="{Binding ShowCommand}" Content="点击" Margin="256,283,256,102"></Button>
- </Grid>
- </Window>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。