static ConnectionsPresenter() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ConnectionsPresenter), new FrameworkPropertyMetadata(typeof(ConnectionsPresenter))); ItemContainerStyleSelectorProperty.AddOwner(typeof(ConnectionsPresenter), new FrameworkPropertyMetadata(null, CoerceItemContainerStyleSelector)); }
static TimelineItemsPresenter() { DefaultStyleKeyProperty.OverrideMetadata(typeof(TimelineItemsPresenter), new FrameworkPropertyMetadata(typeof(TimelineItemsPresenter))); ItemsPanelTemplate defaultPanel = new ItemsPanelTemplate(new FrameworkElementFactory(typeof(TimelineCompactPanel))); ItemsPanelProperty.OverrideMetadata(typeof(TimelineItemsPresenter), new FrameworkPropertyMetadata(defaultPanel)); ItemContainerStyleSelectorProperty.AddOwner(typeof(TimelineItemsPresenter), new FrameworkPropertyMetadata(null, CoerceItemContainerStyleSelector)); }