简体   繁体   中英

How to initialize template10 infrastructure to start application

Good Day,

Im having an issue with https://github.com/Windows-XAML/Template10

on My View lets say I have a textbox and its text property is bound to my VM(Note: My VM inherited BindableBase from template10:

private string _sampleText;
    public string SampleText {
        get { return _sampleText; }
        set { this.SetProperty(ref _sampleText, value); }
    }

but every time I input a text on my text box Im having a null reference Exception from RaisePropertyChanged

I think I need to instialize template10 using BootStrapper on my app.xaml.cs

How is that?

Thanks

After searching found out that you just need to install template10 template pack: https://marketplace.visualstudio.com/items?itemName=jerry-nixon.Template10TemplatePack

then just select template10 template then its all set please see image attached: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM