Files
icarus/3dPrintApp/LeftPanel/LeftPanelV.xaml
T
2022-06-10 15:53:41 +02:00

43 lines
1.6 KiB
XML

<StackPanel x:Class="LeftPanelV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:PrintApp="clr-namespace:_3dPrintApp"
Margin="5">
<StackPanel.Resources>
<PrintApp:CenterToolTipConverter x:Key="CenterToolTipConverter"/>
</StackPanel.Resources>
<ToggleButton x:Name="RotateBtn"
Content="Move"
VerticalAlignment="Center">
</ToggleButton>
<Popup IsOpen="{Binding IsChecked, ElementName=RotateBtn}"
Grid.Column="1"
PlacementTarget="{Binding ElementName=RotateBtn}"
Style="{StaticResource LeftPanel_Popup}">
<!--<Popup.VerticalOffset>
<MultiBinding Converter="{StaticResource CenterToolTipConverter}">
<Binding RelativeSource="{RelativeSource Self}" Path="PlacementTarget.ActualHeight"/>
<Binding RelativeSource="{RelativeSource Self}" Path="Child.ActualHeight"/>
</MultiBinding>
</Popup.VerticalOffset>-->
<Border x:Name="PopupBrd" Style="{StaticResource LeftPanelPopup_Border}">
<UniformGrid Columns="2" Rows="3">
<TextBlock Text="X"/>
<TextBox Text="2493.6"
Margin="1"/>
<TextBlock Text="Y"/>
<TextBox Text="1345.6"
Margin="1"/>
<TextBlock Text="Z"/>
<TextBox Text="0"
Margin="1"/>
</UniformGrid>
</Border>
</Popup>
<Button Content="Rotate">
</Button>
</StackPanel>