Telerik Forums
UI for WPF Forum
2 answers
173 views
Hi,

I have read in documentation that RadCharts supports binding to a data source with change notification. I assume this means, when a change is made to that data type it will automatically reflect on the graph? I havent been able to succesfully implement this using an ArrayList. Is there a sample application available?

Regards

Rav
Liberte
Top achievements
Rank 1
 answered on 28 Jul 2009
2 answers
92 views
I have many 'float' items which I have set to display to one decimal place using DataFormatString="{}{0:0.0}" but when I use the 'filter', some of these are displayed with more than one decimal place, which is confusing. Is there any way to set the filter items to the same format?
SteveL
Top achievements
Rank 2
 answered on 28 Jul 2009
2 answers
163 views
How do I cancel editing on TreeView?
I want to do some check on Database, it criteria doesn't meet it will rollback the old value.
Fakhru
Top achievements
Rank 2
 answered on 27 Jul 2009
3 answers
180 views
Hello

I need an example of the WPF Radcarousel where look like as Winform Radcoursel (Solar System demo). Please send it to jamesa@tvazteca.com.mx. Or somebody knows how do it?

Thanks a lot
Milan
Telerik team
 answered on 27 Jul 2009
7 answers
375 views
Hi!

I am using  <telerik:RadUpload>  control.

And everything is working fine. The only problem I have that is 

<

 

telerik1:RadProgressBar Background

when I change background of RadProgressbar it does not cover all space of the item.
There is left a border strip at the left side of item which is still red colored. And this is why I say that changing background
of RadProgressBar does not apply to all available space inside the item.

Please, give me example of how to handle it in silverlight app.

Thanks, My Best Regards!

Anatoliy Abbott.

This is what I have in .xaml file:

 

<

 

UserControl x:Class="SilverlightAppFirm3.Page"

 

 

 

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

Width="800" Height="175"

 

 

 

 

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"

 

 

 

 

 

xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"

 

 

 

 

 

xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

 

 

 

 

 

>

 

 

 

 

 

 

<Grid HorizontalAlignment="Left" Background="#FFBDD0e2" VerticalAlignment="Top" x:Name="LayoutRoot">

 

 

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

 

 

<RowDefinition MaxHeight="200" />

 

 

 

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

 

 

<Grid.ColumnDefinitions>

 

 

 

 

 

 

<ColumnDefinition Width="400" />

 

 

 

 

 

 

<ColumnDefinition Width="400" />

 

 

 

 

 

 

</Grid.ColumnDefinitions>

 

 

 

 

 

 

 

<telerik:RadUpload Grid.Row="0"

 

 

Background="#FFBDD0e2"

 

 

 

 

 

VerticalAlignment="Top"

 

 

HorizontalAlignment="Left"

 

 

IsDeleteEnabled="True"

 

 

IsMultiselect="True"

 

 

IsEnabled="True"

 

 

BufferSize="500000"

 

 

Grid.Column="0"

 

 

x:Name="RadUpload1"

 

 

Filter="(Files(*.*)|*.*"

 

 

 

 

 

FilterIndex="0"

 

 

IsAutomaticUpload="False"

 

 

OverwriteExistingFiles="True"

 

 

MinHeight="175" MaxHeight="175"

 

 

MinWidth="390" MaxWidth="390"

 

 

UploadServiceUrl=""

 

 

 

 

 

TargetFolder="~\Uploads"

 

 

FileCountExceeded="RadUpload_FileCountExceeded"

 

 

 

 

 

FilesSelected="RadUpload_FilesSelected"

 

 

FileTooLarge="RadUpload_FileTooLarge"

 

 

 

 

 

FileUploaded="RadUpload_FileUploaded"

 

 

FileUploadFailed="RadUpload_FileUploadFailed"

 

 

 

 

 

FileUploadStarting="RadUpload_FileUploadStarting"

 

 

 

 

 

ProgressChanged="RadUpload_ProgressChanged"

 

 

 

 

 

UploadCanceled="RadUpload_UploadCanceled"

 

 

UploadFinished="RadUpload_UploadFinished"

 

 

 

 

 

UploadPaused="RadUpload_UploadPaused"

 

 

UploadResumed="RadUpload_UploadResumed"

 

 

 

 

 

UploadSizeExceeded="RadUpload_UploadSizeExceeded"

 

 

 

 

 

UploadStarted="RadUpload_UploadStarted" Width="392" >

 

 

 

 

 

 

<telerik:RadUpload.Resources>

 

 

 

 

 

 

