Buffer.xaml 2.6 KB

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