ObjectPreview.Initialize

public void Initialize(Object[] targets);

Parameters

targetsThe objects being previewed.

Description 描述

Called when the Preview gets created with the objects being previewed.

You can override this function and use this to cache or initialize anything needed by your preview.