<SolidColorBrush x:Key="ContentBackgroundBrush" Color="#FFBDD0e2"/>

 

 

 

 

 

 

<SolidColorBrush x:Key="BorderOuterBrush" Color="#FFBDD0e2"/>

 

 

 

 

 

 

<LinearGradientBrush x:Key="BorderOuterColor" EndPoint="0.714,1.292" StartPoint="0.318,0.068">

 

 

 

 

 

 

<GradientStop Color="#FFBDD0e2" Offset="0.39079609253679837"/>

 

 

 

 

 

 

<GradientStop Color="#FFBDD0e2" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

<SolidColorBrush x:Key="HeaderForegroundBrush" Color="#FF000000"/>

 

 

 

 

 

 

<Style x:Key="StyleScrollBar" TargetType="ScrollBar">

 

 

 

 

 

 

<Setter Property="MinWidth" Value="17"/>

 

 

 

 

 

 

<Setter Property="MinHeight" Value="17"/>

 

 

 

 

 

 

<Setter Property="IsTabStop" Value="False"/>

 

 

 

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="ScrollBar">

 

 

 

 

 

 

<Grid x:Name="Root">

 

 

 

 

 

 

<Grid.Resources>

 

 

 

 

 

 

<ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">

 

 

 

 

 

 

<Grid x:Name="Root" Background="#BDD0E2" >

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="HorizontalIncrementTemplate" TargetType="RepeatButton">

 

 

 

 

 

 

<Grid x:Name="Root">

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity" To=".7"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Rectangle x:Name="Background" Opacity="0" Fill="#BDD0E2" Stroke="#132848" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0,1">

 

 

 

 

 

 

<GradientStop Color="#FFf8f4f3" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFeaeaec" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="#FFdcdcde" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="#FFc1c0c5" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Path Height="8" Width="4" Stretch="Uniform" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z ">

 

 

 

 

 

 

<Path.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0,1" x:Name="ButtonColor">

 

 

 

 

 

 

<GradientStop Color="#FF888888" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFcccccd" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Path.Fill>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<Rectangle x:Name="DisabledElement" Opacity="0" Fill="#FFFFFFFF" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="HorizontalDecrementTemplate" TargetType="RepeatButton">

 

 

 

 

 

 

<Grid x:Name="Root">

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity" To=".7"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Rectangle x:Name="Background" Opacity="0" Fill="#FF1F3B53" Stroke="#959595" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0,1">

 

 

 

 

 

 

<GradientStop Color="#FFf8f4f3" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFeaeaec" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="#FFdcdcde" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="#FFc1c0c5" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Path Height="8" Width="4" Stretch="Uniform" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z ">

 

 

 

 

 

 

<Path.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0,1" x:Name="ButtonColor">

 

 

 

 

 

 

<GradientStop Color="#FF888888" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFcccccd" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Path.Fill>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<Rectangle x:Name="DisabledElement" Opacity="0" Fill="#FFFFFFFF" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="VerticalIncrementTemplate" TargetType="RepeatButton">

 

 

 

 

 

 

<Grid x:Name="Root">

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity" To=".7"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Rectangle x:Name="Background" Opacity="0" Fill="#FF1F3B53" Stroke="#959595" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="1,.7" StartPoint="0,.7">

 

 

 

 

 

 

<GradientStop Color="#FFf8f4f3" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFeaeaec" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="#FFdcdcde" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="#FFc1c0c5" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Path Height="4" Width="8" Stretch="Uniform" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z ">

 

 

 

 

 

 

<Path.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="-0.199,0.5" StartPoint="1.199,0.5" x:Name="ButtonColor">

 

 

 

 

 

 

<GradientStop Color="#FF888888" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFcccccd" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Path.Fill>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<Rectangle x:Name="DisabledElement" Opacity="0" Fill="#FFFFFFFF" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="VerticalDecrementTemplate" TargetType="RepeatButton">

 

 

 

 

 

 

<Grid x:Name="Root">

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity" To=".7"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Rectangle x:Name="Background" Opacity="0" Fill="#FF1F3B53" Stroke="#959595" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="1,.7" StartPoint="0,.7">

 

 

 

 

 

 

<GradientStop Color="#FFf8f4f3" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFeaeaec" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="#FFdcdcde" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="#FFc1c0c5" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Path Height="4" Width="8" Stretch="Uniform" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z ">

 

 

 

 

 

 

<Path.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="-0.199,0.5" StartPoint="1.199,0.5" x:Name="ButtonColor">

 

 

 

 

 

 

