本文整理汇总了C#中Cell.SendAppearing方法的典型用法代码示例。如果您正苦于以下问题:C# Cell.SendAppearing方法的具体用法?C# Cell.SendAppearing怎么用?C# Cell.SendAppearing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cell
的用法示例。
在下文中一共展示了Cell.SendAppearing方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCell
public AView GetCell(Cell item, AView convertView, ViewGroup parent, Context context)
{
Performance.Start();
Cell = item;
Cell.PropertyChanged -= PropertyChangedHandler;
SetRenderer(Cell, this);
if (convertView != null)
{
Object tag = convertView.Tag;
var renderHolder = tag as RendererHolder;
if (renderHolder != null)
{
Cell oldCell = renderHolder.Renderer.Cell;
oldCell.SendDisappearing();
if (Cell != oldCell)
SetRenderer(oldCell, null);
}
}
AView view = GetCellCore(item, convertView, parent, context);
WireUpForceUpdateSizeRequested(item, view);
var holder = view.Tag as RendererHolder;
if (holder == null)
view.Tag = new RendererHolder { Renderer = this };
else
holder.Renderer = this;
Cell.PropertyChanged += PropertyChangedHandler;
Cell.SendAppearing();
Performance.Stop();
return view;
}
示例2: SetSource
void SetSource(Cell oldCell, Cell newCell)
{
if (oldCell != null)
{
oldCell.PropertyChanged -= _propertyChangedHandler;
oldCell.SendDisappearing();
}
if (newCell != null)
{
newCell.SendAppearing();
if (oldCell == null || oldCell.GetType() != newCell.GetType())
ContentTemplate = GetTemplate(newCell);
Content = newCell;
SetupContextMenu();
newCell.PropertyChanged += _propertyChangedHandler;
}
else
Content = null;
}