This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to create a Custom GridView by inheriting RadGridView and adding some specific functionality. So far, the custom control definition is plain basic:
This usercontrol is inside of a user control library referenced across all Prism modules in a big solution.
When I'm trying to instantiate this control in a different assembly like this:
... an exception is thrown by the Xaml Editor indicating that: "The property 'MCControls:MCPaginatedGridView.Columns' is not declared as attached property"
Could you please provide any help on this?
Thanks in advance
JP
I'm trying to create a Custom GridView by inheriting RadGridView and adding some specific functionality. So far, the custom control definition is plain basic:
Imports
Telerik.Windows.Controls
Imports
System.ComponentModel
Public
Class
MCPaginatedGridView
Inherits
RadGridView
End
Class
This usercontrol is inside of a user control library referenced across all Prism modules in a big solution.
When I'm trying to instantiate this control in a different assembly like this:
<
MCControls:MCPaginatedGridView
Grid.Row
=
"12"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"5"
FontSize
=
"10"
MinHeight
=
"250"
AutoGenerateColumns
=
"False"
>
<
MCControls:MCPaginatedGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LoteCobranzaDetalleId}"
Header
=
"ID"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding NumeroContrato}"
Header
=
"Contrato"
UniqueName
=
"NumeroContrato"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding CedulaDomiciliatario}"
Header
=
"Cedula"
UniqueName
=
"CedulaDomiciliatario"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding NombreDomiciliatario}"
Header
=
"Nombre"
UniqueName
=
"NombreDomiciliatario"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FechaValor, Mode=TwoWay}"
DataFormatString
=
"{}{0:d}"
Header
=
"Fecha Valor"
UniqueName
=
"FechaValor"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FechaVencimiento, Mode=TwoWay}"
DataFormatString
=
"{}{0:d}"
Header
=
"Fecha Venc."
UniqueName
=
"FechaVencimiento"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding SaldoCuota, Mode=TwoWay}"
Header
=
"Monto"
DataFormatString
=
"{}{0:c}"
UniqueName
=
"Saldo"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MontoPendientePorProcesar, Mode=TwoWay}"
DataFormatString
=
"{}{0:c}"
Header
=
"Pendiente"
UniqueName
=
"MontoPendientePorProcesar"
/>
</
MCControls:MCPaginatedGridView.Columns
>
</
MCControls:MCPaginatedGridView
>
... an exception is thrown by the Xaml Editor indicating that: "The property 'MCControls:MCPaginatedGridView.Columns' is not declared as attached property"
Could you please provide any help on this?
Thanks in advance
JP