XLabs Xamarin Forms Labs – Label does not show strikethrough on multi-line in iOS

If you are trying to use strike through property of XLabs Xamarin-Forms-Labs , you may not see the strike through work on labels having multiline (wrapped text). This is a bug. To fix it, add the following line after setting this.Control.AttributedText = new NSMutableAttributedString in the file ExtendedLabelRendered.cs ((NSMutableAttributedString)this.Control.AttributedText).AddAttribute ( UIStringAttributeKey.BaselineOffset, new NSNumber(0) , new…

Read More

Splitting CString to array in MFC

The following function converts string to array in MFC & ATL. By default it trims each string in the array and also ignores empty strings. It uses CString MFC class and CAtlArray ATL class. //converts semicolon separated string to array of strings void StringToArray(CString & strValue, CAtlArray<CString> & arrValue, TCHAR szSeparator, BOOL bTrim/*=TRUE*/, BOOL bIgnoreEmptyString/*=TRUE*/)…

Read More