wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

NavigationBase能否提供GetContext方法?

Open RocChing opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe

NavigationBase已经提供SetContext方法,为什么不提供 GetContext方法?

希望_navigationService提供对应的GetContext方法 ,拿到 DataContext后,可以初始化一些赋值操作;

或者是希望跳转到某个页面时可以添加一些参数,比如如下的重载;

bool Navigate(string pageTag , Dictionary<string,object> parameter); bool Navigate(Type pageType , Dictionary<string,object> parameter);

Describe the solution you'd like

NavigationBase已经提供SetContext方法,为什么不提供 GetContext方法?

希望_navigationService提供对应的GetContext方法 ,拿到 DataContext后,可以初始化一些赋值操作;

或者是希望跳转到某个页面时可以添加一些参数,比如如下的重载;

bool Navigate(string pageTag , Dictionary<string,object> parameter); bool Navigate(Type pageType , Dictionary<string,object> parameter);

Describe alternatives you've considered

No response

Additional context

No response

RocChing avatar Nov 09 '22 05:11 RocChing

Please keep the communication in English.

pomianowski avatar Nov 09 '22 20:11 pomianowski

学习一下中文可能对你会有帮助。

RocChing avatar Nov 10 '22 01:11 RocChing