Support dynamic language key#22
Open
Cricle wants to merge 1 commit into
Open
Conversation
Contributor
|
這樣的使用方式太繁瑣了,必需要給xaml上的元件一個name,然後在.cs裡面寫兩行,每一個綁定都要,如果我要做一個選單,選單內容來自資料庫,數量不特定,選單文字也要多國語言,這樣的寫法就很難達成,也無法MVVM 可以參考這個的做法 |
Owner
Author
麻烦是有点,但是我目标还是适用于任意UI框架的,所以我有空看看有没有类似你的但是更简单的方式去实现 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Import
ILangKeyinterface andLangKeyclass forAo.Lang, support dynamic language key.Usage:
When changed
LangKey.Key, the property will be raise update value.Fixed #21
TODO: