- Jul 06 Wed 2022 18:07
-
WPF視窗元件截圖
- Jan 28 Sun 2024 08:48
-
Google開源專案風格指南
參考資料,繁體:
https://tw-google-styleguide.readthedocs.io/en/latest/index.html
英文原文:
https://github.com/google/styleguide
https://tw-google-styleguide.readthedocs.io/en/latest/index.html
英文原文:
https://github.com/google/styleguide
- Aug 20 Sun 2023 11:26
-
iOS行動數據的低數據模式觀察記錄
- Jun 24 Sat 2023 16:10
-
C++11取得和轉換thread::id
參考
https://en.cppreference.com/w/cpp/thread/thread/id/operator_ltlt
https://en.cppreference.com/w/cpp/string/basic_string/stol
https://en.cppreference.com/w/cpp/thread/thread/id/operator_ltlt
https://en.cppreference.com/w/cpp/string/basic_string/stol
- May 08 Mon 2023 22:38
-
打造未來的清華 - 未來的成功湖
- Mar 12 Sun 2023 09:50
-
臺北監獄圍牆遺跡 - Remains of Taipei Prison Wall
- Mar 01 Wed 2023 21:28
-
茶花(Camellia)
- Jan 26 Thu 2023 14:13
-
SimCity 3000 - 地標(Landmarks)
- Sep 14 Wed 2022 02:05
-
太魯閣國家公園的猴子
- Jul 17 Sun 2022 18:16
-
補充及優化資料結構與DataGrid建立關聯檢視

補充範例及優化程式碼,進一步將XAML上關於欄位(DataGridTextColumn)的描述收攏到C#端的程式碼內
//將log加入AppLog動態資料集(_appLogCollection),顯示在DataGrid上
void AppendLog(LogLevel level, string msg, [CallerLineNumber] int lineNumber = 0, [CallerMemberName] string memberName = "")
{
AppLog log = new AppLog()
{
Level = level.Name.ToUpper(),
ThreadID = Thread.CurrentThread.ManagedThreadId,
Message = msg,
CallerLineNumber = lineNumber,
CallerMemberName = memberName,
};
- Jul 17 Sun 2022 18:10
-
資料結構(INotifyPropertyChanged)與DataGrid建立關聯檢視

接續之前的ObservableCollection<string>,在此紀錄動態資料ObservableCollection<INotifyPropertyChanged>的簡單範例,以常見的程式log舉例
上圖是之前字串轉列舉(static Enum ConvertTo(this string obj, Type enumType))範例的log