<GradientStop Color="#FF888888" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFcccccd" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Path.Fill>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<Rectangle x:Name="DisabledElement" Opacity="0" Fill="#FFFFFFFF" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="VerticalThumbTemplate" TargetType="Thumb">

 

 

 

 

 

 

<Grid>

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity" To="0"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Grid Margin="1,0,1,0" x:Name="ThumbVisual">

 

 

 

 

 

 

<Rectangle x:Name="Background" Fill="#BDD0E2" Stroke="#959595" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Stroke="#f3f3f3" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="1,.7" StartPoint="0,.7">

 

 

 

 

 

 

<GradientStop Color="White" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="White" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="White" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="White" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<StackPanel Height="5" HorizontalAlignment="Center" VerticalAlignment="Center">

 

 

 

 

 

 

<Border Margin="0,0,0,2" x:Name="Line1" Width="7" BorderBrush="#787777" BorderThickness="0,1,0,0">

 

 

 

 

 

 

<Border Margin="0,1,0,2" x:Name="Line2" Width="7" BorderBrush="#787777" BorderThickness="0,1,0,0">

 

 

 

 

 

 

<Border Margin="0,1,0,2" x:Name="Line3" Width="7" BorderBrush="#787777" BorderThickness="0,1,0,0"/>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

</StackPanel>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

<ControlTemplate x:Key="HorizontalThumbTemplate" TargetType="Thumb">

 

 

 

 

 

 

<Grid>

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee8c7"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfedda4"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfed798"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffc668"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Pressed">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity" To="1"/>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" To="#FFfee2c1"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" To="#FFfec173"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" To="#FFfdb349"/>

 

 

 

 

 

 

<ColorAnimation Duration="0" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" To="#FFffa016"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0:0:0" Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity" To="0"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Grid Margin="0,1,0,1" x:Name="ThumbVisual">

 

 

 

 

 

 

<Rectangle x:Name="Background" Fill="#FF1F3B53" Stroke="#959595" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundMouseOver" Opacity="0" Stroke="#deb350" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle x:Name="BackgroundPressed" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

<Rectangle Margin="1" x:Name="BackgroundGradient" Stroke="#f3f3f3" StrokeThickness="1" RadiusX="1" RadiusY="1">

 

 

 

 

 

 

<Rectangle.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0,1">

 

 

 

 

 

 

<GradientStop Color="#FFf8f4f3" Offset="0"/>

 

 

 

 

 

 

<GradientStop Color="#FFeaeaec" Offset="0.49"/>

 

 

 

 

 

 

<GradientStop Color="#FFdcdcde" Offset="0.5"/>

 

 

 

 

 

 

<GradientStop Color="#FFc1c0c5" Offset="1"/>

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Rectangle.Fill>

 

 

 

 

 

 

</Rectangle>

 

 

 

 

 

 

<Border Height="7" HorizontalAlignment="Center" Margin="1,0,0,0" x:Name="Line1" VerticalAlignment="Center" BorderBrush="#787777" BorderThickness="1,0,0,0">

 

 

 

 

 

 

<Border Height="7" HorizontalAlignment="Center" Margin="1,0,0,0" x:Name="Line2" VerticalAlignment="Center" BorderBrush="#787777" BorderThickness="1,0,0,0">

 

 

 

 

 

 

<Border Height="7" HorizontalAlignment="Center" Margin="1,0,0,0" x:Name="Line3" VerticalAlignment="Center" BorderBrush="#787777" BorderThickness="1,0,0,0"/>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

<Rectangle x:Name="Highlight" IsHitTestVisible="false" Opacity="0" Stroke="#b28d3f" StrokeThickness="1" RadiusX="1" RadiusY="1"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

</Grid.Resources>

 

 

 

 

 

 

<vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<vsm:VisualStateGroup x:Name="CommonStates">

 

 

 

 

 

 

<vsm:VisualState x:Name="Normal"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="MouseOver"/>

 

 

 

 

 

 

<vsm:VisualState x:Name="Disabled">

 

 

 

 

 

 

<Storyboard>

 

 

 

 

 

 

<DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0.5"/>

 

 

 

 

 

 

</Storyboard>

 

 

 

 

 

 

</vsm:VisualState>

 

 

 

 

 

 

</vsm:VisualStateGroup>

 

 

 

 

 

 

</vsm:VisualStateManager.VisualStateGroups>

 

 

 

 

 

 

<Grid x:Name="HorizontalRoot">

 

 

 

 

 

 

<Grid.ColumnDefinitions>

 

 

 

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

 

 

 

