<!--*************************************************************************************
Extended WPF Toolkit
Copyright (C) 2007-2015 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=
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Xceed.Wpf.Toolkit20160614源码 (2287个子文件)
3.bmp 77KB
6.bmp 69KB
1.bmp 67KB
4.bmp 63KB
5.bmp 49KB
2.bmp 13KB
DataGridControl.icon.16x16.bmp 822B
app.config 1KB
CustomItemContainerGenerator.cs 250KB
DataGridControl.cs 217KB
Cell.cs 155KB
DataGridContext.cs 149KB
Zoombox.cs 131KB
Zoombox.cs 131KB
DockingManager.cs 127KB
TableflowViewItemsHost.cs 126KB
NativeMethods.cs 124KB
DataGridCollectionViewBase.cs 123KB
Reference.cs 107KB
TableViewItemsHost.cs 100KB
DataGridCollectionView.cs 93KB
Row.cs 89KB
ColumnReorderingDragSourceManager.cs 83KB
VirtualizingStackPanel.cs 71KB
DetailConfiguration.cs 67KB
ItemsSourceHelper.cs 66KB
FilterParser_UnitTests.cs 65KB
SelectionManager.cs 58KB
MaskedTextBox.cs 58KB
MaskedTextBox.cs 58KB
AnimationPanel.cs 56KB
AnimationPanel.cs 56KB
ColumnBase.cs 55KB
WindowChromeWorker.cs 53KB
LayoutItem.cs 46KB
TableViewColumnVirtualizationManagerBase.cs 45KB
FixedCellPanel.cs 44KB
SelectionChanger.cs 43KB
PropertyGrid.cs 42KB
PropertyGrid.cs 42KB
HierarchicalGroupByItem.cs 42KB
ShellProvider.cs 39KB
TimelinePanel.cs 39KB
TimelinePanel.cs 39KB
SwitchPanel.cs 38KB
SwitchPanel.cs 38KB
DataGridContextAutomationPeer.cs 38KB
MessageBox.cs 38KB
MessageBox.cs 38KB
OverlayWindow.cs 38KB
Utilities.cs 37KB
DataGridScrollViewer.cs 37KB
DataGridCollectionViewGroup.cs 36KB
ValueRangeTextBox.cs 35KB
ValueRangeTextBox.cs 35KB
GeneratorNodeHelper.cs 34KB
HierarchicalGroupByControlNode.cs 31KB
ColumnManagerCell.cs 31KB
RangeSlider.cs 31KB
RangeSlider.cs 31KB
TableView.cs 29KB
ColumnSynchronizationManager.cs 28KB
VirtualList.cs 28KB
DataGridVirtualizingCollectionViewBase.cs 27KB
DocumentPaneDropTarget.cs 27KB
ClipboardExporterBase.cs 27KB
FilterParser.cs 27KB
DateTimeUpDown.cs 27KB
DateTimeUpDown.cs 27KB
QueryableExtensions.cs 26KB
Selector.cs 26KB
Selector.cs 26KB
VirtualizingCellCollection.cs 25KB
LayoutContent.cs 25KB
ScrollViewerHelper.cs 25KB
LayoutRoot.cs 25KB
ChildWindow.cs 25KB
ChildWindow.cs 25KB
WindowControl.cs 25KB
WindowControl.cs 25KB
ColorPicker.cs 24KB
ColorPicker.cs 24KB
ErrorCodes.cs 24KB
LayoutAnchorable.cs 24KB
VirtualPageManager.cs 24KB
UpDownBase.cs 24KB
UpDownBase.cs 24KB
DataRow.cs 24KB
DataGridItemPropertyBase.cs 24KB
HierarchicalGroupByControl.cs 24KB
RowSelector.cs 23KB
SelectedItemsStorage.cs 23KB
ScrollTip.cs 23KB
ForeignKeyConfiguration.cs 23KB
LayoutGridControl.cs 22KB
SelectedCellsStorage.cs 22KB
DragSourceManager.cs 22KB
SystemParameters2.cs 22KB
DataGridItemsHost.cs 22KB
LayoutAutoHideWindowControl.cs 21KB
共 2287 条
- 1
- 2
- 3
- 4
- 5
- 6
- 23
LeoYang610
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页