private void Initialize()
{
Mode = HudProgressMode.Indeterminate;
// Add label
_Label = new UILabel(Bounds);
// Add details label
_DetailsLabel = new UILabel(Bounds);
TitleText = null;
DetailText = null;
Opacity = 0.7f;
TitleFont = UIFont.BoldSystemFontOfSize(LABELFONTSIZE);
DetailFont = UIFont.BoldSystemFontOfSize(LABELDETAILSFONTSIZE);
AutoresizingMask = UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleBottomMargin | UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin;
// Transparent background
Opaque = false;
BackgroundColor = UIColor.Clear;
// Make invisible for now
Alpha = 0.0f;
_TaskInProgress = false;
}