</Grid.ColumnDefinitions>

 

 

 

 

 

 

<Rectangle Grid.ColumnSpan="5" Fill="#3d3d3d" Stroke="#383536" StrokeThickness="1" RadiusX="0" RadiusY="0"/>

 

 

 

 

 

 

<RepeatButton Margin="1" x:Name="HorizontalSmallDecrease" Width="16" IsTabStop="False" Template="{StaticResource HorizontalDecrementTemplate}" Grid.Column="0" Interval="50"/>

 

 

 

 

 

 

<RepeatButton x:Name="HorizontalLargeDecrease" Width="0" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="1" Interval="50"/>

 

 

 

 

 

 

<Thumb MinWidth="18" x:Name="HorizontalThumb" Width="18" Background="{TemplateBinding Background}" Template="{StaticResource HorizontalThumbTemplate}" Grid.Column="2"/>

 

 

 

 

 

 

<RepeatButton x:Name="HorizontalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="3" Interval="50"/>

 

 

 

 

 

 

<RepeatButton Margin="1" x:Name="HorizontalSmallIncrease" Width="16" IsTabStop="False" Template="{StaticResource HorizontalIncrementTemplate}" Grid.Column="4" Interval="50"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

<Grid x:Name="VerticalRoot" Visibility="Collapsed">

 

 

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

 

 

 

<RowDefinition Height="*"/>

 

 

 

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

 

 

<Rectangle Grid.RowSpan="5" Fill="White" Stroke="#BDD0E2" StrokeThickness="1" RadiusX="0" RadiusY="0"/>

 

 

 

 

 

 

<RepeatButton Height="16" Margin="1" x:Name="VerticalSmallDecrease" IsTabStop="False" Template="{StaticResource VerticalDecrementTemplate}" Grid.Row="0" Interval="50"/>

 

 

 

 

 

 

<RepeatButton Height="0" x:Name="VerticalLargeDecrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="1" Interval="50"/>

 

 

 

 

 

 

<Thumb Height="18" MinHeight="18" x:Name="VerticalThumb" Template="{StaticResource VerticalThumbTemplate}" Grid.Row="2"/>

 

 

 

 

 

 

<RepeatButton x:Name="VerticalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="3" Interval="50"/>

 

 

 

 

 

 

<RepeatButton Height="16" Margin="1" x:Name="VerticalSmallIncrease" IsTabStop="False" Template="{StaticResource VerticalIncrementTemplate}" Grid.Row="4" Interval="50"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

</Setter.Value>

 

 

 

 

 

 

</Setter>

 

 

 

 

 

 

</Style>

 

 

 

 

 

 

<Style x:Key="System.Windows.Controls.ScrollViewer" TargetType="ScrollViewer">

 

 

 

 

 

 

<Setter Property="HorizontalContentAlignment" Value="Left"/>

 

 

 

 

 

 

<Setter Property="VerticalContentAlignment" Value="Top"/>

 

 

 

 

 

 

<Setter Property="VerticalScrollBarVisibility" Value="Visible"/>

 

 

 

 

 

 

<Setter Property="Padding" Value="0"/>

 

 

 

 

 

 

<Setter Property="BorderThickness" Value="0"/>

 

 

 

 

 

 

<Setter Property="BorderBrush" Value="Transparent"/>

 

 

 

 

 

 

<Setter Property="Background" Value="White"/>

 

 

 

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="ScrollViewer">

 

 

 

 

 

 

<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0">

 

 

 

 

 

 

<Grid Background="{TemplateBinding Background}">

 

 

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

 

 

<RowDefinition Height="*"/>

 

 

 

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

 

 

<Grid.ColumnDefinitions>

 

 

 

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

 

 

 

</Grid.ColumnDefinitions>

 

 

 

 

 

 

<ScrollContentPresenter CanHorizontallyScroll="True"

 

 

Cursor="{TemplateBinding Cursor}"

 

 

Margin="{TemplateBinding Padding}"

 

 

x:Name="ScrollContentPresenter"

 

 

ContentTemplate="{TemplateBinding ContentTemplate}"/>

 

 

 

 

 

 

<Rectangle Grid.Column="1" Grid.Row="1" Fill="Transparent"/>

 

 

 

 

 

 

<ScrollBar Margin="0,0,-1,-1" x:Name="VerticalScrollBar" Style="{StaticResource StyleScrollBar}" Width="16" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" IsTabStop="False" Grid.Column="1" Grid.Row="0" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{TemplateBinding VerticalOffset}"/>

 

 

 

 

 

 

<ScrollBar Height="16" Margin="0,-1,-1,-1" x:Name="HorizontalScrollBar" Style="{StaticResource StyleScrollBar}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" IsTabStop="False" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{TemplateBinding HorizontalOffset}"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

</Setter.Value>

 

 

 

 

 

 

</Setter>

 

 

 

 

 

 

</Style>

 

 

 

 

 

 

<Style x:Key="RadUploadStyle1" TargetType="telerik:RadUpload">

 

 

 

 

 

 

<Setter Property="Filter" Value="All files (*.*)|*.*"/>

 

 

 

 

 

 

<Setter Property="FilterIndex" Value="1"/>

 

 

 

 

 

 

<Setter Property="IsMultiselect" Value="true"/>

 

 

 

 

 

 

<Setter Property="BufferSize" Value="100000"/>

 

 

 

 

 

 

<Setter Property="MaxFileSize" Value="-1"/>

 

 

 

 

 

 

<Setter Property="MaxUploadSize" Value="-1"/>

 

 

 

 

 

 

<Setter Property="MaxFileCount" Value="-1"/>

 

 

 

 

 

 

<Setter Property="MinHeight" Value="80"/>

 

 

 

 

 

 

<Setter Property="MinWidth" Value="250"/>

 

 

 

 

 

 

<Setter Property="MaxHeight" Value="300"/>

 

 

 

 

 

 

<Setter Property="Width" Value="400"/>

 

 

 

 

 

 

<Setter Property="IsEnabled" Value="True"/>

 

 

 

 

 

 

<Setter Property="IsPauseEnabled" Value="True"/>

 

 

 

 

 

 

<Setter Property="Background" Value="{StaticResource ContentBackgroundBrush}"/>

 

 

 

 

 

 

<Setter Property="BorderBrush" Value="{StaticResource BorderOuterBrush}"/>

 

 

 

 

 

 

<Setter Property="BorderThickness" Value="1"/>

 

 

 

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="telerik:RadUpload">

 

 

 

 

 

 

<Grid x:Name="RootElement">

 

 

 

 

 

 

<Grid.RowDefinitions>

 

 

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

 

 

<RowDefinition Height="*"/>

 

 

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

 

 

<RowDefinition Height="auto"/>

 

 

 

 

 

 

</Grid.RowDefinitions>

 

 

 

 

 

 

<Border Grid.RowSpan="5"

 

 

BorderBrush="{TemplateBinding BorderBrush}"

 

 

BorderThickness="{TemplateBinding BorderThickness}">

 

 

 

 

 

 

<Border Background="{TemplateBinding Background}"

 

 

BorderBrush="{StaticResource BorderOuterColor}"

 

 

BorderThickness="1"/>

 

 

 

 

 

 

</Border>

 

 

 

 

 

 

<TextBlock Margin="12,6" x:Name="ProgressCaptionText" Grid.Row="0" Foreground="{StaticResource HeaderForegroundBrush}" Text="Select Files To Upload"/>

 

 

 

 

 

 

<ScrollViewer Margin="12,0,12,2" x:Name="ScrollViewer" Style="{StaticResource System.Windows.Controls.ScrollViewer}" BorderThickness="0" Grid.Row="1" VerticalScrollBarVisibility="Auto">

 

 

 

 

 

 

<ItemsPresenter/>

 

 

 

 

 

 

</ScrollViewer>

 

 

 

 

 

 

<Grid Margin="0 2 0 2" x:Name="TotalProgressArea" Visibility="Collapsed" Grid.Row="2">

 

 

 

 

 

 

<!--<telerik1:RadProgressBar Background="#BDD0E2" Height="27" Margin="3,0" MinHeight="20" x:Name="TotalProgressBar" Maximum="100" Minimum="0"/>-->

 

 

 

 

 

 

<Grid VerticalAlignment="Center" >

 

 

 

 

 

 

<TextBlock Margin="12, 5" FontWeight="Normal" Text="Total"/>

 

 

 

 

 

 

<TextBlock HorizontalAlignment="Center" Margin="5" x:Name="TotalPercentText" FontWeight="Normal" Text="0%"/>

 

 

 

 

 

 

<TextBlock HorizontalAlignment="Right" Margin="5,5,12,5" x:Name="TotalSizeText" FontWeight="Normal" Text="0"/>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

<StackPanel Background="#FFBDD0e2" Margin="5,5" VerticalAlignment="Bottom" Grid.Row="3" Orientation="Horizontal">

 

 

 

 

 

 

