Hi Telerik Team,
I am facing problems with a zero sized textblock.
I used this, because Telerik Test Studio can't see the properties of my UserControl.
So I put a zero sized textblock directly under this UserControl. (See Screenshot 1 & WPF-Code).
<StackPanel Grid.Column="1" Grid.RowSpan="2">
<ToggleButton x:Name="PlayButton"
Margin="3,0,0,0"
Content="{StaticResource PlayShape}"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Foreground="#FFFFFFFF"
Style="{StaticResource CJ_ToggleButtonStyle}"
RenderTransformOrigin="1.053,0.985"
Height="50"
Width="80"
ToolTipService.ToolTip="{Binding Path=LanguageResources.Play_Pause, Source={StaticResource Localizer}}"/>
<TextBlock x:Name="QAPlayerTimeCode" Width="0" Height="0" ></TextBlock>
</StackPanel>
I try to add this Control over the DOM Control (because I can't see it). But when I do this, a second project is created (!). (See Screenshot 2).
And during runtime I get an exception, because appIndex is "-1".
ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl plugin = Get<ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl>("tagname=object", "type=~application/x-silverlight");
int appIndex = plugin.OwnerBrowser.GetSilverlightAppIndex(plugin);
How can I access this control?
If it is visible (hight and width over 1px) a can add and access it. But I need to use "hidden" Controls.
Greetings
Mostafa