p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   Other Programming Languages (http://p2p.wrox.com/other-programming-languages-209/)
-   -   differentiate between data formatting and templating (http://p2p.wrox.com/other-programming-languages/98873-differentiate-between-data-formatting-templating.html)

lifeguru02 May 16th, 2016 07:40 AM

differentiate between data formatting and templating
 
we use dapfor wpf gridcontrol in our department to do assignments and lessons. Our lecturer told us today to differentiate between data formatting and templating.

alexandarx5 May 16th, 2016 01:15 PM

re. differentiate between data formatting and templating
 
Quote:

Originally Posted by lifeguru02 (Post 307400)
we use dapfor wpf gridcontrol in our department to do assignments and lessons. Our lecturer told us today to differentiate between data formatting and templating.

C#
internal class IntToStringConverter : IValueConverter
{
#region IValueConverter Members
// Converts int-type value to string
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is int)
{
return string.Format(culture, "{0}", value);
}
return null;
}
// Parses string to int-type value
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
string s = value as string;
if(!string.IsNullOrEmpty(s))
{
return int.Parse(s, culture);
}
return Binding.DoNothing;
}
#endregion
}

mariyafox July 27th, 2017 03:34 AM

Understand about data formatting and templates
 
You can find data formats & attributes here: https://docs.expressionengine.com/la...ormatting.html
I'm a mobile app developer by profession that's why i don't know much about these types of attributes but, i have knowledge little bit about these things.


All times are GMT -4. The time now is 04:28 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.