<Button Margin="2" x:Name="BrowseButton" Content="Browse"/>

 

 

 

 

 

 

<Button Margin="2" x:Name="PauseButton" Visibility="Collapsed" Content="Pause"/>

 

 

 

 

 

 

<Button Margin="2" x:Name="UploadButton" Visibility="Collapsed" Content="Upload"/>

 

 

 

 

 

 

<Button Margin="2" x:Name="CancelButton" Visibility="Collapsed" Content="Cancel"/>

 

 

 

 

 

 

</StackPanel>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

</Setter.Value>

 

 

 

 

 

 

</Setter>

 

 

 

 

 

 

</Style>

 

 

 

 

 

 

 

 

 

 

</telerik:RadUpload.Resources>

 

 

 

 

 

 

<telerik:RadUpload.Style>

 

 

 

 

 

 

<StaticResource ResourceKey="RadUploadStyle1"/>

 

 

 

 

 

 

</telerik:RadUpload.Style>

 

 

 

 

 

 

<telerik:RadUpload.ItemContainerStyle>

 

 

 

 

 

 

<!--<Style TargetType="telerik:RadUploadItem">

 

<Setter Property="Template">

<Setter.Value>

<ControlTemplate TargetType="telerik:RadUploadItem">

<Grid Margin="0,5">

<Grid.RowDefinitions>

<RowDefinition Height="Auto" />

<RowDefinition Height="Auto" />

</Grid.RowDefinitions>

<TextBox x:Name="CustomTag" Grid.Row="1" Text="Write some notes here"

HorizontalAlignment="Stretch" Margin="9,0,1,1"/>

<telerik1:RadProgressBar Height="25" MinHeight="20" x:Name="FileProgressBar"

Minimum="0" Maximum="100">

</telerik1:RadProgressBar>

<TextBlock Text="{TemplateBinding FileName}" HorizontalAlignment="Left"

VerticalAlignment="Center" Margin="10,0,0,0" TextWrapping="Wrap" />

<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"

VerticalAlignment="Center">

<TextBlock Text="{TemplateBinding FileSize}" Margin="0,0,10,0"

TextWrapping="NoWrap" VerticalAlignment="Center" />

<Grid VerticalAlignment="Center" ShowGridLines="True" Height="25" >

<Path VerticalAlignment="Center" x:Name="IconDelete"

Margin="0,-4,10,0" Cursor="Hand" Stretch="Fill"

Fill="#FF000000"

Data="M5.0000001,0 L7,0 7,5 12,5 12,7 7,7 7,12 5.0000001,12 5.0000001,7 0,7 0,5 5.0000001,5 5.0000001,0 z"

Width="12" Height="12">

<Path.RenderTransform>

<TransformGroup>

<RotateTransform Angle="45" />

</TransformGroup>

</Path.RenderTransform>

</Path>

<Path VerticalAlignment="Center" x:Name="IconDone" Margin="0,0,10,0"

Stretch="Fill" Visibility="Collapsed" Fill="#FF000000"

Data="M719.90131,266.74252 L728,276.64667 L743.13574,254.96999 L727.96881,271.52853"

Width="12" Height="12" />

<Grid VerticalAlignment="Center" x:Name="IconError"

Margin="0,0,10,0" Visibility="Collapsed" Width="14.6"

Height="18">

<Path Stretch="Fill"

Stroke="#FFFFFFFF" Margin="0,1.786,0,3.288"

Data="M577.89149,269.68195 L584.80031,257.78582 591.50111,269.64775 z">

<Path.Fill>

<LinearGradientBrush

EndPoint="0.5,0" StartPoint="0.5,1">

<GradientStop Color="#FFFFC600" Offset="0" />

<GradientStop Color="#FFFDFF00" Offset="1" />

</LinearGradientBrush>

</Path.Fill>

</Path>

<TextBlock Margin="6,4,6,4" Width="Auto" Height="Auto"

FontSize="8" FontWeight="Bold" Text="!"

TextWrapping="Wrap" />

</Grid>

</Grid>

</StackPanel>

</Grid>

</ControlTemplate>

</Setter.Value>

</Setter>

</Style>-->

 

 

 

 

 

 

<Style TargetType="telerik:RadUploadItem">

 

 

 

 

 

 

<Setter Property="FontFamily" Value="Tahoma"></Setter>

 

 

 

 

 

 

<Setter Property="FontSize" Value="11"></Setter>

 

 

 

 

 

 

