public MainWindow() { InitializeComponent(); var properties = new ServerViewProperty[] { new ServerViewProperty("Oid", SortDirection.Ascending, new OperandProperty("Oid")), new ServerViewProperty("Subject", SortDirection.None, new OperandProperty("Subject")), new ServerViewProperty("UserId", SortDirection.None, new OperandProperty("UserId")), new ServerViewProperty("Created", SortDirection.None, new OperandProperty("Created")), new ServerViewProperty("Votes", SortDirection.None, new OperandProperty("Votes")), new ServerViewProperty("Priority", SortDirection.None, new OperandProperty("Priority")) }; var session = new Session(); var source = new XPServerModeView(session, typeof(XPOIssues.Issues.Issue), null); source.Properties.AddRange(properties); grid.ItemsSource = source; LoadLookupData(); }
public MainWindow() { InitializeComponent(); var properties = new ServerViewProperty[] { new ServerViewProperty("Oid", SortDirection.Ascending, new OperandProperty("Oid")), new ServerViewProperty("Subject", SortDirection.None, new OperandProperty("Subject")), new ServerViewProperty("UserId", SortDirection.None, new OperandProperty("UserId")), new ServerViewProperty("Created", SortDirection.None, new OperandProperty("Created")), new ServerViewProperty("Votes", SortDirection.None, new OperandProperty("Votes")), new ServerViewProperty("Priority", SortDirection.None, new OperandProperty("Priority")) }; var source = new XPInstantFeedbackView(typeof(XPOIssues.Issues.Issue), properties, null); source.ResolveSession += (o, e) => { e.Session = new Session(); }; grid.ItemsSource = source; LoadLookupData(); }