or
public
string
Location {
get
;
set
; }
public
Dictionary<DateTime,
decimal
> Values {
get
;
set
; }
public
string
Location {
get
;
set
; }
public
DateTime Month {
get
;
set
; }
public
decimal
Value {
get
;
set
; }
Public
Function
CsvList(
ParamArray
items
As
String
())
As
String
Return
Join((From s
In
items Where
Not
String
.IsNullOrEmpty(Trim(s))
Select
s).ToArray,
", "
)
End
Function
= my_reports.General.CsvList(
Fields.Firm,
Fields.Name1,
Fields.Name2,
Fields.Address,
Fields.AptType +
" "
+ Fields.AptNum,
Fields.City,
Fields.State,
Fields.Zip,
"PH: "
+ Fields.Phone,
"FX: "
+ Fields.Fax,
"RSN: "
+ Fields.Reason
)
<telerik:ReportViewer x:Name="ReportViewer1" Report="{Binding DataContext.Report, ElementName=this}" />
In its code behind I set the datacontext to the ViewModel:
this.DataContext = new myViewModel();