【UWP】WindowsFormとの対応表

WindowsForm UWP
クリックイベント private void button_Click(object sender, EventArgs e) private void button_Click(object sender, RoutedEventArgs e)
ラベルコントロール Label TextBlock
コントロール表示 control.Show() control.Visibility = Visibility.Visible
コントロール非表示 control.Hide() control.Visibility = Visibility.Collapsed
テキストボックスクリア textBox.Clear() textBox.Text = “”
テキストボックスKeyDownイベント private void textBox_KeyDown(object sender, KeyEventArgs e) private void textBox_KeyDown(object sender, KeyRoutedEventArgs e)
TextBoxの最終行へスクロール https://dobon.net/vb/dotnet/control/tbscrolltolast.html https://code.msdn.microsoft.com/windowsapps/How-to-scroll-to-the-a8ea5867
タイマー Timerコントロール DispatcherTimerコントロール
タイマーTickイベント private void timer_Tick(object sender, EventArgs e) private void timer_Tick(object sender, object e)
EntityFramework EntityFramework Microsoft.EntityFrameworkCore

プロジェクトのターゲットの最小バージョンをWindows 10 Fall Creators Updateに上げないと、NuGetから入れられない

SQLite System.Data.SQLite Microsoft.EntityFrameworkCore.Sqlite

SqliteConnectionやSqliteCommandのようにSQLiteの表記が先頭以外小文字になっているので注意

SQLite新規ファイル作成 SQLiteConnection.CreateFile(“ファイル名”); CreateFileが無くなっていた・・・
アクセスするだけで、0KBのファイルが作成された。
フォルダ名を指定せずにファイル作成 カレントディレクトリに作成される Windows.Storage.ApplicationData.Current.LocalFolder.Path

例)C:\Users\ユーザ名\AppData\Local\Packages\xxxxx-xxxxx-xxxxx-xxxxx_xxxxx\LocalState