示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExtendedGridView"/> class.
        /// </summary>
        /// <param name="pResources">The grid view resources.</param>
        /// <param name="pItemContainerDefaultStyleKey">The default style key of the item container when displayed in this grid.</param>
        public ExtendedGridView(Resources pResources, object pItemContainerDefaultStyleKey)
        {
            this.mResources = new Resources();
            this.ShowColumnHeaders = false;
            this.mGridViewColumnBackup = new GridViewColumnCollection();
            this.mItemContainerDefaultStyleKey = pItemContainerDefaultStyleKey;

            this.Columns.CollectionChanged += this.OnGridViewColumnsCollectionChanged;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TreeListView"/> class.
        /// </summary>
        public TreeListView()
        {
            this.InnerListView = null;
            this.SelectionOption = TreeSelectionOptions.SingleSelection;
            this.mResources = new Resources();
            this.mContextMenuName = string.Empty;

            // Applying the default group data template.
            this.GroupItemDataTemplate = this.mResources["GroupItemDefaultDataTemplate"] as System.Windows.DataTemplate;
        }