У меня установлен следующий XAML.
<Popup x:Class="EMS.Controls.Dictionary.MapTip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
PopupAnimation="Slide"
AllowsTransparency="True" Placement="Mouse"
x:Name="root"
>
<Popup.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Resources/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Popup.Resources>
<Viewbox x:Name="viewBox" IsHitTestVisible="True">
<Grid Background="Transparent" Name="mainGrid">
</Grid>
</Viewbox>
</Popup>
Если я подхожу к визуальному дереву с помощью VisualTreeHelper.GetParent из "mainGrid", я в конечном итоге получаю System.Windows.Controls.Primitives.PopupRoot, но никогда не получаю всплывающее окно. Кто-нибудь с теорией о том, почему это и что я могу с этим сделать? Я использую Popup, а не PopupRoot.
ТИА.