Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added CLinerStyle/CLinerStylec 001.7z
Binary file not shown.
22 changes: 22 additions & 0 deletions CLinerStyle/src/CLinerStyle.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CLinerStyle", "CLinerStyle\CLinerStyle.csproj", "{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added CLinerStyle/src/CLinerStyle.v12.suo
Binary file not shown.
127 changes: 127 additions & 0 deletions CLinerStyle/src/CLinerStyle/CLinerStyle.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2CFD8A97-FFB8-47D2-9EB2-450B98FED28E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CLinerStyle</RootNamespace>
<AssemblyName>CLinerStyle</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Lib.Controls.MyControls">
<HintPath>..\..\..\..\Control\LibControl\Controls\bin\Debug\Lib.Controls.MyControls.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Themes\Cs_Slider.xaml.cs">
<DependentUpon>Cs_Slider.xaml</DependentUpon>
</Compile>
<Compile Include="Themes\Cs_Spinner.xaml.cs">
<DependentUpon>Cs_Spinner.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Page Include="Themes\CircleLabelStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\progressBarStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\GenericStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Border.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\brush.scroll.down.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\brush.scroll.up.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Button.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\CheckBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\ComboBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\CsColor.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Cs_Slider.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Cs_Spinner.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\raditoStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\TextBox.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Resource Include="Themes\i_checked.png" />
<Resource Include="Themes\i_uchecked.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
36 changes: 36 additions & 0 deletions CLinerStyle/src/CLinerStyle/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CLinerStyle")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CLinerStyle")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8d6deeaa-a283-4c47-ad25-8d4bfade470b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
32 changes: 32 additions & 0 deletions CLinerStyle/src/CLinerStyle/Themes/Border.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="CLinerStyle">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/CLinerStyle;component/Themes/CsColor.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style x:Key="BorderStyle_1_Effect" TargetType="Border">
<Setter Property="CornerRadius" Value="3"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.8" ShadowDepth="3"></DropShadowEffect>
</Setter.Value>
</Setter>
</Style>


<Style x:Key="BorderStyle_2_NoEffect" TargetType="Border">
<Setter Property="CornerRadius" Value="1"/>
<Setter Property="Background" Value="{StaticResource CsDarkGray}" >
</Setter>
</Style>

<Style x:Key="BorderStyle_3_Demo" TargetType="Border">
<Setter Property="CornerRadius" Value="3"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.8" ShadowDepth="3"></DropShadowEffect>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
157 changes: 157 additions & 0 deletions CLinerStyle/src/CLinerStyle/Themes/Button.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oc="clr-namespace:Lib.Controls;assembly=Lib.Controls.MyControls"
>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/CLinerStyle;component/Themes/Border.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
<Setter Property="Background" Value="#FF808080"/>
<Setter Property="Foreground" Value="White"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Name="grid">
<AdornerDecorator>
<Border x:Name="border" Style="{StaticResource BorderStyle_1_Effect}" Background="{TemplateBinding Background}">

</Border>
</AdornerDecorator>
<Grid Clip="{Binding ElementName=GeometryEllipse, Path=RenderedGeometry}" ClipToBounds="True">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#50ffffff" Offset="0"/>
<GradientStop Color="#50000000" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<ContentControl HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}"></ContentControl>
<Rectangle x:Name="GeometryEllipse" Fill="{x:Null}" IsHitTestVisible="False" Focusable="False" RadiusX="3" RadiusY="3" />
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Margin" Value="0 1 0 -1" TargetName="grid"/>
<Setter Property="Effect" TargetName="border">
<Setter.Value>
<DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.8" ShadowDepth="2"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="ButtonStyle2_noeffect_pressed" TargetType="{x:Type Button}">

<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Border x:Name="border" Style="{StaticResource BorderStyle_2_NoEffect}" >
<ContentControl VerticalAlignment="Center" Content="{TemplateBinding Content}" ></ContentControl>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="0.23"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="BorderThickness" Value="0" TargetName="border"/>
<!--<Setter Property="Opacity" Value="0.6"/>-->
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="ButtonStyle3_select" TargetType="{x:Type oc:CSwitcher}">
<Setter Property="Foreground" Value="White"></Setter>
<Setter Property="Background" Value="#FF808080"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type oc:CSwitcher}">
<Grid Name="grid">
<AdornerDecorator >
<Border x:Name="border" Style="{StaticResource BorderStyle_1_Effect}" Background="{TemplateBinding Background}">


</Border>
</AdornerDecorator>
<Grid Effect="{x:Null}" Clip="{Binding ElementName=GeometryEllipse, Path=RenderedGeometry}" ClipToBounds="True">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#50ffffff" Offset="0"/>
<GradientStop Color="#50000000" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<ContentControl Effect="{x:Null}" HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}"></ContentControl>
<Rectangle Effect="{x:Null}" x:Name="GeometryEllipse" Fill="{x:Null}" IsHitTestVisible="False" Focusable="False" RadiusX="3" RadiusY="3" />
</Grid>
</Grid>

<ControlTemplate.Triggers>

<Trigger Property="IsSelected" Value="true">
<Setter Property="Margin" Value="0 1 0 -1" TargetName="grid"/>
<Setter Property="Effect" TargetName="border">
<Setter.Value>
<DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.8" ShadowDepth="2"/>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Margin" Value="0 2 0 -2" TargetName="grid"/>
<Setter Property="Effect" TargetName="border">
<Setter.Value>
<DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.8" ShadowDepth="1"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="RadioButtonStyle4_noeffect_pressed" TargetType="{x:Type RepeatButton}">
<Setter Property="Background" Value="#ff808080"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Grid>
<Border x:Name="border" Style="{StaticResource BorderStyle_2_NoEffect}" Background="{TemplateBinding Background}">
<ContentControl VerticalAlignment="Center" Content="{TemplateBinding Content}" ></ContentControl>
</Border>
<Grid Name="grid" Clip="{Binding ElementName=GeometryEllipse, Path=RenderedGeometry}" ClipToBounds="True">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#50D4D4D4" Offset="0"/>
<GradientStop Color="#503C3C3C" Offset="1"/>
<GradientStop Color="#50676767" Offset="0.13"/>
<GradientStop Color="#50676767" Offset="0.87"/>
</LinearGradientBrush>
</Grid.Background>
<ContentControl HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}"></ContentControl>
<Rectangle x:Name="GeometryEllipse" Fill="{x:Null}" IsHitTestVisible="False" Focusable="False" RadiusX="1" RadiusY="1" />
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" Value="0.23"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Background" Value="#00000000" TargetName="grid">

</Setter>
<!--<Setter Property="BorderThickness" Value="0" TargetName="border"/>-->
<!--<Setter Property="Opacity" Value="0.6"/>-->
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

</ResourceDictionary>
Loading