简体   繁体   English

如何初始化template10基础架构以启动应用程序

[英]How to initialize template10 infrastructure to start application

Good Day, 美好的一天,

Im having an issue with https://github.com/Windows-XAML/Template10 我对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: 在My View上可以说我有一个文本框,其text属性绑定到了我的VM(注意:我的VM从template10继承了BindableBase:

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 但是每次我在文本框上输入文本时,Im都会引用一个空引用RaisePropertyChanged的异常

I think I need to instialize template10 using BootStrapper on my app.xaml.cs 我想我需要在我的app.xaml.cs上使用BootStrapper来初始化template10

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 搜索后发现您只需要安装template10模板包: https : //marketplace.visualstudio.com/items?itemName=jerry-nixon.Template10TemplatePack

then just select template10 template then its all set please see image attached: 然后只需选择template10模板,然后设置所有模板,请参见所附图片: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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