简体   繁体   中英

Change Entities name in WPF MVVM scaffolding from DevExpress

How to change entities name for UserControl Header? I am create CodeFirst EF6 model and use scaffolding wizard from DevExpress. I change Entities name in NavBarControl in ViewModel for CollectionView, but how to change entites name for new opened View?

Main problem picture

I suggest you override the GetTitleForNewEntity method of your IncomingViewModel (derived from the SingleObjectViewModel<Incoming,...> ):

protected virtual string GetTitleForNewEntity() {
    return typeof(TEntity).Name + CommonResources.Entity_New;
}

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