Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. <UserControl.Resources>
  2. <Style x:Key="Chromeless" TargetType="ToggleButton">
  3. <Setter Property="Template">
  4. <Setter.Value>
  5. <ControlTemplate TargetType="ToggleButton">
  6.  
  7. <Border BorderThickness="0" Width="197" Height="60">
  8.  
  9. <ContentPresenter TextElement.FontFamily="{TemplateBinding TextElement.FontFamily}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="0,0,0,0"/>
  10. </Border>
  11.  
  12. </ControlTemplate>
  13.  
  14. </Setter.Value>
  15. </Setter>
  16.  
  17. </Style>
  18. <Image x:Key="page1Pressed" Source="/graph_engine;Component/cucaracha/LD3/button_1.png" Height="60" Width="197" />
  19. <Image x:Key="page1" Source="/graph_engine;Component/cucaracha/LD3/button_1_pressed.png" Height="60" Width="197" />
  20.  
  21. <Image x:Key="page2Pressed" Source="/graph_engine;Component/cucaracha/LD3/button_2.png" Height="60" Width="197" />
  22. <Image x:Key="page2" Source="/graph_engine;Component/cucaracha/LD3/button_2_pressed.png" Height="60" Width="197" />
  23.  
  24. <Image x:Key="page3Pressed" Source="/graph_engine;Component/cucaracha/LD3/button_3.png" Height="60" Width="197" />
  25. <Image x:Key="page3" Source="/graph_engine;Component/cucaracha/LD3/button_3_pressed.png" Height="60" Width="197" />
  26.  
  27. </UserControl.Resources>
  28. <Viewbox Stretch="Fill" StretchDirection="Both">
  29. <Grid Height="60" Name="grid1" Width="591" Margin="0,0,0,0">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="197" />
  32. <ColumnDefinition Width="197" />
  33. <ColumnDefinition Width="197" />
  34. </Grid.ColumnDefinitions>
  35. <ToggleButton Style="{StaticResource Chromeless}" Name="page1" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="{x:Null}" Checked="page1_Checked" Unchecked="page1_Unchecked">
  36. <DynamicResource ResourceKey="page1"/>
  37. </ToggleButton>
  38. <ToggleButton Grid.Column="1" Style="{StaticResource Chromeless}" Name="page2" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="{x:Null}" Unchecked="page2_Unchecked" Checked="page2_Checked">
  39. <DynamicResource ResourceKey="page2"/>
  40. </ToggleButton>
  41.  
  42. <ToggleButton Grid.Column="2" Style="{StaticResource Chromeless}" Name="page3" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Foreground="{x:Null}" Checked="page3_Checked" Unchecked="page3_Unchecked">
  43. <DynamicResource ResourceKey="page3"/>
  44. </ToggleButton>
  45. </Grid>
  46. </Viewbox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement