From ca2d1e049650ebab52f406d7eef2b978a13c0bff Mon Sep 17 00:00:00 2001 From: Dwscdv3 Date: Thu, 24 Oct 2019 15:19:31 +0800 Subject: [PATCH] v0.2.1 bug fix --- FloatingPointPlayground/MainWindow.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FloatingPointPlayground/MainWindow.xaml.cs b/FloatingPointPlayground/MainWindow.xaml.cs index 6177ba9..8da312d 100644 --- a/FloatingPointPlayground/MainWindow.xaml.cs +++ b/FloatingPointPlayground/MainWindow.xaml.cs @@ -30,6 +30,8 @@ public MainWindow() { InitializeComponent(); Update(); + txtFloat.CaretIndex = 1; + txtFloat.Focus(); } private void Update() @@ -42,6 +44,7 @@ private void Update() txtInt.Text = bin.ToString(); txtIntHex.Text = "0x" + bin.ToString("X8"); disableTextChangedEvent = true; + VisualStateManager.GoToElementState(layoutRoot, "Default", true); txtFloat.Text = BitConverter.ToSingle(BitConverter.GetBytes(bin), 0).ToString(); disableTextChangedEvent = false; }