void UpdateContent(EquipmentIconType rpType) { if (r_Content == null || r_Templates == null) { return; } ControlTemplate rTemplate; if (!r_Templates.TryGetValue((int)rpType, out rTemplate)) { rTemplate = r_DefaultTemplate; } r_Content.SetCurrentValue(TemplateProperty, rTemplate); }
public EquipmentTypeViewModel(EquipmentIconType rpType) { Type = rpType; }