This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void RenderContent(DataContext dataContext) | |
{ | |
// Note: Given the framework/tech, I don't have full control over all of this. Maybe I should refactor? | |
var dataItem = this.GetDataItem(dataContext); | |
// If we're right-aligned, either set a new data item or don't do anything | |
if (this.IsRightAligned) | |
{ | |
var rightAlignedDataItem = GetRightAlignedDataItem(dataContext, currentItemDetails, mediaList); | |
if (rightAlignedDataItem == null) |