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.
Unfortunately, activation email could not send to your email. Please try again.

DockManager CloseButton

Thread ID:

Created:

Updated:

Platform:

Replies:

75233 Jul 17,2008 12:09 AM Mar 25,2018 02:54 PM WPF 2
loading
Tags: DockingManager
Fred Yip
Asked On July 17, 2008 12:09 AM

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



Balavasanth [Syncfusion]
Replied On July 17, 2008 06:11 AM


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.


krelifaoui
Replied On March 25, 2018 02:54 PM

adem

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;