<UserControl x:Class="agree.Wpf.uc_tfs" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:g="clr-namespace:agree.Wpf.Util;assembly=agree-wpf-util" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Name="entry_name" Text="foo" Margin="10 5 0 5" FontSize="14.5" FontWeight="DemiBold" Visibility="Collapsed" /> <Rectangle Grid.Row="1" Name="split_line" Fill="Gray" Height="1" Visibility="Collapsed"></Rectangle> <ScrollViewer Grid.Row="2" Name="tfsc_sv" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"> <g:TfsControl Name="tfsc"> <g:TfsControl.RenderTransform> <ScaleTransform ScaleX="{Binding ElementName=tfsc_zoomer, Path=Value}" ScaleY="{Binding ElementName=tfsc_zoomer, Path=Value}" /> </g:TfsControl.RenderTransform> </g:TfsControl> </ScrollViewer> <Slider Grid.Row="2" Name="tfsc_zoomer" Width="80" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="20" Minimum="0.3" Maximum="3" LargeChange="0.4" SmallChange="0.05" Value="1"></Slider> </Grid> </UserControl>