/// <summary> /// Initializes a new instance of the <see cref="MediaTimelineView"/> class. /// </summary> public MediaTimelineView() { InitializeComponent(); // Hold View Model as member varible _vm = (MediaTimelineViewModel)DataContext; // Create hidden preview axis to use with the timeline Infragistics.Controls.Timelines.PreviewAxis hiddenPreviewAxis = new Infragistics.Controls.Timelines.PreviewAxis(); hiddenPreviewAxis.Visibility = System.Windows.Visibility.Collapsed; // Set the PreviewAxis, otherwise the labels are visible in the zoombar timeLine.PreviewAxis = hiddenPreviewAxis; //this.timeLineAxis.PaneStyle = this.LayoutRoot.FindResource("HiddenPaneStyle") as Style; this.NumberOfResultsComboBox.ItemsSource = this.NumberOfResultsCollection; this.SortByComboBox.ItemsSource = this.SortByCollection; }
/// <summary> /// Initializes a new instance of the <see cref="MediaTimelineView"/> class. /// </summary> public MediaTimelineView() { InitializeComponent(); // Register scriptable object HtmlPage.RegisterScriptableObject("MediaTimeLineScriptable", this); // Hold View Model as member varible _vm = (MediaTimelineViewModel)DataContext; // Create hidden preview axis to use with the timeline Infragistics.Controls.Timelines.PreviewAxis hiddenPreviewAxis = new Infragistics.Controls.Timelines.PreviewAxis(); hiddenPreviewAxis.Visibility = System.Windows.Visibility.Collapsed; // Set the PreviewAxis, otherwise the labels are visible in the zoombar timeLine.PreviewAxis = hiddenPreviewAxis; this.NumberOfResultsComboBox.ItemsSource = this.NumberOfResultsCollection; this.SortByComboBox.ItemsSource = this.SortByCollection; }