produproperty.ViewModel.viewModel.viewModel C# (CSharp) Method

viewModel() public method

public viewModel ( ) : System
return System
        public viewModel()
        {
            _m = new model(this);
            OnPropertyChanged("text");
            OnPropertyChanged("name");

            object temp;
            if (ApplicationData.Current.LocalSettings.Values.TryGetValue("width", out temp))
            {
                Width = temp as string;
            }
            else
            {
                Width = "20";
            }

            Advertisement = @"
作者:lindexi_gd
邮箱:[email protected]
博客地址:http://blog.csdn.net/lindexi_gd   在原博客看会有好的排版";
        }