C# Class Sample.SampleOwnerDrawnElement

This is an example of implementing the OwnerDrawnElement abstract class. It makes it very simple to create an element that you draw using CoreGraphics
Inheritance: MonoMobile.Dialog.OwnerDrawnElement
Show file Open project: moljac/MonoMobile.Dialog

Public Methods

Method Description
Draw ( RectangleF bounds, CGContext context, UIView view ) : void
FormatDate ( System.DateTime date ) : string
Height ( RectangleF bounds ) : float
SampleOwnerDrawnElement ( string text, System.DateTime sent, string from ) : System
ToString ( ) : string

Private Methods

Method Description
TextHeight ( RectangleF bounds ) : float

Method Details

Draw() public method

public Draw ( RectangleF bounds, CGContext context, UIView view ) : void
bounds System.Drawing.RectangleF
context CGContext
view UIView
return void

FormatDate() public method

public FormatDate ( System.DateTime date ) : string
date System.DateTime
return string

Height() public method

public Height ( RectangleF bounds ) : float
bounds System.Drawing.RectangleF
return float

SampleOwnerDrawnElement() public method

public SampleOwnerDrawnElement ( string text, System.DateTime sent, string from ) : System
text string
sent System.DateTime
from string
return System

ToString() public method

public ToString ( ) : string
return string