Buffer.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <UserControl x:Class="SummaryModule.Controls.BaseMotion.Buffer"
  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. xmlns:commonControl="clr-namespace:UICommon.Controls;assembly=UICommon"
  9. mc:Ignorable="d"
  10. x:Name="This"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <UserControl.Resources>
  13. <convert:VisibilityConvert x:Key="vis"/>
  14. <convert:BoolToLight x:Key="light"/>
  15. </UserControl.Resources>
  16. <Button Background="Transparent" BorderThickness="0" Command="{Binding ElementName=This, Path=Command}" CommandParameter="{Binding ElementName=This, Path=CommandParameter}">
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="28"/>
  20. <ColumnDefinition Width="2"/>
  21. <ColumnDefinition Width="auto"/>
  22. </Grid.ColumnDefinitions>
  23. <Grid>
  24. <Grid.RowDefinitions>
  25. <RowDefinition/>
  26. <RowDefinition Height="auto"/>
  27. <RowDefinition Height="2"/>
  28. <RowDefinition Height="auto"/>
  29. <RowDefinition Height="2"/>
  30. <RowDefinition Height="auto"/>
  31. </Grid.RowDefinitions>
  32. <TextBlock Grid.Row="1" HorizontalAlignment="Right" Text="{Binding ElementName=This, Path=Type}"></TextBlock>
  33. <TextBlock Grid.Row="3" HorizontalAlignment="Right" Text="{Binding ElementName=This, Path=Placement}"></TextBlock>
  34. <commonControl:SignalLight Grid.Row="5" HorizontalAlignment="Right" IsOn="{Binding ElementName=This, Path=IsActive}"/>
  35. </Grid>
  36. <Grid Grid.Column="2" >
  37. <local:Foup x:Name="foup" Panel.ZIndex="2" Visibility="{Binding ElementName=This, Path=FoupLoaded, Converter={StaticResource vis}}"/>
  38. <Image Source="/SummaryModule;component/Resources/Buffer.png"/>
  39. </Grid>
  40. </Grid>
  41. </Button>
  42. </UserControl>