This blog is primarily a compilation of frequently faced issues by developers with solutions which I have implemented to solve them
Thursday, February 19, 2015
Inversion Of Control: Best Practices
Labels:
IoC,
OOPs,
Unity container
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Friday, February 6, 2015
12 Best Tutorials To Learn AngularJS
Labels:
Angular JS
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Thursday, February 5, 2015
A Simple ViewModelLocator for Spawning ViewModels for XAML Based Applications
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Saturday, January 10, 2015
Introduction to REST and .net Web API
Nice article by Martin Kearn on .Net Restful API's:
Labels:
.net Web API,
REST
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Friday, January 2, 2015
C# 6.0 New Features
http://www.kunal-chowdhury.com/2014/12/csharp-6-expression-bodied-method.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+kunal2383+%28Kunal%27s+Blog%29
Labels:
C# 6.0
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Nice article on IDataErrorInfo and Validation in WPF
http://www.codeproject.com/Articles/858492/WPF-Validation-Using-IDataErrorInfo
Labels:
IDataErrorInfo,
validation,
WPF
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Thursday, December 18, 2014
Solving WPF Binding ConverterParameter problem
Write a multiconverter instead:
<TextBlock FontSize="16" FontFamily="GE Inspira Medium" VerticalAlignment="Center" Foreground="Black"> <TextBlock.Text > <MultiBinding Converter="{StaticResource flowRateUnitConverter}"> <Binding Path="FlowRate"/> <Binding Path="Unit"/> </MultiBinding> </TextBlock.Text> </TextBlock>
MultiConverter class
public class FlowRateUnitConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { if (values[0] == null || values[1] == null) return string.Empty; float? flowRate=values[0] as float?; string unit = values[1] as string; string convertedValue = values[0].ToString(); switch(unit) { case "L/Hr": convertedValue = (flowRate.Value * 60).ToString(); break; default: break; } return convertedValue; } public object[] ConvertBack( object value, Type[] targetTypes, object parameter, CultureInfo culture) { throw new NotSupportedException(); } }
Labels:
Converterparameter binding,
Multiconverter,
WPF
Solution Architect employed with Mercedes Benz with about 14 years of experience in Microsoft Technologies.
Subscribe to:
Posts (Atom)