How to bind local property on control in WPF

Try: Content=”{Binding ElementName=_this, Path=CompanyName}” Without the DataContext binding. EDIT I have no problems with your code, have named your window to x:Name=”_this”? <Window x:Class=”WpfStackOverflowSpielWiese.Window3″ xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”Window3″ Height=”300″ Width=”300″ x:Name=”_this”> <Grid> <StackPanel> <Button HorizontalAlignment=”Center” Name=”btnChange” Click=”btnChange_Click” Content=”Click Me” /> <Label Name=”lblCompanyId” HorizontalAlignment=”Center” DataContext=”{Binding ElementName=_this}” Content=”{Binding Path=CompanyName}”></Label> </StackPanel> </Grid> </Window> Is your window really Window3? public … Read more

iphone local notification in simulator

Yes, local notifications work with the simulator. However, make sure you are implementing application:didreceiveLocalNotification in your app delegate if you want to see the notification while your app is in the foreground: – (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@”MyAlertView” message:notification.alertBody delegate:self cancelButtonTitle:@”OK” otherButtonTitles:nil]; [alertView show]; if (alertView) { [alertView release]; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)