kkc0923

TreeMenuItem.xaml

Sep 10th, 2014
421
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <UserControl
  2.    x:Class="MyApplication.TreeMenuItem"
  3.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.    xmlns:local="using:MyApplication"
  6.    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7.    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.    mc:Ignorable="d"
  9.    d:DesignHeight="40"
  10.    d:DesignWidth="250" Margin="0" Padding="0" Height="40" SizeChanged="customMenuItem_SizeChanged"
  11.             >
  12.     <UserControl.Resources>
  13.         <x:String x:Key="ChevronGlyph">&#xE26B;</x:String>
  14.         <!--
  15.            Collection of grouped items displayed by this page, bound to a subset
  16.            of the complete item list because items in groups cannot be virtualized
  17.        -->
  18.     </UserControl.Resources>
  19.  
  20.     <StackPanel x:Name="menuPanel" Orientation="Horizontal" HorizontalAlignment="Left" Width="250" Margin="0" Background="Transparent" VerticalAlignment="Center">
  21.         <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Width="210" Margin="0" Background="Transparent">
  22.             <FontIcon x:Name="menuIconFontIcon" Glyph="&#xE1D3;" Margin="8,0,0,0" VerticalAlignment="Center" FontSize="24"/>
  23.             <TextBlock x:Name="textBlock" Margin="10,0,0,0" Text="Text" VerticalAlignment="Center" FontSize="32" />
  24.         </StackPanel>
  25.         <StackPanel Width="40">
  26.             <Button x:Name="expandButton" Style="{StaticResource LeftMenuButtonStyle}" Width="40" VerticalContentAlignment="Center" Canvas.Left="210" Click="expandButton_Click">
  27.                 <FontIcon x:Name="expandButtonFontIcon" Glyph="&#xE09D;" FontSize="24" Margin="0" VerticalAlignment="Center"/>
  28.             </Button>
  29.         </StackPanel>
  30.     </StackPanel>
  31. </UserControl>
RAW Paste Data