This is a migrated thread and some comments may be shown as answers.

Bind ObjectSource in xaml

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 Jun 2015, 09:08 PM

I am trying to figure out how to bind the ObjectDataSource in Xaml.  I am using the MVVM pattern and do not want to use code behind.  I cannot seam to find any documentation or examples that show this.  Everything I have found shows this being done in code behind.  I think it really is just a matter of getting the proper syntax.  If anyone has done this could you show me how this is done.  

 

Thank You

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 30 Jun 2015, 10:12 AM
Hello Michael,

The WPF/SL ReportViewer controls are designed for the given technology and allow bindings to their properties, but reports are designed to be compatible with all supported technologies as ASP.NET, WinfForms. Report properties are not dependency properties, and bindings specific for WPF/Silverlight technology and MVVM scenarios cannot be applied.

An example of using the XAML viewers in MVVM scenario is available in my post here. Details how to connect and control data coming from your model can be found in the ObjectDataSource help resources.


Let us know if you need any further help.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or