スクエアエニックスのソフトウェアトークンを、スマートフォンを使わずPCで無理やり使う方法のメモ。
追記:もしかしたら使えないかも・・・。
※最悪スクエニアカウントにログイン出来なくなります。試す場合は公式のソフトウェアトークンの項目を熟読してから試して下さい。またいかなる障害が発生した場合も当ブログは責任を負えませんのでご了承下さい。
// ListBoxのScrollViewerを取得 | |
var border = VisualTreeHelper.GetChild(listBox, 0) as Border; | |
if (border != null) | |
{ | |
listBoxScroll = border.Child as ScrollViewer; | |
if (listBoxScroll != null) | |
{ | |
// スクロールバー非表示 | |
listBoxScroll.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden; | |
// スクロールバーを末尾に移動 | |
listBoxScroll.ScrollToEnd(); | |
} | |
} |
Style style = new Style(typeof(ListBoxItem)); | |
SolidColorBrush brush = new SolidColorBrush(Colors.Transparent); | |
style.Resources.Add(SystemColors.HighlightBrushKey, brush); | |
style.Resources.Add(SystemColors.InactiveSelectionHighlightBrushKey, brush); | |
listBox.ItemContainerStyle = style; |