コード例 #1
0
        protected void ReadSimple( SearchItem [] items )
        {
            DataTable table = new SearchResult( items ) ;
            _listView.DataContext = table ;

            XDataSearchResultHeader gridView = new XDataSearchResultHeader() ;
            _listView.View = gridView ;

            Binding bind = new Binding() ;
            _listView.DataContext = table ;
            _listView.SetBinding( ListView.ItemsSourceProperty, bind ) ;
        }
コード例 #2
0
        protected void ReadFromXData(agsXMPP.protocol.x.data.Data data )
        {
            DataTable table = new SearchResult( data.Reported, data.GetItems() ) ;
            _listView.DataContext = table ;

            XDataSearchResultHeader gridView = new XDataSearchResultHeader( data.Reported ) ;
            _listView.View = gridView ;

            Binding bind = new Binding() ;
            _listView.DataContext = table ;
            _listView.SetBinding( ListView.ItemsSourceProperty, bind ) ;
        }