<pre> public class Intestazione : INotifyPropertyChanged { #region Propery Changed public event PropertyChangedEventHandler PropertyChanged; private void RaiseProperChanged([CallerMemberName] string caller = "") => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(caller)); #endregion private string _intestazione; public string Denominazione { get => _intestazione; set { _intestazione = value; RaiseProperChanged("Denominazione"); } }
xmlns:local1="clr-namespace:Fatturazione.Models" d:DataContext="{d:DesignInstance Type=local1:Intestazione}"
<stackpanel orientation="Vertical"> <textblock x:name="txtBlock_intestazione" style="{StaticResource TbIntestazione}" text="{Binding Denominazione}">
[CallerMemberName]
RaisePropertyChanged();
public string Denominazione { get { return _intestazione; } set { _intestazione = value; RaisePropertyChanged(); } }
TextBlock
Intestazione
<TextBlock x:name="txtBlock_intestazione" Style="{StaticResource TbIntestazione}" Text="{Binding Path=Denominazione, UpdateSourceTrigger=PropertyChanged}"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)