<Setter Property="Foreground" Value="#FFFFFFFF"></Setter>

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="telerik:RadUploadItem">

 

 

 

 

 

 

<Grid Margin="0,5">

 

 

 

 

 

 

<telerik1:RadProgressBar Background="#BDD0E2"

 

 

Foreground="#132848" Height="25" MinHeight="20" Margin="-10,0,-10,0"

 

 

 

 

 

x:Name="FileProgressBar" Minimum="10" Maximum="100" />

 

 

 

 

 

 

<TextBlock Text="{TemplateBinding FileName}"

 

 

HorizontalAlignment="Left" VerticalAlignment="Center"

 

 

 

 

 

Margin="10,0,0,0" MaxWidth="220" TextWrapping="NoWrap" />

 

 

 

 

 

 

<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"

 

 

 

 

 

VerticalAlignment="Center">

 

 

 

 

 

 

<TextBlock Text="{TemplateBinding FileSize}"

 

 

 

 

 

Margin="0,0,10,0" TextWrapping="NoWrap"

 

 

 

 

 

VerticalAlignment="Center" />

 

 

 

 

 

 

<Grid VerticalAlignment="Center" ShowGridLines="True"

 

 

 

 

 

Height="25">

 

 

 

 

 

 

<Path VerticalAlignment="Center" x:Name="IconDelete"

 

 

 

 

 

Margin="0,-4,10,0" Cursor="Hand" Stretch="Fill"

 

 

 

 

 

Fill="#FFFFFFFF"

 

 

 

 

 

Data="M5.0000001,0 L7,0 7,5 12,5 12,7 7,7 7,12 5.0000001,12 5.0000001,7 0,7 0,5 5.0000001,5 5.0000001,0 z"

 

 

 

 

 

Width="12" Height="12">

 

 

 

 

 

 

<Path.RenderTransform>

 

 

 

 

 

 

<TransformGroup>

 

 

 

 

 

 

<RotateTransform Angle="45" />

 

 

 

 

 

 

</TransformGroup>

 

 

 

 

 

 

</Path.RenderTransform>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<Path VerticalAlignment="Center" x:Name="IconDone"

 

 

 

 

 

Margin="0,0,10,0" Stretch="Fill"

 

 

 

 

 

Visibility="Visible"

 

 

 

 

 

Data="M719.90128,266.74251 L728,276.64666 743.13573,254.96999"

 

 

 

 

 

Width="12" Height="12" />

 

 

 

 

 

 

<Grid VerticalAlignment="Center" x:Name="IconError"

 

 

 

 

 

Margin="0,0,10,0" Visibility="Collapsed"

 

 

 

 

 

Width="14.609" Height="17.97">

 

 

 

 

 

 

<Path Stretch="Fill" Stroke="#FFFFFFFF"

 

 

 

 

 

Margin="0,1.786,0,3.288"

 

 

 

 

 

Data="M577.89149,269.68195 L584.80031,257.78582 591.50111,269.64775 z">

 

 

 

 

 

 

<Path.Fill>

 

 

 

 

 

 

<LinearGradientBrush EndPoint="0.5,0"

 

 

 

 

 

StartPoint="0.5,1">

 

 

 

 

 

 

<GradientStop Color="#FFFFC600"

 

 

 

 

 

Offset="0" />

 

 

 

 

 

 

<GradientStop Color="#FFFDFF00"

 

 

 

 

 

Offset="1" />

 

 

 

 

 

 

</LinearGradientBrush>

 

 

 

 

 

 

</Path.Fill>

 

 

 

 

 

 

</Path>

 

 

 

 

 

 

<TextBlock Margin="6,4,6,4" Width="Auto"

 

 

 

 

 

Height="Auto" FontSize="8" FontWeight="Bold"

 

 

 

 

 

Text="!" TextWrapping="Wrap" />

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</StackPanel>

 

 

 

 

 

 

</Grid>

 

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

 

</Setter.Value>

 

 

 

 

 

 

</Setter>

 

 

 

 

 

 

</Style>

 

 

 

 

 

 

</telerik:RadUpload.ItemContainerStyle>

 

 

 

 

 

 

</telerik:RadUpload>

 

 

 

 

 

 

 

 

 

</Grid>

 

</

 

UserControl>

 

 

 

 

 

 

 


Dimitrina
Telerik team
 answered on 27 Jul 2009
1 answer
109 views
Hey there,
I'm just a novice programmer, so I don't know how to how to use Linq. I was trying to populate the Grid using an ADO:NET connection to my SQL database, but I haven't seen anywhere how to do this. Could you help me?
Regards,
Bernardo Caldas
Vlad
Telerik team
 answered on 27 Jul 2009
