I have an application that I am upgrading from v11.1 to v12.2. We have some DataTemplates that can trigger behavior in a containing Tile. For example:
TextDecorations="{x:Null}" Foreground="{StaticResource SPS.BlackText}" Command="{x:Static ig:XamTile.ToggleMaximizedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ig:XamTile}}}">
With v12.2 there is no longer a static command that I can bind this control's command to. The Infragistics.Commanding.Command does not support assigning this command to a Hyperlink.
Please suggest an alternative way to bind the hyperlink's Command to its parent Tile's ToggleMaximizedCommand.
Hello,
Thank you for your post. I have been looking into it and I can suggest you see the sample in the Samples Browser under xamTilesManager / Organization / Tiles States section, where it is shown how to use TileCommandSource. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thank you, Stefan. However, Note that I am assigning the command to a Hyperlink. When I do this, I get an error from the AttachedProperty saying "Property 'Command' is not attachable to elements of type Hyperlink".
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Nevermind. I reworked my DataTemplates to use Buttons styled to look like Hyperlinks.
I guess I didn't send enough detail in the original snippet. I am using a Hyperlink, not a Button, in my DataTemplate. I understand that I can change the design of my DataTemplates to use a Button instead of a Hyperlink. However, I don't expect that upon moving from one version of the Infragistics control set to another that I should have to change my UI. There is no reason that Infragistics Commanding.Command should not support Hyperlink.
I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.