Graham Willis

Thoughts on the world, and other things!

Category: Code

Decimal marker in WPF grid cell disappears

November 27, 2018November 27, 2018 adminCodeLeave a Comment on Decimal marker in WPF grid cell disappears

When typing numbers into a datagrid cell that should be single (ie the attached datatable has this column as a single) the decimal point is ignored when it is typed after a numeral. When typed after a letter or at…

Read More→

Save a binary file into an XML document

November 10, 2018November 10, 2018 adminCodeLeave a Comment on Save a binary file into an XML document

I couldn’t find a way to save an image file into an XML document so through trial and error I came up with this: Convert the image file to a base64 string Create a CDATA section in the XML file…

Read More→

Recent Posts

  • Decimal marker in WPF grid cell disappears
  • Save a binary file into an XML document

Archives

  • November 2018

Categories

  • Code
Copyright © All rights reserved.
Blog Kit by WP Capsules