Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Created September 2, 2010 01:39
Show Gist options
  • Select an option

  • Save jacksonh/561692 to your computer and use it in GitHub Desktop.

Select an option

Save jacksonh/561692 to your computer and use it in GitHub Desktop.
parsing
<Binding xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:i="clr-namespace:Microsoft.Pivot.Internal.Interactivity;assembly=System.Windows.Pivot.SharedUI"
Path="(i:Behavior.InternalDataContext)"/>
parsing
done parsing
done parsing
<Grid Background="Transparent" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<vsm:VisualStateManager.VisualStateGroups xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
<VisualStateGroup x:Name="CommonStates" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<VisualState x:Name="Normal" />
<VisualState x:Name="MouseOver">
<Storyboard>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HoverBorder">
<EasingDoubleKeyFrame KeyTime="0" Value="0.3" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled" />
</VisualStateGroup>
<VisualStateGroup x:Name="FocusStates" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<VisualState x:Name="Focused">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderThickness)" Storyboard.TargetName="FocusBorder">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FocusedBorderThickness}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush)" Storyboard.TargetName="FocusBorder">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource FocusedBorderBrush}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Unfocused" />
</VisualStateGroup>
</vsm:VisualStateManager.VisualStateGroups>
<Border Background="{StaticResource OnItemUIBackgroundBrush_normal}" BorderBrush="{StaticResource OnItemUIBorderBrush}" BorderThickness="1">
</Border>
<Border x:Name="HoverBorder" Background="{StaticResource OnItemUIBackgroundBrush_hover}" BorderBrush="{StaticResource OnItemUIBorderBrush}" BorderThickness="1" Opacity="0.1" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" />
<Border x:Name="FocusBorder" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" />
<ContentPresenter Margin="3" />
</Grid>
parsing
done parsing
<Button x:Name="m_iconOnItemUI" Visibility="{Binding Icon, Converter={StaticResource NullToVisibilityConverter}}" ToolTipService.ToolTip="{Binding ToolTip}" Style="{StaticResource OnItemUIButtonStyle}" toolkit:DockPanel.Dock="Right" xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<int:Interaction.Behaviors xmlns:int="clr-namespace:Microsoft.Pivot.Internal.Interactivity;assembly=System.Windows.Pivot.SharedUI">
<beh:MouseLeftClickBehavior Command="{Binding Source={StaticResource ViewModel}, Path=CustomActionExecutionCommand}" CommandParameter="{Binding}" xmlns:beh="clr-namespace:Microsoft.Pivot.Internal.Interactivity.Behaviors;assembly=System.Windows.Pivot.SharedUI" />
</int:Interaction.Behaviors>
<Image x:Name="m_iconGroupIcon" Height="16" Width="16" Stretch="Uniform" Source="{Binding Icon}" Margin="2,0,2,0" />
</Button>
parsing:
<Binding xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:i="clr-namespace:Microsoft.Pivot.Internal.Interactivity;assembly=System.Windows.Pivot.SharedUI"
Path="(i:Behavior.InternalDataContext)"/>
parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment