
Hi,
thank you for your reply.
Actually, in a MVVM way it was better not to know, that it is a floating ToolWindow, I was expecting to use this kind of code to show my view:
this.RegionManager.Regions[SRS.Infrastructure.RegionNames.MainRegion].RequestNavigate(ViewNames.FindAndReplaceView);
So in this part of the code, I don't know that it is a ToolWindow and I don't want to write specific code to get a floating ToolWindow.
My idea was to specify that I want a floating window only at the initialization like this:
<prism:ToolWindowInitializer.Initializer>
<prism:ToolWindowInitializer Name="FindAndReplace"
Title="Find and replace"
ImageSource="{StaticResource ImgFindHS}"
IsInitiallyFloating="True"
Height="Auto" />
</prism:ToolWindowInitializer.Initializer>
In the layout I want to avoid this:
<ToolWindow UniqueId="dd591dcb-fafd-4aea-8f93-02c7fb592461" AutoHideSize="272,292" DockedSize="200,705" DocumentSize="272,292" FloatingSize="272,292" Size="200,705" IsOpen="false" LastState="Docked" Name="FindAndReplace" RaftingLocation="785,317" State="Floating" />
The ToolWindow should be hidden when the application is started.
What do you suggest ? Is it possible ?
[Modified 13 years ago]