Skip to content

Commit ca2d1e0

Browse files
committed
v0.2.1 bug fix
1 parent f42e64a commit ca2d1e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FloatingPointPlayground/MainWindow.xaml.cs

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public MainWindow()
3030
{
3131
InitializeComponent();
3232
Update();
33+
txtFloat.CaretIndex = 1;
34+
txtFloat.Focus();
3335
}
3436

3537
private void Update()
@@ -42,6 +44,7 @@ private void Update()
4244
txtInt.Text = bin.ToString();
4345
txtIntHex.Text = "0x" + bin.ToString("X8");
4446
disableTextChangedEvent = true;
47+
VisualStateManager.GoToElementState(layoutRoot, "Default", true);
4548
txtFloat.Text = BitConverter.ToSingle(BitConverter.GetBytes(bin), 0).ToString();
4649
disableTextChangedEvent = false;
4750
}

0 commit comments

Comments
 (0)