protected override void InnerExecute(object parameter) { var key = keyProperty.KeySettings; KeyManagerUtilities.ImportProtectedKey(uiService, key); using (var exportKeyUI = new ExportKeyUI(key.ProtectedKey)) { uiService.ShowDialog(exportKeyUI); } }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { BindableProperty bindableProperty = (BindableProperty)context.PropertyDescriptor; ElementProperty property = (ElementProperty)bindableProperty.Property; ElementCollectionViewModel collection = (ElementCollectionViewModel)property.DeclaringElement.ChildElement(property.DeclaringProperty.Name); IUIServiceWpf uiService = (IUIServiceWpf)context.GetService(typeof(IUIServiceWpf)); PopupCollectionEditorWindow w = new PopupCollectionEditorWindow() { ContainedContent = new HeaderedListLayout(collection, collection.AddCommands) }; uiService.ShowDialog(w); return(value); }