Skip to content

Commit

Permalink
v0.2.1 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwscdv3 committed Oct 24, 2019
1 parent f42e64a commit ca2d1e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FloatingPointPlayground/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public MainWindow()
{
InitializeComponent();
Update();
txtFloat.CaretIndex = 1;
txtFloat.Focus();
}

private void Update()
Expand All @@ -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;
}
Expand Down

0 comments on commit ca2d1e0

Please sign in to comment.