Hi, I’d love to create an overlay to the standard built-in camera viewer by using the ordinary ImageViewerAddOn. Since the layout of the overlay might get a bit complex, I’d like to use XAML. The buttons added to the overlay seem not to strech vertically
XAML
<UserControl x:Class=“ActiveElementsOverlay.Background.UserControl1”
xmlns="[http://schemas.microsoft.com/winfx/2006/xaml/presentation](http://schemas.microsoft.com/winfx/2006/xaml/presentation "http://schemas.microsoft.com/winfx/2006/xaml/presentation")"
xmlns:x="[http://schemas.microsoft.com/winfx/2006/xaml](http://schemas.microsoft.com/winfx/2006/xaml "http://schemas.microsoft.com/winfx/2006/xaml")"
xmlns:mc="[http://schemas.openxmlformats.org/markup-compatibility/2006](http://schemas.openxmlformats.org/markup-compatibility/2006 "http://schemas.openxmlformats.org/markup-compatibility/2006")"
xmlns:d="[http://schemas.microsoft.com/expression/blend/2008](http://schemas.microsoft.com/expression/blend/2008 "http://schemas.microsoft.com/expression/blend/2008")"
xmlns:local="clr-namespace:ActiveElementsOverlay.Background"
mc:Ignorable="d"
d:DesignHeight="816" d:DesignWidth="1152">
<Button Content ="ClickMe" Name="Btn" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
Code behind
public UserControl1()
{
InitializeComponent();
}
public void SetContext(ImageViewerAddOn imageViewerAddOn)
{
\_imageViewerAddOn = imageViewerAddOn;
\_tag = \_imageViewerAddOn.ActiveElementsOverlayAdd(new List<FrameworkElement>
{ this },
new ActiveElementsOverlayRenderParameters()
{
FollowDigitalZoom = false,
ShowAlways = true,
ZOrder = 2
});
}
Any hint of what I am doing wrong? Smart client 2020R3
Thanks