<Grid Height="30" Width="190" HorizontalAlignment="Center" Margin="900, 145, 20, 0" VerticalAlignment="Top"> <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="25" Margin="0, 0, 0, 0" Width="190"> <Label x:Name="lblFederal" HorizontalAlignment="Right" Content="{Binding Amts.FederalTotal}" Width="90" Height="25" FontSize="10pt" /> <Label x:Name="lblState" HorizontalAlignment="Right" Content="{Binding Amts.StateTotal}" Width="90" Height="25" Margin="15, 0, 0, 0" FontSize="10pt" /> </StackPanel> </Grid>
MainWindow _mainWindow; MainWindowVM _mainWindowVM; _mainWindow.lblFederal.Content = "20"; _mainWindowVM.Amts.FederalTotal = "20"; _mainWindowVM.updateAmounts(20, 20);
ViewModel
INotifyPropertyChanged
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)