/// DefaultLinearItem may contain text or an icon.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public class DefaultLinearItem : RecyclerViewItem
+ public partial class DefaultLinearItem : RecyclerViewItem
{
private View itemIcon;
private TextLabel itemLabel;
{
get
{
+ return GetValue(IconProperty) as View;
+ }
+ set
+ {
+ SetValue(IconProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private View InternalIcon
+ {
+ get
+ {
if (itemIcon == null)
{
itemIcon = CreateIcon(ItemStyle?.Icon);
{
get
{
+ return GetValue(TextProperty) as string;
+ }
+ set
+ {
+ SetValue(TextProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private string InternalText
+ {
+ get
+ {
return Label.Text;
}
set
{
get
{
+ return GetValue(SubTextProperty) as string;
+ }
+ set
+ {
+ SetValue(SubTextProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private string InternalSubText
+ {
+ get
+ {
return SubLabel.Text;
}
set
{
get
{
+ return GetValue(ExtraProperty) as View;
+ }
+ set
+ {
+ SetValue(ExtraProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private View InternalExtra
+ {
+ get
+ {
if (itemExtra == null)
{
itemExtra = CreateIcon(ItemStyle?.Extra);