Hi,
I'm trying to apply a red color outer border for the funnel filtering icon when filter is applied to indicate the filter is active.
Looking at the documentation, I see 4 Path elements for PART_DropDownButton.
https://docs.telerik.com/devtools/wpf/controls/radgridview/styles-and-templates/templates-structure#filteringdropdown
But I only see 2 Path elements under DistinctFilterControlTemplate from GridView xaml (as shown in below code block). 2 of the paths from documentation indicate the outer border and background when filtering is applied.
Please guide me here on how to proceed to apply a red border when filtering is active.
<
ControlTemplate
TargetType
=
"grid:FilteringDropDown"
x:Key
=
"DistinctFilterControlTemplate"
>
<
Grid
>
<
Button
x:Name
=
"PART_DropDownButton"
>
<
Button.Template
>
<
ControlTemplate
TargetType
=
"Button"
>
<
ContentPresenter
/>
</
ControlTemplate
>
</
Button.Template
>
<
Border
Cursor
=
"Hand"
MinWidth
=
"22"
Background
=
"Transparent"
>
<
Grid
>
<
Path
Data
=
"M0.93340254,0 L4.934082,0 L6.934082,0 L10.93358,0 C11.996876,0 12.199773,0.75 11.668063,1.359375 L8.4335356,5.5 C8.100522,5.8975558 7.983531,6.062263 7.9429321,6.2736206 L7.934082,6.3298788 L7.934082,10.332101 C7.934082,10.332101 3.9340818,14.997499 3.9340818,14.997499 L3.9340818,6.3293748 L3.9286206,6.3012671 C3.8825667,6.1045012 3.751812,5.9296875 3.3865709,5.5 L0.24589038,1.40625 C-0.2067349,0.84375 -0.066181421,1.2241071E-16 0.93340254,0 z"
Fill
=
"{telerik:Windows8Resource ResourceKey=StrongBrush}"
Stretch
=
"Fill"
Margin
=
"2 1 2 2"
Width
=
"8"
Height
=
"11"
/>
<
Path
Data
=
"M0.93340254,0 L4.934082,0 L6.934082,0 L10.93358,0 C11.996876,0 12.199773,0.75 11.668063,1.359375 L8.4335356,5.5 C8.100522,5.8975558 7.983531,6.062263 7.9429321,6.2736206 L7.934082,6.3298788 L7.934082,10.332101 C7.934082,10.332101 3.9340818,14.997499 3.9340818,14.997499 L3.9340818,6.3293748 L3.9286206,6.3012671 C3.8825667,6.1045012 3.751812,5.9296875 3.3865709,5.5 L0.24589038,1.40625 C-0.2067349,0.84375 -0.066181421,1.2241071E-16 0.93340254,0 z"
Fill
=
"{telerik:Windows8Resource ResourceKey=AccentBrush}"
Width
=
"8"
Height
=
"11"
Visibility
=
"{TemplateBinding FunnelFillVisibility}"
Margin
=
"2 1 2 2"
Stretch
=
"Fill"
/>
</
Grid
>
</
Border
>
</
Button
>
<
Popup
x:Name
=
"PART_DropDownPopup"
StaysOpen
=
"True"
AllowsTransparency
=
"True"
PopupAnimation
=
"Slide"
/>
</
Grid
>
</
ControlTemplate
>
I need to create a container something like image target.png.
I've been looking at building this using nested containers (see 1.png)
The first issue I have is when you collapse the inner container, you still get a small body area (see 2.png), how do I get rid of this?
The other thing to note here is that collapsing the inner container also moves the connection point to the bottom of the header - which seems like a sensible place for it to move to.
The main issue occurs if you collapse the outer container (see 3.png)
Now the connection point from the inner container moves to the center of the header block. How do I make it behave like it did when only one level is collapsed (i.e. move to the bottom right of the header block?
Hi team,
How can I restore the "default" location of all floating windows when restoring the docking layout from the saved XML? That is, windows can be floated and arranged in any configuration, then saved - however, on restore any floating windows will be re-docked back to the XAML defined location for that panel.
Thanks,
Maurice
Hi,
I have a grid with 18 columns of which are only 3 are editable. ( 3 ReadOnly - 3 Editable - 12 ReadOnly)
The grid is bound to a viewmodel via ItemsSource.
So the other columns (GridViewDataColumn) are set to IsReadOnly="True" and TabStopMode="Skip"
If the user enters data there is a delay of 1-1.5 sec after the last editable cell (when the selection goes over the 15 non-selectable cells and goes to the next row)
If I add columns the problem get even worse.
[The Telerik.Windows.Controls.GridView version is 2018.1.220.45]
Hi there everyone,
I am currently trying to bind the DateTimeComponent attribute of the DateTimeCategoricalAxis to a property of my ViewModel. However, when I try to debug the application, it throws an exception essentially saying that I can't bind the DateTimeComponent as it is not a DependencyProperty. Granted, I am no expert at WPF, however reading this prompted me to think that this was no error on my side but rather a conscious decision made by Telerik. So currently I am looking for a way to dynamically set the units which are displayed on the x-axis of my chart. If you guys have any idea how I can get that to work with the DateTimeCategoricalAxis, that would be great, however solutions with other axes are also okay (DateTimeContinuousAxis does not work either, but for different reasons).
Thanks in advance for your replies!
Best regards
Nico
Hello,
I just added an "ExplorerControl" to my view and realized that the ContextMenu-Placement seems to be wrong.
The ContextMenu of for example MainPane does not appear at mouse point or in MainPane area. (See attached image)
Furthermore I want to select one file by code (to have one file selected as an initial state) and found no way to do that.
Have you any suggestions for me?
Best Regards
Sandra
<
Window
x:Class
=
"ChartControlEvaluationProject.SimpleWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"Simple Window"
>
<
Grid
>
<
telerik:RadCartesianChart
x:Name
=
"chart"
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:CategoricalAxis
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Series
>
<
telerik:LineSeries
Stroke
=
"Orange"
StrokeThickness
=
"2"
>
<
telerik:LineSeries.DataPoints
>
<
telerik:CategoricalDataPoint
Value
=
"20"
/>
<
telerik:CategoricalDataPoint
Value
=
"40"
/>
<
telerik:CategoricalDataPoint
Value
=
"35"
/>
<
telerik:CategoricalDataPoint
Value
=
"40"
/>
<
telerik:CategoricalDataPoint
Value
=
"30"
/>
<
telerik:CategoricalDataPoint
Value
=
"50"
/>
</
telerik:LineSeries.DataPoints
>
</
telerik:LineSeries
>
</
telerik:RadCartesianChart.Series
>
</
telerik:RadCartesianChart
>
</
Grid
>
</
Window
>
Hello,
I spent some time but didn't find an answer to my questions.
Is it possible to use HierarchyChildTemplate with MVVM approach?
The thing that I want to use a custom UserControl as DataTemplate inside HierarchyChildTemplate. I also want to use separate DataContext.
Regards,
Grigory
I don't want that my client could change the slider value.
When I set Slider.IsEnable= false all the slider colors change to gray.
Hello,
I was trying to stylize the RadExpander component, however the style is not working as expected. When the application is started, all the Expander subitems shows something painted in white (I don't know if it is the background or another property) and I have tried hard to find out what is wrong, but I just couldn't.
The weird thing is that when I copy the code and paste it in Blend, it works as expected! So, the style don't work in Visual Studio 2013, but works in Blend for Visual Studio 2013. How could it be?
I'm sending the code I'm using and the prints of how I expect it to look like and how it's looking like now.
Thank you so much,
Evelyn
Nucleo
Images:
VS = Visual Studio 2013
Blend = Blend for Visual Studio 2013.
<
Window
x:Class
=
"WpfApplication1.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:System
=
"clr-namespace:System;assembly=mscorlib"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Window.Resources
>
<!-- RadPanelItem colors -->
<
LinearGradientBrush
x:Key
=
"BackgroundButton"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFEB0A32"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FFC3092A"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFEB0A32"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonSelected"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FF963637"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonMouseOver"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFEB3C32"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FFC33C2A"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFEB3C32"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonPressed"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FF963637"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<!-- RadPanelItem Subitems colors -->
<
LinearGradientBrush
x:Key
=
"BackgroundButton2"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FF963637"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFC83C50"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonSelected2"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFC95868"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FF955858"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFC95868"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonMouseOver2"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFFF3E61"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FFD82C5B"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFFF3E61"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<
LinearGradientBrush
x:Key
=
"BackgroundButtonPressed2"
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFC95364"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FF974F4F"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFC95364"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
<!-- RadButton Style -->
<
Style
TargetType
=
"telerik:RadButton"
>
<
Setter
Property
=
"Margin"
Value
=
"10 10 10 10"
/>
<
Setter
Property
=
"CornerRadius"
Value
=
"5"
/>
<
Setter
Property
=
"Cursor"
Value
=
"Hand"
/>
<
Setter
Property
=
"Height"
Value
=
"50"
/>
</
Style
>
<!-- RadExpander Style -->
<
Style
x:Key
=
"RadExpanderStyle"
TargetType
=
"{x:Type telerik:RadExpander}"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadExpander}"
>
<
Grid
HorizontalAlignment
=
"{TemplateBinding HorizontalAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalAlignment}"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"HeaderStateGroup"
>
<
VisualState
x:Name
=
"NormalHeader"
/>
<
VisualState
x:Name
=
"MouseOverHeader"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Stroke"
Storyboard.TargetName
=
"OuterCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"0.126"
/>
</
LinearGradientBrush
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Stroke"
Storyboard.TargetName
=
"InnerCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
SolidColorBrush
Color
=
"#FF989898"
/>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Fill"
Storyboard.TargetName
=
"OuterCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFEB3C32"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FFC33C2A"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFEB3C32"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Fill"
Storyboard.TargetName
=
"arrow"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
SolidColorBrush
Color
=
"White"
/>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"PressedHeader"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Stroke"
Storyboard.TargetName
=
"OuterCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"0.126"
/>
</
LinearGradientBrush
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Stroke"
Storyboard.TargetName
=
"InnerCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Fill"
Storyboard.TargetName
=
"OuterCircle"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFEB000A"
Offset
=
"0.31"
/>
<
GradientStop
Color
=
"#FFC3000A"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFEB000A"
Offset
=
"0.008"
/>
</
LinearGradientBrush
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Fill"
Storyboard.TargetName
=
"arrow"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
SolidColorBrush
Color
=
"White"
/>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"HeaderOrientationGroup"
>
<
VisualState
x:Name
=
"HorizontalOrientation"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"LayoutTransform"
Storyboard.TargetName
=
"HeaderContentTransform"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
RotateTransform
Angle
=
"0"
/>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Column)"
Storyboard.TargetName
=
"HeaderContentTransform"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"VerticalOrientation"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"LayoutTransform"
Storyboard.TargetName
=
"HeaderContentTransform"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
RotateTransform
Angle
=
"90"
/>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Row)"
Storyboard.TargetName
=
"HeaderContentTransform"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStateGroup"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"180"
Storyboard.TargetProperty
=
"(UIElement.RenderTransform).Angle"
Storyboard.TargetName
=
"arrow"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"0"
Storyboard.TargetProperty
=
"(UIElement.RenderTransform).Angle"
Storyboard.TargetName
=
"arrow"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandDirectionStates"
>
<
VisualStateGroup.Transitions
>
<
VisualTransition
From
=
"{x:Null}"
GeneratedDuration
=
"0"
GeneratedEasingFunction
=
"{x:Null}"
To
=
"{x:Null}"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Row)"
Storyboard.TargetName
=
"Content"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>0</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Column)"
Storyboard.TargetName
=
"Content"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>0</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Row)"
Storyboard.TargetName
=
"HeaderButton"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>0</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Column)"
Storyboard.TargetName
=
"HeaderButton"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>0</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>Auto</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col1"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>Auto</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>Auto</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row1"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>Auto</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualTransition
>
</
VisualStateGroup.Transitions
>
<
VisualState
x:Name
=
"DirectionLeft"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Column)"
Storyboard.TargetName
=
"HeaderButton"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0"
To
=
"90"
Storyboard.TargetProperty
=
"(UIElement.RenderTransform).Angle"
Storyboard.TargetName
=
"arrowPanel"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"DirectionRight"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col1"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Column)"
Storyboard.TargetName
=
"Content"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0"
To
=
"-90"
Storyboard.TargetProperty
=
"(UIElement.RenderTransform).Angle"
Storyboard.TargetName
=
"arrowPanel"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"DirectionUp"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Row)"
Storyboard.TargetName
=
"HeaderButton"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0"
To
=
"180"
Storyboard.TargetProperty
=
"(UIElement.RenderTransform).Angle"
Storyboard.TargetName
=
"arrowPanel"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"DirectionDown"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Width"
Storyboard.TargetName
=
"col0"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Height"
Storyboard.TargetName
=
"row1"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
GridLength
>*</
GridLength
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"(Grid.Row)"
Storyboard.TargetName
=
"Content"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
System:Int32
>1</
System:Int32
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
CornerRadius
=
"3"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
x:Name
=
"col0"
Width
=
"Auto"
/>
<
ColumnDefinition
x:Name
=
"col1"
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
x:Name
=
"row2"
Height
=
"26"
/>
<
RowDefinition
x:Name
=
"row0"
Height
=
"Auto"
/>
<
RowDefinition
x:Name
=
"row1"
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadToggleButton
x:Name
=
"HeaderButton"
Background
=
"Transparent"
ClickMode
=
"{TemplateBinding ClickMode}"
Foreground
=
"{TemplateBinding Foreground}"
FontWeight
=
"{TemplateBinding FontWeight}"
FocusVisualStyle
=
"{x:Null}"
FontStyle
=
"{TemplateBinding FontStyle}"
FontStretch
=
"{TemplateBinding FontStretch}"
FontSize
=
"{TemplateBinding FontSize}"
FontFamily
=
"{TemplateBinding FontFamily}"
HorizontalAlignment
=
"{TemplateBinding HorizontalHeaderAlignment}"
HorizontalContentAlignment
=
"{TemplateBinding HorizontalHeaderAlignment}"
IsChecked
=
"{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
InnerCornerRadius
=
"0"
TabIndex
=
"{TemplateBinding TabIndex}"
VerticalAlignment
=
"{TemplateBinding VerticalHeaderAlignment}"
VerticalContentAlignment
=
"{TemplateBinding VerticalHeaderAlignment}"
>
<
telerik:RadToggleButton.Template
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadToggleButton}"
>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
Content
=
"{TemplateBinding Content}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
ControlTemplate
>
</
telerik:RadToggleButton.Template
>
<
Grid
x:Name
=
"HeaderPanel"
Background
=
"Transparent"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid
>
<
Rectangle
x:Name
=
"OuterCircle"
Height
=
"20"
Stroke
=
"#FF848484"
VerticalAlignment
=
"Center"
Width
=
"20"
Fill
=
"{StaticResource BackgroundButton}"
/>
<
Rectangle
x:Name
=
"InnerCircle"
HorizontalAlignment
=
"Center"
Height
=
"18"
Stroke
=
"#FF989898"
VerticalAlignment
=
"Center"
Width
=
"18"
/>
<
Grid
x:Name
=
"arrowPanel"
RenderTransformOrigin
=
"0.5,0.5"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
>
<
Grid.RenderTransform
>
<
RotateTransform
/>
</
Grid.RenderTransform
>
<
Path
x:Name
=
"arrow"
Data
=
"M0,0L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75z"
Stroke
=
"White"
StrokeThickness
=
"2"
Fill
=
"White"
Height
=
"10"
RenderTransformOrigin
=
"0.5,0.5"
Stretch
=
"None"
Width
=
"10"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
>
<
Path.RenderTransform
>
<
RotateTransform
Angle
=
"0"
/>
</
Path.RenderTransform
>
</
Path
>
</
Grid
>
</
Grid
>
<
telerik:LayoutTransformControl
x:Name
=
"HeaderContentTransform"
IsTabStop
=
"False"
RenderTransformOrigin
=
"0.5,0.5"
>
<
ContentPresenter
x:Name
=
"HeaderContent"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Column
=
"1"
HorizontalAlignment
=
"Stretch"
Margin
=
"5,0"
VerticalAlignment
=
"Stretch"
/>
</
telerik:LayoutTransformControl
>
</
Grid
>
</
telerik:RadToggleButton
>
<
ContentPresenter
Grid.Row
=
"1"
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
Content
=
"{TemplateBinding Content}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
Visibility
=
"Collapsed"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
Grid
>
</
Border
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
<
Setter
Property
=
"Cursor"
Value
=
"Help"
/>
<
Setter
Property
=
"IsTabStop"
Value
=
"False"
/>
<
Setter
Property
=
"FocusVisualStyle"
Value
=
"{x:Null}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"Transparent"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0"
/>
</
Style
>
<!-- RadPanelBarItem Style -->
<
Style
x:Key
=
"RadPanelBarItemStyle"
TargetType
=
"telerik:RadPanelBarItem"
>
<
Setter
Property
=
"Margin"
Value
=
"0 5 0 0"
/>
<
Setter
Property
=
"Cursor"
Value
=
"Hand"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource BackgroundButton}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"14"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"SemiBold"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
<
Setter
Property
=
"ChildItemsTemplate"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"1"
Storyboard.TargetProperty
=
"Cursor"
Storyboard.TargetName
=
"CursorMouseOver"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectionVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Background
=
"Transparent"
>
<
Border
x:Name
=
"CursorMouseOver"
Cursor
=
"Hand"
/>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButton}"
/>
<
Border
x:Name
=
"SelectionVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected}"
/>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"Transparent"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
CornerRadius
=
"0"
/>
</
Border
>
<
ContentControl
x:Name
=
"Header"
Background
=
"{TemplateBinding Background}"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Rectangle
x:Name
=
"FocusVisual"
IsHitTestVisible
=
"False"
RadiusY
=
"2"
RadiusX
=
"2"
Stroke
=
"Black"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
ItemsPresenter
/>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectionVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Background
=
"Transparent"
>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonMouseOver}"
/>
<
Border
x:Name
=
"SelectionVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected}"
/>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"Transparent"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
CornerRadius
=
"0"
/>
</
Border
>
<
ContentControl
x:Name
=
"Header"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Rectangle
x:Name
=
"FocusVisual"
IsHitTestVisible
=
"False"
RadiusY
=
"2"
RadiusX
=
"2"
Stroke
=
"#FF989898"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
ItemsPresenter
/>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"KeyboardNavigation.TabNavigation"
Value
=
"Local"
/>
<
Setter
Property
=
"SnapsToDevicePixels"
Value
=
"True"
/>
<
Setter
Property
=
"ItemsPanel"
>
<
Setter.Value
>
<
ItemsPanelTemplate
>
<
telerik:PanelBarPanel
IsItemsHost
=
"True"
/>
</
ItemsPanelTemplate
>
</
Setter.Value
>
</
Setter
>
<
Style.Triggers
>
<
Trigger
Property
=
"Level"
Value
=
"1"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
SnapsToDevicePixels
=
"True"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"NormalVisual"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"0.5"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"arrow"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"0.5"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"Header"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<!--<DoubleAnimation Duration="0" To="180" Storyboard.TargetProperty="Angle" Storyboard.TargetName="directionRotation"/>-->
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Height
=
"30"
Width
=
"Auto"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
Border
x:Name
=
"NormalVisual"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Grid.ColumnSpan
=
"5"
>
<
Border
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
Background
=
"{TemplateBinding Background}"
/>
</
Border
>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FFCDCCC9"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonMouseOver}"
>
<
Border
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
>
</
Border
>
</
Border
>
<
Border
x:Name
=
"SelectVisual"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected}"
>
<
Border.BorderBrush
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Border.BorderBrush
>
<
Border
BorderThickness
=
"1"
>
<
Border.BorderBrush
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"0.126"
/>
</
LinearGradientBrush
>
</
Border.BorderBrush
>
</
Border
>
</
Border
>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"Transparent"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
/>
</
Border
>
<
Path
x:Name
=
"arrow"
Grid.Column
=
"5"
Data
=
"M1,1.5L4.5,5 8,1.5"
HorizontalAlignment
=
"Right"
Margin
=
"7,0"
Opacity
=
"1"
RenderTransformOrigin
=
"0.5,0.5"
Stretch
=
"None"
Stroke
=
"White"
StrokeThickness
=
"2"
VerticalAlignment
=
"Center"
>
<
Path.RenderTransform
>
<
RotateTransform
Angle
=
"0"
/>
</
Path.RenderTransform
>
</
Path
>
<
ContentControl
x:Name
=
"Header"
Grid.ColumnSpan
=
"4"
Margin
=
"8 0 0 0"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
FontSize
=
"{TemplateBinding FontSize}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"Center"
/>
<
Rectangle
x:Name
=
"FocusVisual"
Grid.ColumnSpan
=
"5"
Grid.Column
=
"0"
IsHitTestVisible
=
"False"
Stroke
=
"Black"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
telerik:LayoutTransformControl
x:Name
=
"transformationRoot"
IsTabStop
=
"False"
>
<
ItemsPresenter
/>
</
telerik:LayoutTransformControl
>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
<!-- RadPanelBarItem2 Style -->
<
Style
TargetType
=
"telerik:RadPanelBarItem"
>
<
Setter
Property
=
"Cursor"
Value
=
"Hand"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource BackgroundButton2}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"14"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Normal"
/>
<
Setter
Property
=
"Margin"
Value
=
"10 5 5 0"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
<
Setter
Property
=
"ChildItemsTemplate"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.0"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectionVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Background
=
"Transparent"
>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButton2}"
/>
<
Border
x:Name
=
"SelectionVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected2}"
/>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"Transparent"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
CornerRadius
=
"0"
/>
</
Border
>
<
ContentControl
x:Name
=
"Header"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Rectangle
x:Name
=
"FocusVisual"
IsHitTestVisible
=
"False"
RadiusY
=
"2"
RadiusX
=
"2"
Stroke
=
"Black"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
ItemsPresenter
/>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectionVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Background
=
"{StaticResource BackgroundButton2}"
>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonMouseOver2}"
/>
<
Border
x:Name
=
"SelectionVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected2}"
/>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
CornerRadius
=
"1"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"#FFCDCDCD"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
CornerRadius
=
"0"
/>
</
Border
>
<
ContentControl
x:Name
=
"Header"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Rectangle
x:Name
=
"FocusVisual"
IsHitTestVisible
=
"False"
RadiusY
=
"2"
RadiusX
=
"2"
Stroke
=
"#FFCDCDCD"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
ItemsPresenter
/>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"KeyboardNavigation.TabNavigation"
Value
=
"Local"
/>
<
Setter
Property
=
"SnapsToDevicePixels"
Value
=
"True"
/>
<
Setter
Property
=
"ItemsPanel"
>
<
Setter.Value
>
<
ItemsPanelTemplate
>
<
telerik:PanelBarPanel
IsItemsHost
=
"True"
/>
</
ItemsPanelTemplate
>
</
Setter.Value
>
</
Setter
>
<
Style.Triggers
>
<
Trigger
Property
=
"Level"
Value
=
"1"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadPanelBarItem}"
>
<
Grid
x:Name
=
"RootElement"
SnapsToDevicePixels
=
"True"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"NormalVisual"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"DisabledVisual"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"0.5"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"arrow"
/>
<
DoubleAnimation
Duration
=
"0"
To
=
"0.5"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"Header"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"MouseOverVisual"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"MouseOut"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"Selected"
>
<
Storyboard
>
<
DoubleAnimation
Duration
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"SelectVisual"
/>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ExpandStates"
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<!--<DoubleAnimation Duration="0" To="180" Storyboard.TargetProperty="Angle" Storyboard.TargetName="directionRotation"/>-->
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ItemsContainer"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
DoubleAnimation
Duration
=
"0:0:0.2"
From
=
"0"
To
=
"1"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ItemsContainer"
/>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Collapsed"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Focused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unfocused"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"FocusVisual"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
x:Name
=
"HeaderRow"
Height
=
"30"
Width
=
"Auto"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
Border
x:Name
=
"NormalVisual"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Grid.ColumnSpan
=
"5"
>
<
Border
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
Background
=
"{TemplateBinding Background}"
/>
</
Border
>
<
Border
x:Name
=
"MouseOverVisual"
BorderBrush
=
"#FFAEAEAE"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonMouseOver2}"
>
<
Border
BorderBrush
=
"#FFAEAEAE"
BorderThickness
=
"1"
>
</
Border
>
</
Border
>
<
Border
x:Name
=
"SelectVisual"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
Background
=
"{StaticResource BackgroundButtonSelected2}"
>
<
Border.BorderBrush
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Border.BorderBrush
>
<
Border
BorderThickness
=
"1"
>
<
Border.BorderBrush
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFD4D0C4"
/>
<
GradientStop
Color
=
"#FFB9B5AA"
Offset
=
"0.126"
/>
</
LinearGradientBrush
>
</
Border.BorderBrush
>
</
Border
>
</
Border
>
<
Border
x:Name
=
"DisabledVisual"
BorderBrush
=
"#FF989898"
BorderThickness
=
"1"
Grid.ColumnSpan
=
"5"
Opacity
=
"0"
>
<
Border
BorderBrush
=
"Transparent"
BorderThickness
=
"1"
Background
=
"#FFE0E0E0"
/>
</
Border
>
<
Path
x:Name
=
"arrow"
Grid.Column
=
"5"
Data
=
"M1,1.5L4.5,5 8,1.5"
HorizontalAlignment
=
"Right"
Margin
=
"7,0"
Opacity
=
"1"
RenderTransformOrigin
=
"0.5,0.5"
Stretch
=
"None"
Stroke
=
"White"
StrokeThickness
=
"2"
VerticalAlignment
=
"Center"
>
<
Path.RenderTransform
>
<
RotateTransform
Angle
=
"0"
/>
</
Path.RenderTransform
>
</
Path
>
<
ContentControl
x:Name
=
"Header"
Grid.ColumnSpan
=
"4"
Margin
=
"8 0 0 0"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Foreground
=
"{TemplateBinding Foreground}"
FontSize
=
"{TemplateBinding FontSize}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"Center"
/>
<
Rectangle
x:Name
=
"FocusVisual"
Grid.ColumnSpan
=
"5"
Grid.Column
=
"0"
IsHitTestVisible
=
"False"
Stroke
=
"Black"
StrokeThickness
=
"1"
StrokeDashArray
=
"1 2"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"ItemsContainer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
>
<
telerik:LayoutTransformControl
x:Name
=
"transformationRoot"
IsTabStop
=
"False"
>
<
ItemsPresenter
/>
</
telerik:LayoutTransformControl
>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
</
Window.Resources
>
<
Grid
Background
=
"LightGray"
>
<
telerik:RadExpander
ExpandDirection
=
"Right"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Style
=
"{StaticResource RadExpanderStyle}"
>
<
telerik:RadPanelBar
Margin
=
"0 0 5 5"
>
<
telerik:RadPanelBarItem
Header
=
"Vendas"
Style
=
"{StaticResource RadPanelBarItemStyle}"
>
<
telerik:RadPanelBarItem
Header
=
"Cadastros"
/>
<
telerik:RadPanelBarItem
Header
=
"Calculo de P"
Tag
=
"21"
/>
<
telerik:RadPanelBarItem
Header
=
"Calc Penden"
Tag
=
""
/>
<
telerik:RadPanelBarItem
Header
=
"Relatorios"
/>
</
telerik:RadPanelBarItem
>
<
telerik:RadPanelBarItem
Header
=
"Producao"
Style
=
"{StaticResource RadPanelBarItemStyle}"
>
<
telerik:RadPanelBarItem
Header
=
"Cadastros"
Tag
=
"2"
/>
<
telerik:RadPanelBarItem
Header
=
"Laudo"
Tag
=
"5"
/>
<
telerik:RadPanelBarItem
Header
=
"Planejamento"
Tag
=
"4"
/>
<
telerik:RadPanelBarItem
Header
=
"PCP"
Tag
=
"3"
/>
<
telerik:RadPanelBarItem
Header
=
"Relatorios"
/>
</
telerik:RadPanelBarItem
>
</
telerik:RadPanelBar
>
</
telerik:RadExpander
>
</
Grid
>
</
Window
>