private IReadOnlyList <ITile> CreateCodes(params string[] labels)
        {
            var enumerable = new ITile[labels.Length];

            for (var index = 0; index < labels.Length; index++)
            {
                var code          = _code + labels[index];
                var visualization = new TileVisualization(new ActionCommand(() => SetCode(code)), TileType.Normal, labels[index], TileColor.Text, TileColor.SuggestionPartBackground);
                enumerable[index] = new AdHocItem(Model, labels[index], visualization);
            }

            return(enumerable);
        }
        FrameworkElement IApplicationPanel <FrameworkElement, Size, Rect> .CreateControl(TileVisualization tile)
        {
            var button = RecyclingFactory.Create <TileButton>();

            button.Item = tile;
            Children.Add(button);
            return(button);
        }
 internal AdHocItem(ApplicationModel model, string content, TileVisualization visualization)
     : base(null, model)
 {
     Content       = content;
     Visualization = visualization;
 }