I am studing Telerik Silverlight demo code (RadControls for Silverlight Q1 2013).
I created a new TestString property in QuickStartUI_SL/ViewModels/MainViewModel.cs
private string testString;
public string TestString
{ get { return testString; }
set { testString = value; this.OnPropertyChanged("TestString");}
}
Then I assign TestString value and bind this property in Examples/GanttView.Silverlight/FirstLook/Example.xaml
like: <TextBlock Text="{Binding TestString}" Style="{StaticResource DemoGroupTextBlock}" />
But it failed. The value is null.
Anybody guide me how can I do?
I created a new TestString property in QuickStartUI_SL/ViewModels/MainViewModel.cs
private string testString;
public string TestString
{ get { return testString; }
set { testString = value; this.OnPropertyChanged("TestString");}
}
Then I assign TestString value and bind this property in Examples/GanttView.Silverlight/FirstLook/Example.xaml
like: <TextBlock Text="{Binding TestString}" Style="{StaticResource DemoGroupTextBlock}" />
But it failed. The value is null.
Anybody guide me how can I do?