Table of Contents [Hide/Show]
ComponentBaseMEF Exporting Required Attributes ExampleUsing a LayoutManager Generated UI Example - using the LayoutManager to build a dialogSilverlight Gis Framework ApiServer Side/Database InteractionComponent DeploymentSee Also
[Export(typeof(IComponentBase))] [PartCreationPolicy(CreationPolicy.Shared)] public class SampleComponent:IComponentBase { }
private GenericDialogViewModel _dialogViewModel; protected override void OnExecute() { // Show the dialog for this component using the LayoutManager _dialogViewModel = LayoutManager.Instance.ShowViewModel(this, new DialogServiceArgs { Id="MyComponent", Title = this.ComponentConfiguration.Name, HelpId = "tools;" + GetType().FullName, Icon = Icon }); _dialogViewModel.Closed += OnClose; } private void OnClose(object sender, EventArgs e) { _dialogViewModel = null; }