2019/05/21

[C#] WPF Set App Window Full Screen

之前(這篇)有寫到怎麼抓螢幕的尺寸,為了讓App 可以在不同螢幕尺寸下都能保持全螢幕,可以用以下寫法。

[C#] WPF Get Screen Width and Height

double screen_h = System.Windows.SystemParameters.PrimaryScreenHeight;
double screen_w = System.Windows.SystemParameters.PrimaryScreenWidth;

2019/05/16

[Android] Set Full Screen

一般APP的畫面執行時,畫面上會包含裝置本身的狀態列。如果想要全螢幕顯示的話,這邊有個方法可以把狀態列隱藏起來。

2019/05/10

[Android] Get Current Time

從系統直接抓時間資訊,包含秒、分、時、日期、年份...等