LoadPort.xaml 1.5 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="SummaryModule.Controls.BaseMotion.LoadPort"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SummaryModule.Controls.BaseMotion"
  7. xmlns:convert="clr-namespace:SummaryModule.Converter"
  8. mc:Ignorable="d"
  9. x:Name="This"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <UserControl.Resources>
  12. <convert:VisibilityConvert x:Key="vis"/>
  13. </UserControl.Resources>
  14. <Button Background="Transparent" BorderThickness="0" Command="{Binding ElementName=This, Path=Command}" CommandParameter="{Binding ElementName=This, Path=CommandParameter}">
  15. <Grid >
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="auto"/>
  18. <RowDefinition Height="2"/>
  19. <RowDefinition Height="auto"/>
  20. </Grid.RowDefinitions>
  21. <local:Foup x:Name="foup" Panel.ZIndex="2" Visibility="{Binding ElementName=This, Path=FoupLoaded, Converter={StaticResource vis}}"/>
  22. <Image Source="/SummaryModule;component/Resources/LoadPort.png"/>
  23. <TextBlock Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" FontWeight="Bold" Text="{Binding ElementName=This, Path=Header}"/>
  24. </Grid>
  25. </Button>
  26. </UserControl>