I have a style that sets CloseCommand to a property on the main application view model...
<Setter Property="CloseCommand"
Value="{Binding Path=LayoutElement.Root.Manager.DataContext.Command_TryCloseItem,
RelativeSource={RelativeSource Self}}" />
I expected to see in the command parameter the corresponding LayoutItem for the tab being
closed, or at least the corresponding Model. But the parameter is null. It would be very
helpful to have the parameter set, as it allows a more centralized way of controlling
the life cycle of documents.
↧
New Post: [Version 2.0] Null command parameters
↧