Skip to content

Instantly share code, notes, and snippets.

@yavor87
Last active December 30, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yavor87/ecf816583e15ca3542dc70d02df82e1f to your computer and use it in GitHub Desktop.
Save yavor87/ecf816583e15ca3542dc70d02df82e1f to your computer and use it in GitHub Desktop.
public class MainViewModel : ViewModelBase
{
public MainViewModel(IEmployeeService employeeService)
{
IQueryable query = _employeeService.GetEmployees();
this.Employees = new Telerik.Windows.Data.VirtualQueryableCollectionView(query) { LoadSize = 20 };
}
public Telerik.Windows.Data.VirtualQueryableCollectionView Employees { get; }
}
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowCoreValidationStyle}"/>
<Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellCoreValidationStyle}"/>
</ResourceDictionary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment