<!--*************************************************************************************
Extended WPF Toolkit
Copyright (C) 2007-2014 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
For more features, controls, and fast professional support,
pick up the Plus Edition at http://xceed.com/wpf_toolkit
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
***********************************************************************************-->
<local:DemoView x:Class="Xceed.Wpf.Toolkit.LiveExplorer.Samples.RangeSlider.Views.RangeSliderView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Xceed.Wpf.Toolkit.LiveExplorer"
xmlns:xctkconv="clr-namespace:Xceed.Wpf.Toolkit.Core.Converters;assembly=Xceed.Wpf.Toolkit"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="RangeSlider">
<local:DemoView.Resources>
<xctkconv:SolidColorBrushToColorConverter x:Key="SolidColorBrushToColorConverter" />
<Style x:Key="LowerRangeStyle1"
TargetType="{x:Type RepeatButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Grid x:Name="MainGrid"
Height="10">
<Rectangle x:Name="MainBorder"
Fill="{TemplateBinding Background}"
Opacity="1" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter TargetName="MainBorder"
Property="Opacity"
Value="0.75" />
</Trigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Orientation}"
Value="Vertical">
<Setter Property="Height"
TargetName="MainGrid"
Value="Auto" />
<Setter Property="Width"
TargetName="MainGrid"
Value="10" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="LowerRangeStyle2"
TargetType="{x:Type RepeatButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Grid x:Name="MainGrid"
Height="10">
<Ellipse x:Name="MainBorder"
Fill="{TemplateBinding Background}"
Opacity="1" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter TargetName="MainBorder"
Property="Opacity"
Value="0.75" />
</Trigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Orientation}"
Value="Vertical">
<Setter Property="Height"
TargetName="MainGrid"
Value="Auto" />
<Setter Property="Width"
TargetName="MainGrid"
Value="10" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="LowerRangeStyle3"
TargetType="{x:Type RepeatButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Grid x:Name="MainGrid"
Height="19">
<Rectangle x:Name="MainBorder"
Fill="{TemplateBinding Background}"
Opacity="1" />
<StackPanel x:Name="HorizontalContentPanel"
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock x:Name="TextContentMin"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type xctk:RangeSlider}}, Path=Minimum, StringFormat=\{0:00.00\}}"
Foreground="White"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock Text=" - "
Foreground="Turquoise"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock x:Name="TextContentLower"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type xctk:RangeSlider}}, Path=LowerValue, StringFormat=\{0:00.00\}}"
Foreground="White"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</StackPanel>
<StackPanel x:Name="VerticalContentPanel"
Orientation="Vertical"
Visibility="Collapsed"
VerticalAlignment="Center">
<TextBlock Text="L"
Foreground="White" />
</StackPanel>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter TargetName="MainBorder"
Property="Opacity"
Value="0.75" />
</Trigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Orientation}"
Value="Vertical">
<Setter Property="Height"
TargetName="MainGrid"
Value="Auto" />
<Setter Property="Width"
TargetName="MainGrid"
Value="30" />
<Setter Property="Visibility"
TargetName="VerticalContentPanel"
Value="Visible" />
<Setter Property="Visibility"
TargetName="HorizontalContentPanel"
Value="Collapsed" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key=
没有合适的资源?快使用搜索试试~ 我知道了~
helix-toolkit-master
共2000个文件
cs:1730个
png:540个
xaml:370个
需积分: 10 9 下载量 149 浏览量
2015-08-20
15:30:32
上传
评论
收藏 25.87MB ZIP 举报
温馨提示
helix-toolkit-master 3D开发DLL下载,内涵各种演示程序
资源推荐
资源详情
资源评论
收起资源包目录
helix-toolkit-master (2000个子文件)
TableflowView.Windows7.baml 66KB
TableflowView.Aero.normalcolor.baml 62KB
TableView.Windows7.baml 57KB
TableView.Aero.normalcolor.baml 54KB
TableflowView.Luna.normalcolor.baml 48KB
TableflowView.Luna.metallic.baml 48KB
TableflowView.Royale.normalcolor.baml 48KB
TableflowView.Zune.normalcolor.baml 45KB
TableflowView.Luna.homestead.baml 43KB
TableflowView.Aero2.normalcolor.baml 43KB
TableView.Luna.metallic.baml 40KB
TableView.Luna.normalcolor.baml 40KB
TableView.Royale.normalcolor.baml 39KB
Aero2.normalcolor.Controls.baml 39KB
Windows7.Controls.baml 39KB
TableflowView.Classic.systemcolor.baml 37KB
TableView.Zune.normalcolor.baml 36KB
TableView.Luna.homestead.baml 35KB
generic.baml 35KB
TableflowView.GridElementTemplates.baml 34KB
Generic.baml 33KB
TableView.GridElementTemplates.baml 32KB
Aero2.NormalColor.baml 31KB
TableView.Classic.systemcolor.baml 30KB
DataGridControlBackgroundBrushesResources.baml 29KB
TableView.Windows7.Graphics.baml 25KB
MeasureAreaControlTest.baml 20KB
Generic.baml 19KB
Aero2.NormalColor.baml 19KB
OutputSetting.baml 19KB
Generic.baml 17KB
Aero2.NormalColor.baml 17KB
Generic.baml 17KB
Common.Resources.baml 16KB
MianjiUserControl.baml 13KB
DefaultCellEditorSelector.baml 13KB
Generic.baml 13KB
generic.baml 12KB
LiveExplorerScrollViewer.baml 11KB
MeasureAreaControl.baml 11KB
Generic.baml 11KB
ScrollViewStyle.baml 11KB
Aero2.NormalColor.baml 11KB
Windows7.Resources.baml 11KB
classic.baml 10KB
royale.normalcolor.baml 10KB
aero.normalcolor.baml 10KB
zune.normalcolor.baml 10KB
luna.metallic.baml 10KB
Common_ParticularSetting.baml 10KB
TableView.Aero2.normalcolor.Graphics.baml 10KB
Aero2.NormalColor.baml 10KB
WindowControl.baml 10KB
WindowControl.baml 10KB
luna.normalcolor.baml 10KB
luna.homestead.baml 10KB
Aero.normalcolor.Resources.baml 9KB
Generic.baml 9KB
Graphics.baml 9KB
Aero2.NormalColor.baml 9KB
Aero2.NormalColor.baml 9KB
RadioButtonStyle.baml 9KB
ImageSet.baml 9KB
Generic.baml 9KB
MeasureSectSetting.baml 8KB
Aero2.NormalColor.baml 8KB
Aero2.NormalColor.baml 8KB
Generic.baml 8KB
ButtonStyles.baml 7KB
Common.baml 7KB
Aero2.NormalColor.baml 7KB
Aero2.NormalColor.baml 7KB
Aero2.NormalColor.baml 7KB
AutoSetting.baml 7KB
Generic.baml 7KB
Generic.baml 7KB
Generic.baml 7KB
Generic.baml 7KB
MainWindow.baml 7KB
aero2.normalcolor.baml 7KB
WindowModelEditor.baml 6KB
TableView.Aero.Graphics.baml 6KB
Generic.baml 6KB
CommonUserControl.baml 6KB
Aero2.NormalColor.baml 6KB
Brushes.baml 6KB
Aero2.NormalColor.baml 6KB
Aero2.NormalColor.baml 6KB
Generic.baml 6KB
Aero2.NormalColor.baml 6KB
Generic.baml 5KB
Generic.baml 5KB
Brushes_NormalColor.baml 5KB
Generic.baml 5KB
ToggleButtonStyle.baml 5KB
Generic.baml 5KB
Aero2.NormalColor.baml 5KB
Aero2.NormalColor.baml 5KB
FancyStyles.baml 5KB
Generic.baml 5KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
shengqiong0820
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功