/// <summary> /// Initializes a new instance of the <see cref="ContentSelectorView"/> class. /// </summary> public ContentSelectorView() { InitializeComponent(); // For some reason this method call causes problems if we called it in design mode inside VisualStudio. if (!DesignerProperties.GetIsInDesignMode(this)) { DataContext = new ContentSelectorViewModel(); } }
/// <summary> /// Initializes a new instance of the <see cref="Demo.Xaml.Controls.ContentSelectorViewDemo"/> class. /// </summary> public ContentSelectorViewDemo() { InitializeComponent(); BindingContext = new ContentSelectorViewModel(); }