Skip to content

Commit

Permalink
Merge pull request #63 from telerik/sdkUpdates
Browse files Browse the repository at this point in the history
New version of Telerik SDK examples.
  • Loading branch information
StenlyGrigorov authored Dec 16, 2024
2 parents 6bd7c56 + 3c6fc3c commit d964f92
Show file tree
Hide file tree
Showing 181 changed files with 478 additions and 661 deletions.
2 changes: 1 addition & 1 deletion AutoCompleteBox/CustomBoxesItemTemplate/Example.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="This example demonstrates how to create a custom BoxesItemTemplate for RadAutoCompleteBox control in Silverlight and WPF."
<TextBlock Text="This example demonstrates how to create a custom BoxesItemTemplate for RadAutoCompleteBox control in WPF."
Grid.Row="0"
FontSize="16"
TextWrapping="Wrap"
Expand Down
2 changes: 1 addition & 1 deletion AutoCompleteBox/CustomBoxesItemTemplate/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Custom BoxesItemTemplate
This example demonstrates how to create a custom BoxesItemTemplate for RadAutoCompleteBox control in Silverlight and WPF.
This example demonstrates how to create a custom BoxesItemTemplate for RadAutoCompleteBox control in WPF.

[//]: <keywords:customization>
2 changes: 1 addition & 1 deletion AutoCompleteBox/CustomDropDownItemTemplate/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Custom Drop Down Item Template
This example demonstrates how to create a custom DropDownItemTemplate for the RadAutoCompleteBox control in Silverlight and WPF.
This example demonstrates how to create a custom DropDownItemTemplate for the RadAutoCompleteBox control in WPF.

[//]: <keywords:dropdownitemtemplate, customization>
2 changes: 1 addition & 1 deletion AutoCompleteBox/NoMatchFilteringBehavior/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## No Match Filtering Behavior
This example demonstrates how to customize the FilteringBehavior of the cotnrol for Silverlight and WPF.
This example demonstrates how to customize the FilteringBehavior of the control for WPF.

With the custom filtering behavior if the control has the focus or there isn't a matched item when typing in the control
the drop down portion of the control will be populated with the entire ItemsSource collection. Try typing in for example
Expand Down
2 changes: 1 addition & 1 deletion AutoCompleteBox/OpenWithDropDownButton/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Open With Drop Down Button
This example demonstrates how to create a button that will populate the drop down portion of the RadAutoCompleteBox control for Silverlight and WPF.
This example demonstrates how to create a button that will populate the drop down portion of the RadAutoCompleteBox control for WPF.

[//]: <keywords:populate>
10 changes: 0 additions & 10 deletions AutoCompleteBox/RestrictInputToOnlyExistingItems/Readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
## Restrict Input To Only Existing Items
This example demonstrates how to restrict the input of the user to only the existing items inside the ItemsSource of RadAutoCompleteBox.

For Silverlight: The Silverlight application needs to be trusted and you need to enable trusted applications to run inside the browser. This needs be done in order to import the WinAPI function 'GetKeyState' - it is used to find if the 'Caps Lock' key is pressed. If the application is not trusted the attached behavior won't work. Please, follow the next steps:

1. Sign the .XAP file of the Silverlight application with code signing certificate. Right click on the Silverlight application and go to Properties. Choose �Signing' from the left hand side and check the checkbox 'Sign the .XAP file'.
2. Click on the button 'Create Test Certificate'. Enter the password and confirm password and click the 'OK' button.
3. Click on the 'More Details' button highlighted - this will show you a 'Certificate' window and click the 'Install Certificate' button.
4. Clicking on the button brings up the 'Certificate Import wizard'. Click on the 'Next' button and choose 'Place all certificates in the following store'. Click on the Browse button. This will show you a 'Certificate Store'. Choose 'Trusted Publisher' and finish the wizard. Now repeat the same step to install this certificate in 'Trusted Root Certification Authorities'.

For a more detailed information how to enable Trusted Applications to run inside the browser, please check the following article from MSDN:
https://msdn.microsoft.com/en-us/library/gg192793(v=vs.95)

[//]: <keywords:itemssource, trusted, xap, signing>
2 changes: 1 addition & 1 deletion AutoCompleteBox/TwoPropertiesFilteringBehavior/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Two Properties Filtering Behavior
This example demonstrates how to customize the FilteringBehavior of the control for Silverlight and WPF.
This example demonstrates how to customize the FilteringBehavior of the control for WPF.

For example type U (for United States) then ',' and then W (for Washington, D.C.), this will generate
Unites States in the drop down portion of the control.
Expand Down
2 changes: 1 addition & 1 deletion AutoCompleteBox/WithDataForm/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## With DataForm
This example demonstrates how to use RadAutoCompleteBox inside RadDataForm by creating a custom ReadOnlyTemplate, EditTemplate
and NewItemTemplate for Silverlight and WPF.
and NewItemTemplate for WPF.

[//]: <keywords:custom, readonlytemplate, edittemplate, itemtemplate>
2 changes: 1 addition & 1 deletion AutoCompleteBox/WithGridView/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## With GridView
This example shows how to add RadAutoCompleteBox inside GridViewDataColumn for Silverlight and WPF.
This example shows how to add RadAutoCompleteBox inside GridViewDataColumn for WPF.

The 'Country' column in the RadGridView uses the AutoCompleteBox control."

Expand Down
20 changes: 2 additions & 18 deletions Book/DataBinding/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
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;
using Telerik.Windows.Controls;

namespace DataBinding_WPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public partial class MainWindow : Window
{
public MainWindow()
{
Expand Down
2 changes: 1 addition & 1 deletion BusyIndicator/RestoreFocus/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Restore Focus
The example demonstrates how to restore the focus when the RadBusyIndicator is shown and then hidden for Silverlight and WPF.
The example demonstrates how to restore the focus when the RadBusyIndicator is shown and then hidden for WPF.

[//]: <keywords:hidden, shown, isbusy>
2 changes: 1 addition & 1 deletion Buttons/CustomizeVisualStates/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This example shows how to customize the visual states (mouse over, pressed, focused, etc.) of the RadButton control. The sample shows how to customize the colors of the mouse over, pressed and the focused states, but you can apply the same approach for all other states listed in the ControlTemplate of the button.

The sample contains custom styles showing how to change the visual states for the Office_Black and Office2016 themes. They show the two basic template structures used accross the ControlTemplates for the different themes. You can use them as a base for customizing any theme.
The sample contains custom styles showing how to change the visual states for the Office_Black and Office2016 themes. They show the two basic template structures used across the ControlTemplates for the different themes. You can use them as a base for customizing any theme.

The guidelines shown in this project can be used for customizing any other button from the RadButtons suite. You just need to extract the corresponding button Style.

Expand Down
19 changes: 2 additions & 17 deletions Calendar/TodayButton/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
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;
using System.Windows;

namespace TodayButton
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public partial class MainWindow : Window
{
public MainWindow()
{
Expand Down
2 changes: 1 addition & 1 deletion Calendar/TodayButton/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Today Button
This example demonstrates how to create a custom RadCalendar control and add a TodayButton in the controls Style that will select the current date
in the control for Silverlight and WPF.
in the control for WPF.

[//]: <keywords:custom, style, current, date>
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using System;
using System.Windows;
using System.Windows.Controls;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Calendar;

namespace WeekdaysButtonStyleSelector
{
public class DayButtonStyleSelector : StyleSelector
public class DayButtonStyleSelector : StyleSelector
{
public Style SpecialStyleWeekDays { get; set; }

Expand Down
3 changes: 0 additions & 3 deletions Calendar/WeekdaysButtonStyleSelector/Example.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace WeekdaysButtonStyleSelector
{
/// <summary>
/// Interaction logic for Example.xaml
/// </summary>
public partial class Example : UserControl
{
public Example()
Expand Down
2 changes: 1 addition & 1 deletion Calendar/WeekdaysButtonStyleSelector/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Weekdays button StyleSelector
This example demonstrates how to customize the weekdays/weekends day buttons in RadCalendar in order to change their Background for Silverlight and WPF.
This example demonstrates how to customize the weekdays/weekends day buttons in RadCalendar in order to change their Background for WPF.

[//]: <keywords:style, selector, calendar, buttons, customization>
2 changes: 1 addition & 1 deletion Chart/WPF/CategoricalCharts/Readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Categorical Charts
With this feature, the enabled X axis can be used to plot not only values (e.g. number of sales, etc.), but also categories (e.g. months of the year, units, people, etc.). Using a Category axis, the Silverlight Chart treats data as a sequence of non-numerical text labels. The marker is placed according to the position of the category in the sequence. Data is provided per category.
With this feature, the enabled X axis can be used to plot not only values (e.g. number of sales, etc.), but also categories (e.g. months of the year, units, people, etc.). Using a Category axis, the Chart treats data as a sequence of non-numerical text labels. The marker is placed according to the position of the category in the sequence. Data is provided per category.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
4 changes: 2 additions & 2 deletions DataForm/DataTemplateSelector/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
4 changes: 2 additions & 2 deletions DataForm/DefiningCustomDataFields/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
4 changes: 2 additions & 2 deletions DataForm/IntegrateWithRadGridView/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
1 change: 0 additions & 1 deletion DataForm/ValidationSummaryOutsideDataForm/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ This example demonstrates how to integrate the DataFormValidationSummary control

More details can be found in our online help:
For WPF - http://docs.telerik.com/devtools/wpf/controls/raddataform/validation/use-validationsummary-outside-raddataform.html
For SL - http://docs.telerik.com/devtools/silverlight/controls/raddataform/validation/use-validationsummary-outside-raddataform.html

[//]: <KeyWords: dataformvalidationsummary>
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
2 changes: 1 addition & 1 deletion DataPager/CustomIPagedCollectionView/Readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Custom IPagedCollectionView
This example demonstrates how to implement custom IPagedCollectionView for Silverlight and WPF
This example demonstrates how to implement custom IPagedCollectionView for WPF
2 changes: 1 addition & 1 deletion DataPager/Readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Data Pager
Examples related to RadDataPager for Silverlight and WPF
Examples related to RadDataPager for WPF
2 changes: 1 addition & 1 deletion DateTimePicker/AllowedDates/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Allowed Dates
This example demonstrates how to use the SelectableDateStart, SelectableDateEnd and BlackoutDates in order to create a selectable range of dates for Silverlight and WPF.
This example demonstrates how to use the SelectableDateStart, SelectableDateEnd and BlackoutDates in order to create a selectable range of dates for WPF.

In the example only the current weekdays (Monday-Friday) are selectable.

Expand Down
1 change: 0 additions & 1 deletion DateTimePicker/ClearButton/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
## Clear Button
This example demonstrates how to customize the Template of the RadDateTimePicker Style in order to add a 'Clear selection' button to it.
The example is available for both Silverlight and WPF.

[//]: <keywords: datetimepicker, style, customize, template, selection>
2 changes: 1 addition & 1 deletion DateTimePicker/CustomHeaderTemplate/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Custom HeaderTemplate
This example demonstrates how to customize the Header and HeaderTemplate of the RadTimePicker control in Silverlight and WPF.
This example demonstrates how to customize the Header and HeaderTemplate of the RadTimePicker control in WPF.

[//]: <keywords: datetimepicker, timepicker, header, cuztomize, radtimepicker>
2 changes: 1 addition & 1 deletion DateTimePicker/ReadonlyInputField/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Readonly Input Field
This example demonstrates how to make the input field of the DateTimePicker/DatePicker controls read-only while the drop down calendar
remains active for Silverlight and WPF.
remains active for WPF.

[//]: <keywords: datetimepicker, datepicker, calendar>
1 change: 0 additions & 1 deletion DateTimePicker/RestrictTheEnteredDate/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
## Restrict The Entered Date
This example demonstrates how you can restrict the date that a user can type in the input field by implementing the ParseDateTimeValue event.
The example is available for Silverlight and WPF.

[//]: <keywords: datetimepicker, timepicker, ParseDateTimeValue>
2 changes: 1 addition & 1 deletion DateTimePicker/TimeIntervalsScrollViewer/Example.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Width="450"
Text="This example demonstrates how to add a scrollbar to the time intervals portion of the control. When setting a small TimeInterval this would help in not stretching the controls Tempalte for Silverlight and WPF."
Text="This example demonstrates how to add a scrollbar to the time intervals portion of the control. When setting a small TimeInterval this would help in not stretching the controls Tempalte for WPF."
Margin="20"
FontWeight="Bold"
TextWrapping="Wrap"/>
Expand Down
2 changes: 1 addition & 1 deletion DateTimePicker/TimeIntervalsScrollViewer/Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Time Intervals Scroll Viewer
This example demonstrates how to add a scrollbar to the time intervals portion of the control. When setting a small TimeInterval this
would help in not stretching the controls Tempalte for Silverlight and WPF.
would help in not stretching the controls Template for WPF.

[//]: <keywords: scrollbar, datetimepicker, timepicker, TimeInterval, template, scrollviewer>
4 changes: 1 addition & 3 deletions DateTimePicker/TodayButton/Readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
## Today Button
This example demonstrates how to customize the Style of the DateTimePicker in order to add a today button to the RadDateTimePicker control for
Silverlight and WPF.
This example demonstrates how to customize the Style of the DateTimePicker in order to add a today button to the RadDateTimePicker control for WPF.

IMPORTANT:

With the release of Telerik UI for WPF Q1 2016 there is a built-in functionality for adding a Today button inside RadDateTimePicker:
- For WPF here: http://docs.telerik.com/devtools/wpf/controls/raddatetimepicker/features/todaybutton
- For Silverlight here: http://docs.telerik.com/devtools/silverlight/controls/raddatetimepicker/features/todaybutton

[//]: <keywords: customize, style, datetimepicker, datepicker>
4 changes: 2 additions & 2 deletions Diagram/CustomConnectors/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// 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("SilverlightApplication1")]
[assembly: AssemblyTitle("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
7 changes: 0 additions & 7 deletions Diagram/CustomTools/ShapeTool.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Diagrams.Core;

Expand Down
5 changes: 0 additions & 5 deletions Diagram/WinForm/Program.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace WinForm
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Expand Down
2 changes: 1 addition & 1 deletion Docking/ClickFlyoutBehaviorWithAnimation/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Click Flyout Behavior With Animation
This example demonstrates how to create a custom FlyoutBehavior for the RadDocking control in order to achieve a ClickFlyoutBehavior with slide in/out animations. The example is available for both Silverlight and WPF.
This example demonstrates how to create a custom FlyoutBehavior for the RadDocking control in order to achieve a ClickFlyoutBehavior with slide in/out animations.

[//]: <keywords:custom, animations, docking>
Loading

0 comments on commit d964f92

Please sign in to comment.