Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have view ,view model and objectclass

C#
public class TestObject
   {

       private static string _sTitle;

       public static string Title
       {
           get; set;
       }
   }


C#
public class TestViewModel : INotifyPropertyChanged
   {

     public TestViewModel()
     {

     }

       public event PropertyChangedEventHandler PropertyChanged;

       protected virtual void OnPropertyChanged ( string sProperty )
       {
           if ( PropertyChanged != null ) { PropertyChanged ( this , new PropertyChangedEventArgs ( sProperty ) ); }
       }
   }


XML
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local ="clr-namespace:Test"
        Height="350" Width="525"
      Title="{Binding ???}" >
    <Grid>
       
    </Grid>
</Window>


how to bind and refresh according with TestObject.Tiltle? please help me

What I have tried:

i done every thing.i didnt get any solution
Posted
Updated 31-Aug-16 3:33am
v4

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900