internal void BuildReportObjectCollection()
{
List<ReportObjectEntity> reportObjectCollection =
Presenter.buildReportObjectCollection();
SingleObjectList.DataContext = reportObjectCollection;
}
//Use the list of Guids to filter my collection using
//the predicate here
public void Show(List<Guid> reportObjectList)
{
selectdReportObjectCollection = reportObjectList;
if (selectdReportObjectCollection != null)
{
if (SingleObjectList.ItemsSource != null)
{
// filter
collectionView =
CollectionViewSource.GetDefaultView(SingleObjectList.DataContext);
collectionView.Filter =
new Predicate<object>(FilterForSelectedReportObjectList);
}
}
}
public
bool FilterForSelectedReportObjectList(object item)
{
ReportObjectEntity reportObject = item as ReportObjectEntity;
if (reportObject != null && this.selectdReportObjectCollection.Contains(reportObject.ReportObjectID))
{
return true;
}
else
{
return false;
}
}
//The XAML is pretty standard for the GridView, ItemsSource = {Binding}
Does anyone know what is the issue here?
Thanks,
Hi,
I am new to Telerik WPF Controls,
I need to convert some Silverlight stuff to WPF.
I heard that "All the classes or controls in Silverlight has equal classes or controls in WPF".
But when i am trying to do it,i was not able to find some similar controls for WPF.
I will be greatfull if i get a mapping between the Silverlight and WPF controls.
For Eg.
(1) In silverlight,<HierarchicalDataTemplate> is in assembly=Telerik.Windows.Controls
but for WPF it is not there, may be due to <HierarchicalDataTemplate>
is present directly in WPF.
(2) in silverlight the folowing code is used what will be the equivalent code in WPF?.
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
<radDock:RadDocking.DocumentHost>
<radDock:RadSplitContainer>
<radDock:RadPaneGroup x:Name="DocumentHostRadPaneGroup">
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
</radDock:RadDocking.DocumentHost>