Exemplo n.º 1
0
        private void CreateDataItemPresentationAsync(object sender, DoWorkEventArgs ea)
        {
            DataItemViewFactory factory = new DataItemViewFactory(ea.Argument);
            IDataItemView       view    = factory.Create();

            ea.Result = view;
        }
Exemplo n.º 2
0
        private void DataTreeSelectedItemChanged(object sender,
                                                 RoutedPropertyChangedEventArgs <object> e)
        {
            if (e.NewValue == null)
            {
                contentControlDataItemDetails.Content = null;
                return;
            }
            DataItemViewFactory factory = new DataItemViewFactory(e.NewValue);

            contentControlDataItemDetails.Content = factory.Create();
        }