WPF控件-16-ScrollBar
This commit is contained in:
parent
c9afba6819
commit
9b78352dc2
|
@ -0,0 +1,9 @@
|
||||||
|
<Application x:Class="WPF控件_16_RangeBase.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:WPF控件_16_RangeBase"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace WPF控件_16_RangeBase;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
|
@ -0,0 +1,18 @@
|
||||||
|
<Window x:Class="WPF控件_16_RangeBase.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="MainWindow" Height="450" Width="800">
|
||||||
|
<Grid>
|
||||||
|
<!--
|
||||||
|
当前值: Value="0"
|
||||||
|
允许最大值:Maximum="100"
|
||||||
|
允许最小值:Minimum="0"
|
||||||
|
最小变化值:SmallChange="5"
|
||||||
|
最大变化值:LargeChange="20"
|
||||||
|
-->
|
||||||
|
<ScrollBar Name="BunnyScrollBar" Value="0" Maximum="100" Minimum="0" SmallChange="5" LargeChange="20" />
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
|
@ -0,0 +1,23 @@
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace WPF控件_16_RangeBase;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
|
<RootNamespace>WPF控件_16_RangeBase</RootNamespace>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox", "WPF
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox2", "WPF控件-15-ListBox2\WPF控件-15-ListBox2.csproj", "{169AB792-6D9D-4F12-A49A-320F01A0AFF0}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox2", "WPF控件-15-ListBox2\WPF控件-15-ListBox2.csproj", "{169AB792-6D9D-4F12-A49A-320F01A0AFF0}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-16-ScrollBar", "WPF控件-16-ScrollBar\WPF控件-16-ScrollBar.csproj", "{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@ -114,5 +116,9 @@ Global
|
||||||
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.Build.0 = Release|Any CPU
|
{169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
Loading…
Reference in New Issue