We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DockManager CloseButton

Hi,

As I'm migrating from v1.2 to v3, I'm encountering some more issues.

I use a DockHeaderStyle for the DockManager, in which it references a DockHeaderPresenterTemplate







x:Name="borderTop"
Width="Auto"
Height="20"
Background="{DynamicResource HeaderBrush}"
BorderBrush="{DynamicResource ButtonBorderBrush}"
>





Name="PART_CloseButton"
DockPanel.Dock="Right"
Tag="CloseButton"
Focusable="False"
Command="syncFusion:DockHeaderPresenter.ChangeStateCommand"
Template="{StaticResource CloseButton}"
Width="20"
Height="12"
Margin="0,0,2,0"
Padding="0">


....





"Cannot convert string 'syncFusion:DockHeaderPresenter.ChangeStateCommand' in attribute 'Command' to object of type 'System.Windows.Input.ICommand'. CommandConverter cannot convert from System.String. Error at object 'System.Windows.Controls.ControlTemplate' in markup file 'TP.RA.FW.UI.Styles;Component/Resources/DockingPanels.xaml' Line 453 Position 15."



I'm getting error with this line:
Command="syncFusion:DockHeaderPresenter.ChangeStateCommand"


It works if I use the OpenContextMenuCommand
and ChangeAwlStateCommand... but somehow, the ChangeStateCommmand, I get the above error.

It used to work with the older version.

Can you please assist?

Many thanks



2 Replies

BA Balavasanth Syncfusion Team July 17, 2008 10:11 AM UTC


Hi Fred,

The reason behind your error is, the command which you have used in your program has been renamed in the V6.3.0.30 library. Kindly replace your previous command by
"Syncfusion:DockHeaderPresenter.CloseCommand"
to achieve your requirements.

Thanks for your interests in Syncfusion products.

Please let us know if you have any queries.

Thanks,
Bala Vasanth.



KR krelifaoui March 25, 2018 06:54 PM UTC

adem

Loader.
Live Chat Icon For mobile
Up arrow icon