wpf - Telerik RadDaigram does not contain definition for SwitchGridVisibility -


i trying switch off grid visibility of raddiagram have.

i creating user control using telerik controls within silverlight project (sharing control wpf library).

it seems raddiagram property not found. (raddiagram commands - found property here)

ps: creating , filling shape programmatically. therefore, need approach switch grid off apply style attribute in resource dictionary or simple programmatic property set / function call.

thanks,

the way turn off backgroundgrid or backgroundpagegrid use these attached properties:

 <telerik:raddiagram x:name="diagram" margin="30"                                                 primitives:backgroundgrid.isgridvisible="false"                      primitives:backgroundpagegrid.isgridvisible="false" 

where primitives defined so:

xmlns:primitives="clr-namespace:telerik.windows.controls.diagrams.primitives; assembly=telerik.windows.controls.diagrams" 

if need bind command switching backgroundgrid on / off , can use syntax:

 <telerik:radbutton command="telerik:diagramcommands.switchgridvisibility"                          commandtarget="{binding elementname=diagram}"/> 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -