<style>
.theme-palette-color {
	width:20px;
	height:20px;
	margin: auto;
	border: 1px solid black;
}

.office2016-mainbrush {	
	background: #FFFFFF;
}
.office2016-primarybrush {	
	background: #E6E6E6;
}
.office2016-complementarybrush {	
	background: #E1E1E1;
}
.office2016-alternativebrush {	
	background: #F1F1F1;
}
.office2016-basicbrush {	
	background: #ABABAB;
}
.office2016-markerbrush {	
	background: #444444;
}
.office2016-markerinvertedbrush {	
	background: #F9F9F9;
}
.office2016-iconbrush {	
	background: #444444;
}
.office2016-validationbrush {	
	background: #E81123;
}
.office2016-accentbrush {	
	background: #2A579A;
}
.office2016-accentmouseoverbrush {	
	background: #3E6DB6;
}
.office2016-accentpressedbrush {	
	background: #19478A;
}
.office2016-accentfocusedbrush {	
	background: #88C3FF;
}
.office2016-mouseoverbrush {	
	background: #C5C5C5;
}
.office2016-pressedbrush {	
	background: #AEAEAE;
}
.office2016-selectedbrush {	
	background: #EBEBEB;
}
.office2016-readonlybackgroundbrush {	
	background: #FFFFFF;
}
.office2016-readonlyborderbrush {	
	background: #ABABAB;
}

article table
{
    table-layout: auto;
}
</style>

# Office2016Touch Theme

The `Office2016Touch` theme is a variation of the [Office2016 theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016), especially created to be suitable for touch interfaces and to provide larger and more easily accessible components. Part of the controls are simply larger, but some of them are redesigned for easier touch manipulation.

Jump to the following topics to learn about the specifics of the theme's palette and features.

* [Differences From the Office2016 Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#differences-from-the-office2016-theme)
* [Default Theme Colors](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#default-theme-colors)
* [Default Theme Brushes](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#default-theme-brushes)
* [Changing Palette Colors](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#changing-palette-colors)
* [Changing Font Properties](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#changing-font-properties)
* [Changing FocusThickness](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#changing-focusthickness)
* [Changing Corner Radius](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#changing-corner-radius)
* [Using Glyphs](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#using-glyphs)
* [Changing Opacity](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016touch#changing-opacity)

## Differences From the Office2016 Theme

The Office2016Touch theme is, as the name suggests, very similar to the Office2016 theme but with larger controls and wider spaces for easier interaction. There are several controls that differ significantly and the following figures shows some of them.

> caption RadNumericUpDown

![Telerik UI for WPF RadNumericUpDown with the Office 2016 Touch theme](https://www.telerik.com/products/wpf/documentation/assets/e4a01f0d08c8975461b78768fefa11f2/common-styling-appearance-office2016touch-theme-0.png)

> caption RadOutlookBar

![Telerik UI for WPF RadOutlookBar with the Office 2016 Touch theme](https://www.telerik.com/products/wpf/documentation/assets/82a91857acea69f672e10ccde33bce0a/common-styling-appearance-office2016touch-theme-1.png)

> caption RadRibbonView

![Telerik UI for WPF RadRibbonView with the Office 2016 Touch theme](https://www.telerik.com/products/wpf/documentation/assets/bf598a7cb64db687b241d906942a0d80/common-styling-appearance-office2016touch-theme-2.png)

## Default Theme Colors

Office2016Touch has one color variation, designed to be easily modified via the exposed colors in the theme palette. The default values of the brushes in the theme are the same as in the Office2016 theme.

| Color name              | Hex code  |                                                                            |
| ----------------------- | --------- | -------------------------------------------------------------------------- |
| MainColor               | #FFFFFFFF | <div class="theme-palette-color office2016-mainbrush"></div>               |
| PrimaryColor            | #FFE6E6E6 | <div class="theme-palette-color office2016-primarybrush"></div>            |
| ComplementaryColor      | #FFE1E1E1 | <div class="theme-palette-color office2016-complementarybrush"></div>      |
| AlternativeColor        | #FFF1F1F1 | <div class="theme-palette-color office2016-alternativebrush"></div>        |
| BasicColor              | #FFABABAB | <div class="theme-palette-color office2016-basicbrush"></div>              |
| MarkerColor             | #FF444444 | <div class="theme-palette-color office2016-markerbrush"></div>             |
| MarkerInvertedColor     | #FFF9F9F9 | <div class="theme-palette-color office2016-markerinvertedbrush"></div>     |
| IconColor               | #FF444444 | <div class="theme-palette-color office2016-iconbrush"></div>               |
| ValidationColor         | #FFE81123 | <div class="theme-palette-color office2016-validationbrush"></div>         |
| AccentColor             | #FF2A579A | <div class="theme-palette-color office2016-accentbrush"></div>             |
| AccentMouseOverColor    | #FF3E6DB6 | <div class="theme-palette-color office2016-accentmouseoverbrush"></div>    |
| AccentPressedColor      | #FF19478A | <div class="theme-palette-color office2016-accentpressedbrush"></div>      |
| AccentFocusedColor      | #FF88C3FF | <div class="theme-palette-color office2016-accentfocusedbrush"></div>      |
| MouseOverColor          | #FFC5C5C5 | <div class="theme-palette-color office2016-mouseoverbrush"></div>          |
| PressedColor            | #FFAEAEAE | <div class="theme-palette-color office2016-pressedbrush"></div>            |
| SelectedColor           | #FFEBEBEB | <div class="theme-palette-color office2016-selectedbrush"></div>           |
| ReadOnlyBackgroundColor | #FFFFFFFF | <div class="theme-palette-color office2016-readonlybackgroundbrush"></div> |
| ReadOnlyBorderColor     | #FFABABAB | <div class="theme-palette-color office2016-readonlyborderbrush"></div>     |

## Default Theme Brushes

The usage of the theme palette’s brushes is the same as in the [Office2016 theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016).

## Changing Palette Colors

The Office2016Touch theme provides dynamic change of the palette colors responsible for the brushes used in our controls. Their defaults are stated above. This mechanism is used to modify the color variation of the theme.

The general naming convention is: `Office2016TouchPalette.Palette.[name]Color` is responsible for `[name]Brush` – e.g. `Office2016TouchPalette.Palette.AccentColor` sets the color for `telerik:Offie2016TouchResource ResourceKey=AccentBrush`

Changing the colors can be achieved in code behind.

**Setting palette colors**

```C#
	Office2016TouchPalette.Palette.AccentColor = Color.FromRgb(255, 0, 0);
```

## Changing Font Properties

When using the Office2016Touch theme you can dynamically change the `FontSize` and `FontFamily` properties of all components in the application the same way as you do in all other [Available Themes](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/available-themes) which support ThemePalette.

The FontSize and FontFamily properties are public so you can easily modify the theme resources at a single point. The most commonly used font size in the theme is named FontSize and its default value is **12**.

> For complex scenarios we strongly recommend setting the `FontSize` property only initially before the application is initialized. Also, we recommend values between **11px** and **19px** for it.

**Default FontSize and FontFamily**

```C#
	Office2016TouchPalette.Palette.FontSizeS = 12;
	Office2016TouchPalette.Palette.FontSize = 14;
	Office2016TouchPalette.Palette.FontSizeL = 16;
	Office2016TouchPalette.Palette.FontFamily = new FontFamily("Segoe UI");
```

The following examples show how to change the default FontFamily from "Segoe UI" to "Calibri" and the FontSize from **14** to **16** on a click of a button:

**Example view definition**

```XAML
	<StackPanel>
		<telerik:RadCalendar HorizontalAlignment="Center" />
		<telerik:RadButton Content="Change Font" Click="OnButtonChangeFontSizeClick" />
	</StackPanel>
```

**Changing the theme's FontSize and FontFamily**

```C#
	private void OnButtonChangeFontSizeClick(object sender, RoutedEventArgs e)
	{
		Office2016TouchPalette.Palette.FontSize = 16;
		Office2016TouchPalette.Palette.FontFamily = new FontFamily("Calibri");
	}
```

> caption Setting FontSize and FontFamily

![Telerik UI for WPF Office 2016 Touch theme font size and font family settings](https://www.telerik.com/products/wpf/documentation/assets/2ec1436c8cb9eee440c4c63755025457/common-styling-appearance-office2016touch-theme-3.png)

## Changing FocusThickness

The `Office2016Touch` theme’s palette includes a `FocusThickness` property. It defines the thickness of the buttons’ focus border. As our design is inspired by the Microsoft Office, the focus border of the buttons is thicker than the one of the other controls and elements. By default the FocusThickness is set to **2**, but it can be easily changed in a similar way as the other palette properties.

**Changing the theme's FocusThickness**

```C#
	Office2016TouchPalette.Palette.FocusThickness = new Thickness(1);
```

> caption Setting FocusThickness

![Telerik UI for WPF Office 2016 Touch theme focus thickness setting](https://www.telerik.com/products/wpf/documentation/assets/a8f4bac1796ee31bca9c167d125288da/common-styling-appearance-office2016touch-theme-4.png)

## Changing Corner Radius

The Office2016Touch theme exposes an easy way to modify the corner radius of many elements in your application. You can use corner radius properties of the palette. Their default value is **0**.

**Setting corner radius**

```C#
	Office2016TouchPalette.Palette.CornerRadius = new CornerRadius(0,0,0,0);
	Office2016TouchPalette.Palette.CornerRadiusTop = new CornerRadius(0,0,0,0);
	Office2016TouchPalette.Palette.CornerRadiusBottom = new CornerRadius(0,0,0,0);
	Office2016TouchPalette.Palette.CornerRadiusLeft = new CornerRadius(0,0,0,0);
	Office2016TouchPalette.Palette.CornerRadiusRight = new CornerRadius(0,0,0,0);
```

**Changing the default corner radius**

```C#
	Office2016TouchPalette.Palette.CornerRadius = new CornerRadius(3); 
	Office2016TouchPalette.Palette.CornerRadiusBottom = new CornerRadius(0, 0, 3, 3);
	Office2016TouchPalette.Palette.CornerRadiusLeft = new CornerRadius(3, 0, 0, 3);
	Office2016TouchPalette.Palette.CornerRadiusRight = new CornerRadius(0, 3, 3, 0);
	Office2016TouchPalette.Palette.CornerRadiusTop = new CornerRadius(3, 3, 0, 0);
```

> caption Setting corner radius

![Telerik UI for WPF Office 2016 Touch theme corner radius setting](https://www.telerik.com/products/wpf/documentation/assets/dec06e826e13de1aff7c238c316546c4/common-styling-appearance-office2016touch-theme-5.png)

## Using Glyphs

The font glyphs that have been introduced with the Office2016 theme are built-in for the Office2016Touch theme as well. They provide a number of ready-to-use vector icons from the `TelerikWebUI` font. You can learn more about them and the usage from the [Telerik font glyph overview for WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/glyphs/common-styles-appearance-glyphs-overview).

## Changing Opacity

You can easily change the opacity of any disabled element by using the `DisabledOpacity` property of the `Office2016TouchPalette`. The default value of the property is **0.5**.

**Changing the disabled opacity**

```C#
	Office2016TouchPalette.Palette.DisabledOpacity = 0.3;
```

> caption Setting the disabled opacity

![Telerik UI for WPF Office 2016 Touch theme disabled opacity setting](https://www.telerik.com/products/wpf/documentation/assets/8436f09760472d06d572dd5ec20c7a6d/common-styling-appearance-office2016touch-theme-6.png)

## Merging Modified Palette Resources With StyleManager Theming Approach

When modifying fonts, colors, or other resources from the `Office2016TouchPalette` and `StyleManager` is used as theming mechanism, the theme's `ResourceDictionary` needs to be merged in **App.xaml** file to apply the changes.

**Merging the theme's ResourceDictionary in App.xaml**

```XAML
	<Application.Resources> 
	    <ResourceDictionary> 
	        <ResourceDictionary.MergedDictionaries> 
	            <telerik:Office2016TouchResourceDictionary/> 
	        </ResourceDictionary.MergedDictionaries> 
	    </ResourceDictionary> 
	</Application.Resources>
```

## See Also

* [Setting a Theme (Using  Implicit Styles)](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Office2016 Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016)
* [VisualStudio2013 Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/visualstudio2013)
* [Green Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/green)
