Skip to content

Commit a533d9b

Browse files
Added Some additional Changes in Sample
1 parent b571e2d commit a533d9b

File tree

154 files changed

+399170
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+399170
-84
lines changed

CustomDateTimeEdit/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

CustomDateTimeEdit/MainWindow.xaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

CustomDateTimeEdit/MainWindow.xaml.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29009.5
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.329
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomDateTimeEdit", "CustomDateTimeEdit\CustomDateTimeEdit.csproj", "{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DateTimeEdit_sample", "DateTimeEdit_sample\DateTimeEdit_sample.csproj", "{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {2315D2E2-31A2-4A90-BD11-42BC292519C1}
23+
SolutionGuid = {3873B797-7EB5-4BC9-AC84-81DAE3B3C4A1}
2424
EndGlobalSection
2525
EndGlobal

DateTimeEdit_sample/App.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
6+
<runtime>
7+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
8+
<dependentAssembly>
9+
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
10+
<bindingRedirect oldVersion="0.0.0.0-17.3460.0.17" newVersion="17.3460.0.17" />
11+
</dependentAssembly>
12+
</assemblyBinding>
13+
</runtime>
14+
</configuration>

CustomDateTimeEdit/App.xaml renamed to DateTimeEdit_sample/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Application x:Class="CustomDateTimeEdit.App"
1+
<Application x:Class="DateTimeEdit_sample.App"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:local="clr-namespace:CustomDateTimeEdit"
4+
xmlns:local="clr-namespace:DateTimeEdit_sample"
55
StartupUri="MainWindow.xaml">
66
<Application.Resources>
77

CustomDateTimeEdit/App.xaml.cs renamed to DateTimeEdit_sample/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Threading.Tasks;
77
using System.Windows;
88

9-
namespace CustomDateTimeEdit
9+
namespace DateTimeEdit_sample
1010
{
1111
/// <summary>
1212
/// Interaction logic for App.xaml

CustomDateTimeEdit/CustomDateTimeEdit.csproj renamed to DateTimeEdit_sample/DateTimeEdit_sample.csproj

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,31 @@
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{69B6CA0F-1486-46B7-BDAC-D3BFAE15166D}</ProjectGuid>
7+
<ProjectGuid>{05D029C7-AFF2-4B01-86F9-7B3437EE62F2}</ProjectGuid>
88
<OutputType>WinExe</OutputType>
9-
<RootNamespace>CustomDateTimeEdit</RootNamespace>
10-
<AssemblyName>CustomDateTimeEdit</AssemblyName>
11-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
9+
<RootNamespace>DateTimeEdit_sample</RootNamespace>
10+
<AssemblyName>DateTimeEdit_sample</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1414
<WarningLevel>4</WarningLevel>
1515
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1616
<Deterministic>true</Deterministic>
17+
<PublishUrl>publish\</PublishUrl>
18+
<Install>true</Install>
19+
<InstallFrom>Disk</InstallFrom>
20+
<UpdateEnabled>false</UpdateEnabled>
21+
<UpdateMode>Foreground</UpdateMode>
22+
<UpdateInterval>7</UpdateInterval>
23+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
24+
<UpdatePeriodically>false</UpdatePeriodically>
25+
<UpdateRequired>false</UpdateRequired>
26+
<MapFileExtensions>true</MapFileExtensions>
27+
<ApplicationRevision>0</ApplicationRevision>
28+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
29+
<IsWebBootstrapper>false</IsWebBootstrapper>
30+
<UseApplicationTrust>false</UseApplicationTrust>
31+
<BootstrapperEnabled>true</BootstrapperEnabled>
1732
</PropertyGroup>
1833
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1934
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -35,16 +50,33 @@
3550
<WarningLevel>4</WarningLevel>
3651
</PropertyGroup>
3752
<ItemGroup>
53+
<Reference Include="ReachFramework" />
54+
<Reference Include="Syncfusion.Licensing, Version=17.3460.0.17, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
55+
<HintPath>..\packages\Syncfusion.Licensing.17.3.0.17\lib\net46\Syncfusion.Licensing.dll</HintPath>
56+
</Reference>
3857
<Reference Include="Syncfusion.SfInput.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
39-
<SpecificVersion>False</SpecificVersion>
40-
<HintPath>..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.3.0.14\Assemblies\4.6\Syncfusion.SfInput.WPF.dll</HintPath>
58+
<HintPath>..\packages\Syncfusion.SfInput.WPF.17.3.0.14\lib\net46\Syncfusion.SfInput.WPF.dll</HintPath>
59+
</Reference>
60+
<Reference Include="Syncfusion.SfShared.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
61+
<HintPath>..\packages\Syncfusion.SfShared.WPF.17.3.0.14\lib\net46\Syncfusion.SfShared.WPF.dll</HintPath>
62+
</Reference>
63+
<Reference Include="Syncfusion.SfSkinManager.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
64+
<HintPath>..\packages\Syncfusion.SfSkinManager.WPF.17.3.0.14\lib\net46\Syncfusion.SfSkinManager.WPF.dll</HintPath>
4165
</Reference>
4266
<Reference Include="Syncfusion.Shared.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
43-
<SpecificVersion>False</SpecificVersion>
44-
<HintPath>..\..\..\..\..\..\Program Files (x86)\Syncfusion\Essential Studio\WPF\17.3.0.14\Assemblies\4.6\Syncfusion.Shared.WPF.dll</HintPath>
67+
<HintPath>..\packages\Syncfusion.Shared.WPF.17.3.0.14\lib\net46\Syncfusion.Shared.WPF.dll</HintPath>
68+
</Reference>
69+
<Reference Include="Syncfusion.Themes.Office2016Colorful.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
70+
<HintPath>..\packages\Syncfusion.Themes.Office2016Colorful.WPF.17.3.0.14\lib\net46\Syncfusion.Themes.Office2016Colorful.WPF.dll</HintPath>
71+
</Reference>
72+
<Reference Include="Syncfusion.Themes.Office2016White.WPF, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
73+
<HintPath>..\packages\Syncfusion.Themes.Office2016White.WPF.17.3.0.14\lib\net46\Syncfusion.Themes.Office2016White.WPF.dll</HintPath>
4574
</Reference>
4675
<Reference Include="System" />
4776
<Reference Include="System.Data" />
77+
<Reference Include="System.Drawing" />
78+
<Reference Include="System.Printing" />
79+
<Reference Include="System.Windows.Forms" />
4880
<Reference Include="System.Xml" />
4981
<Reference Include="Microsoft.CSharp" />
5082
<Reference Include="System.Core" />
@@ -54,6 +86,8 @@
5486
<Reference Include="System.Xaml">
5587
<RequiredTargetFramework>4.0</RequiredTargetFramework>
5688
</Reference>
89+
<Reference Include="UIAutomationProvider" />
90+
<Reference Include="UIAutomationTypes" />
5791
<Reference Include="WindowsBase" />
5892
<Reference Include="PresentationCore" />
5993
<Reference Include="PresentationFramework" />
@@ -94,6 +128,7 @@
94128
<Generator>ResXFileCodeGenerator</Generator>
95129
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
96130
</EmbeddedResource>
131+
<None Include="packages.config" />
97132
<None Include="Properties\Settings.settings">
98133
<Generator>SettingsSingleFileGenerator</Generator>
99134
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -102,5 +137,17 @@
102137
<ItemGroup>
103138
<None Include="App.config" />
104139
</ItemGroup>
140+
<ItemGroup>
141+
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
142+
<Visible>False</Visible>
143+
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
144+
<Install>true</Install>
145+
</BootstrapperPackage>
146+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
147+
<Visible>False</Visible>
148+
<ProductName>.NET Framework 3.5 SP1</ProductName>
149+
<Install>false</Install>
150+
</BootstrapperPackage>
151+
</ItemGroup>
105152
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
106153
</Project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Window
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:DateTimeEdit_sample"
7+
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
8+
xmlns:skin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
9+
skin:SfSkinManager.VisualStyle="Office2016White"
10+
x:Class="DateTimeEdit_sample.MainWindow"
11+
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
12+
Title="DateTimeEdit" Height="750" Width="700">
13+
<Grid x:Name="grid">
14+
<Grid.ColumnDefinitions>
15+
<ColumnDefinition Width="0.5*"/>
16+
<ColumnDefinition Width="0.5*"/>
17+
</Grid.ColumnDefinitions>
18+
<syncfusion:DateTimeEdit x:Name="dateTimeEdit" Margin="0, -225, 0, 0" Width="250" Height="25">
19+
<syncfusion:DateTimeEdit.DateTimeCalender>
20+
<syncfusion:SfDateSelector Width="250" ShowCancelButton="False" ShowDoneButton="False" SelectorItemWidth="75" Foreground="#333333" SelectorItemHeight="75" SelectorItemSpacing="4.5" Height="430" Margin="0, 2, 0 ,0" SelectedDateTime="{Binding ElementName=dateTimeEdit,Path=DateTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
21+
</syncfusion:SfDateSelector>
22+
</syncfusion:DateTimeEdit.DateTimeCalender>
23+
</syncfusion:DateTimeEdit>
24+
<syncfusion:DateTimeEdit Margin="0, -225, 0, 0" x:Name="dateTimeEdit1" Grid.Column="1" Width="250" Height="25" EnableClassicStyle="True" IsCalendarEnabled="False">
25+
<syncfusion:DateTimeEdit.Clock>
26+
<syncfusion:SfTimeSelector Width="248" ShowCancelButton="False" ShowDoneButton="False" SelectorItemWidth="75" Foreground="#333333" SelectorItemHeight="75" SelectorItemSpacing="4.5" BorderThickness="1" Height="430" Margin="0, 0, 0 ,0" SelectedTime="{Binding ElementName=dateTimeEdit1,Path=DateTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
27+
</syncfusion:SfTimeSelector>
28+
</syncfusion:DateTimeEdit.Clock>
29+
</syncfusion:DateTimeEdit>
30+
</Grid>
31+
</Window>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
using Syncfusion.Windows.Shared;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
using System.Windows.Controls;
9+
using System.Windows.Controls.Primitives;
10+
using System.Windows.Data;
11+
using System.Windows.Documents;
12+
using System.Windows.Input;
13+
using System.Windows.Media;
14+
using System.Windows.Media.Imaging;
15+
using System.Windows.Navigation;
16+
using System.Windows.Shapes;
17+
18+
namespace DateTimeEdit_sample
19+
{
20+
/// <summary>
21+
/// Interaction logic for MainWindow.xaml
22+
/// </summary>
23+
public partial class MainWindow : Window
24+
{
25+
ToggleButton todayButton;
26+
public MainWindow()
27+
{
28+
InitializeComponent();
29+
dateTimeEdit.IsDropDownOpenChanged += DateTimeEdit_IsDropDownOpenChanged;
30+
}
31+
32+
private void DateTimeEdit_IsDropDownOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
33+
{
34+
if (dateTimeEdit.IsDropDownOpen)
35+
{
36+
todayButton = dateTimeEdit.Template.FindName("Button_Today_Classic", dateTimeEdit) as ToggleButton;
37+
if (todayButton != null)
38+
{
39+
todayButton.Visibility = Visibility.Collapsed;
40+
}
41+
}
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)