View: StringFormat WPF 3.5 SP1

  1. 9 months ago by sx
    1. XAML:
    2.   <Grid>
    3.       <textBox Name="myTextBox" Text="{Binding StringFormat='HH:MM dd/M/yyy'}" />
    4.   </Grid>
    5.  
    6. CS:
    7.   var dt = DateTime.Now;
    8.   myTextBox.DataContext = dt;
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1705"></script>

0 comment about "StringFormat WPF 3.5 SP1"