4 answers
422 views
respectfully,
i want to programmatically create a custom schema (create columns in custom without binding) and fill the gridview with custom data ( add new rows without binding )! I found that the wpf radgridview do not have the rows collection and it seems that is necessary to bind radgridview to a data source for displaying data, but i want to add new rows and columns programatically at run time even if i bound it to data source before! is there any approach for this purpose?!
thanks for your kindness ;)
Meisam
Top achievements
Rank 1
 answered on 26 Jul 2009
6 answers
265 views
I can't get it to display a list of objects which are view models.
Using version 2009.2.701.35 with vb.net in a model/view/view model framework.

This displays nothing:
            <telerik:RadCarousel  
                x:Name="RCAddressList" 
                ItemsSource="{Binding Path=AddressViewModelList}" 
                telerik:StyleManager.Theme="Office_Blue"
            </telerik:RadCarousel 

This displays the correct number of items, but it is just then name of the object. i.e. 4 addresses in the list means  AddressApp.ViewModel.AddressViewModel as text 4 times in the carousel.
            <ListView  
                x:Name="ListView"  
                ItemsSource="{Binding Path=AddressViewModelList}"  
                BorderThickness="0" Background="Transparent" 
                HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                <ListView.ItemsPanel> 
                    <ItemsPanelTemplate> 
                        <telerik:RadCarouselPanel /> 
                    </ItemsPanelTemplate> 
                </ListView.ItemsPanel> 
            </ListView> 

Simplex
Top achievements
Rank 1
 answered on 24 Jul 2009
1 answer
46 views
Hi

I'm using the RadDragAndDropManager along with the RadGridView; it appears like the the column re-ordering and the grouping now no longer work. Do we have to code this manually if we use the RadDragAndDropManager?
Miroslav
Telerik team
 answered on 24 Jul 2009
2 answers
129 views
Hello guys, i have that lines in my code-behind:
public partial class MainWindow : Window 
    { 
        public MainWindow() 
        { 
            this.InitializeComponent(); 
            MainWindowViewModel model = new MainWindowViewModel(); 
            RadChart1.DefaultView.ChartArea = model.MainChartArea; 
            RadChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = true
        }         
    } 
    public class MainWindowViewModel 
    { 
        private ChartArea _area; 
        public ChartArea MainChartArea 
        { 
            get  
            { 
                if (_area == null
                    _area = CreateChartArea(); 
                return _area; 
            } 
        }         
        private ChartArea CreateChartArea() 
        { 
            ChartArea area = new ChartArea(); 
 
            DataSeries ser1 = new DataSeries(); 
            ser1.Add(new DataPoint(23)); 
            ser1.Add(new DataPoint(45)); 
            ser1.Add(new DataPoint(33)); 
            ser1.Add(new DataPoint(12)); 
            ser1.Add(new DataPoint(50)); 
            ser1.LegendLabel = "Series 1 Label"
            area.DataSeries.Add(ser1); 
 
            DataSeries ser2 = new DataSeries(); 
            ser2.Add(new DataPoint(45)); 
            ser2.Add(new DataPoint(50)); 
            ser2.Add(new DataPoint(60)); 
            ser2.Add(new DataPoint(30)); 
            ser2.Add(new DataPoint(25)); 
            ser2.LegendLabel = "Series 2 Label"
            area.DataSeries.Add(ser2); 
 
            return area; 
        } 
    } 
and that is the XAML part:
<Grid x:Name="LayoutRoot"
        <control:RadChart x:Name="RadChart1"
            <control:RadChart.DefaultView> 
                <chart:ChartDefaultView> 
                     
                    <chart:ChartDefaultView.ChartLegend> 
                        <chart:ChartLegend x:Name="CustomLegend" Header="Legend Header" UseAutoGeneratedItems="True"
                        </chart:ChartLegend> 
                    </chart:ChartDefaultView.ChartLegend> 
                    <chart:ChartDefaultView.ChartTitle> 
                        <chart:ChartTitle> 
                            <TextBlock Text="Declarative RadChart"/> 
                        </chart:ChartTitle> 
                    </chart:ChartDefaultView.ChartTitle> 
                </chart:ChartDefaultView> 
            </control:RadChart.DefaultView> 
        </control:RadChart> 
 
    </Grid> 
but now... i don't have the Legend generated. So what's missing? How to get back the Legend if i use something like MVVM?


Liberte
Top achievements
Rank 1
 answered on 24 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?