示例#1
0
        private void ItemF12_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
        {
            IObjectSpace         objectSpace      = Application.CreateObjectSpace(typeof(Items));
            string               ItemListviewid   = "Items_ListView_F12";
            CollectionSourceBase collectionSource = Application.CreateCollectionSource(objectSpace, typeof(Items), ItemListviewid);

            // collectionSource.CanApplyCriteria = false;
            collectionSource.Reload();


            e.View = Application.CreateListView(ItemListviewid, collectionSource, true);

            //Optionally customize the window display settings.

            e.Maximized  = false;
            e.IsSizeable = true;
        }