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

.fluenttheme-accentcolor-light {
	background: #0099BC;
}
.fluenttheme-accentmouseovercolor-light {
	background: #00BFE8;
}
.fluenttheme-accentpressedcolor-light {
	background: #0087A4
}
.fluenttheme-accentfocusedcolor-light {
	background: #15D7FF;
}
.fluenttheme-basiccolor-light {
	background: #CCCCCC;
}
.fluenttheme-basiccolor-dark {
	background: #FFFFFF;
}
.fluenttheme-basicsolidcolor-light {
	background: #CCCCCC;
}
.fluenttheme-basicsolidcolor-dark {
	background: #4C4C4C;
}
.fluenttheme-iconcolor-light {
	background: #333333;
}
.fluenttheme-iconcolor-dark {
	background: #FFFFFF;
}
.fluenttheme-maincolor-light {
	background: #E6E6E6;
}
.fluenttheme-maincolor-dark {
	background: #FFFFFF;
}
.fluenttheme-markercolor-light {
	background: #000000;
}
.fluenttheme-markercolor-dark {
	background: #FFFFFF;
}
.fluenttheme-markermouseovercolor-light {
	background: #000000;
}
.fluenttheme-validationcolor-light {
	background: #E81123;
}
.fluenttheme-complementarycolor-light {
	background: #CCCCCC;
}
.fluenttheme-complementarycolor-dark {
	background: #333333;
}
.fluenttheme-mouseovercolor-light {
	background: #CCCCCC;
}
.fluenttheme-mouseovercolor-dark {
	background: #FFFFFF;
}
.fluenttheme-pressedcolor-light {
	background: #B3B3B3;
}
.fluenttheme-pressedcolor-dark {
	background: #FFFFFF;
}
.fluenttheme-alternativecolor-light {
	background: #F2F2F2;
}
.fluenttheme-alternativecolor-dark {
	background: #2B2B2B;
}
.fluenttheme-markerinvertedcolor-light {
	background: #FFFFFF;
}
.fluenttheme-primarycolor-light {
	background: #FFFFFF;
}
.fluenttheme-primarybackgroundcolor-light {
	background: #FFFFFF;
}
.fluenttheme-primarybackgroundcolor-dark {
	background: #000000;
}
.fluenttheme-primarymouseovercolor-light {
	background: #FFFFFF;
}
.fluenttheme-readonlybackgroundcolor-light {
	background: #FFFFFF;
}
.fluenttheme-readonlybordercolor-light {
	background: #CDCDCD;
}
.fluenttheme-readonlybordercolor-dark {
	background: #4C4C4C;
}

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

# Fluent Theme

The `Fluent theme` comes with built-in elements that provide interaction feedback, with easy-to-customize colors and beautiful interpretation of the Fluent design system.

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

* [Default Theme Colors](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#default-theme-colors)
* [FluentPalette Properties](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#fluentpalette-properties)
* [Changing Palette Colors](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-palette-colors)
* [Changing Theme Variation](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-theme-variation)
* [Changing Font Properties](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-font-properties)
* [Using Glyphs](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#using-glyphs)
* [Changing Corner Radius](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-corner-radius)
* [Visual Helpers](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#visual-helpers)
* [Fluent Control](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#fluent-control)
* [Changing ScrollBarsMode](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-scrollbarsmode)
* [Changing Opacity](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/fluent#changing-opacity)

## Default Theme Colors

The `Fluent` theme has two color variations, that are designed to be easily modified via the exposed colors in the theme palette.

The default values of the colors in the theme are listed below:

| Color name              | Light     |                                                                                   | Dark      |                                                                                   |
| ----------------------- | --------- | --------------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------- |
| AccentColor             | #FF0099BC | <div class="theme-palette-color fluenttheme-accentcolor-light"></div>             | #FF0099BC | <div class="theme-palette-color fluenttheme-accentcolor-light"></div>             |
| AccentMouseOverColor    | #FF00BFE8 | <div class="theme-palette-color fluenttheme-accentmouseovercolor-light"></div>    | #FF00BFE8 | <div class="theme-palette-color fluenttheme-accentmouseovercolor-light"></div>    |
| AccentPressedColor      | #FF0087A4 | <div class="theme-palette-color fluenttheme-accentpressedcolor-light"></div>      | #FF0087A4 | <div class="theme-palette-color fluenttheme-accentpressedcolor-light"></div>      |
| AccentFocusedColor      | #FF15D7FF | <div class="theme-palette-color fluenttheme-accentfocusedcolor-light"></div>      | #FF15D7FF | <div class="theme-palette-color fluenttheme-accentfocusedcolor-light"></div>      |
| BasicColor              | #33000000 | <div class="theme-palette-color fluenttheme-basiccolor-light"></div>              | #4CFFFFFF | <div class="theme-palette-color fluenttheme-basiccolor-dark"></div>               |
| BasicSolidColor         | #FFCCCCCC | <div class="theme-palette-color fluenttheme-basicsolidcolor-light"></div>         | #FF4C4C4C | <div class="theme-palette-color fluenttheme-basicsolidcolor-dark"></div>          |
| IconColor               | #CC000000 | <div class="theme-palette-color fluenttheme-iconcolor-light"></div>               | #CCFFFFFF | <div class="theme-palette-color fluenttheme-iconcolor-dark"></div>                |
| MainColor               | #19000000 | <div class="theme-palette-color fluenttheme-maincolor-light"></div>               | #33FFFFFF | <div class="theme-palette-color fluenttheme-maincolor-dark"></div>                |
| MarkerColor             | #FF000000 | <div class="theme-palette-color fluenttheme-markercolor-light"></div>             | #FFFFFFFF | <div class="theme-palette-color fluenttheme-markercolor-dark"></div>              |
| MarkerMouseOverColor    | #FF000000 | <div class="theme-palette-color fluenttheme-markermouseovercolor-light"></div>    | #FF000000 | <div class="theme-palette-color fluenttheme-markermouseovercolor-light"></div>    |
| ValidationColor         | #FFE81123 | <div class="theme-palette-color fluenttheme-validationcolor-light"></div>         | #FFE81123 | <div class="theme-palette-color fluenttheme-validationcolor-light"></div>         |
| ComplementaryColor      | #FFCCCCCC | <div class="theme-palette-color fluenttheme-complementarycolor-light"></div>      | #FF333333 | <div class="theme-palette-color fluenttheme-complementarycolor-dark"></div>       |
| MouseOverColor          | #33000000 | <div class="theme-palette-color fluenttheme-mouseovercolor-light"></div>          | #4CFFFFFF | <div class="theme-palette-color fluenttheme-mouseovercolor-dark"></div>           |
| PressedColor            | #4C000000 | <div class="theme-palette-color fluenttheme-pressedcolor-light"></div>            | #26FFFFFF | <div class="theme-palette-color fluenttheme-pressedcolor-dark"></div>             |
| AlternativeColor        | #FFF2F2F2 | <div class="theme-palette-color fluenttheme-alternativecolor-light"></div>        | #FF2B2B2B | <div class="theme-palette-color fluenttheme-alternativecolor-dark"></div>         |
| MarkerInvertedColor     | #FFFFFFFF | <div class="theme-palette-color fluenttheme-markerinvertedcolor-light"></div>     | #FFFFFFFF | <div class="theme-palette-color fluenttheme-markerinvertedcolor-light"></div>     |
| PrimaryColor            | #66FFFFFF | <div class="theme-palette-color fluenttheme-primarycolor-light"></div>            | #66FFFFFF | <div class="theme-palette-color fluenttheme-primarycolor-light"></div>            |
| PrimaryBackgroundColor  | #FFFFFFFF | <div class="theme-palette-color fluenttheme-primarybackgroundcolor-light"></div>  | #FF000000 | <div class="theme-palette-color fluenttheme-primarybackgroundcolor-dark"></div>   |
| PrimaryMouseOverColor   | #FFFFFFFF | <div class="theme-palette-color fluenttheme-primarymouseovercolor-light"></div>   | #FFFFFFFF | <div class="theme-palette-color fluenttheme-primarymouseovercolor-light"></div>   |
| ReadOnlyBackgroundColor | #00FFFFFF | <div class="theme-palette-color fluenttheme-readonlybackgroundcolor-light"></div> | #00FFFFFF | <div class="theme-palette-color fluenttheme-readonlybackgroundcolor-light"></div> |
| ReadOnlyBorderColor     | #FFCDCDCD | <div class="theme-palette-color fluenttheme-readonlybordercolor-light"></div>     | #FF4C4C4C | <div class="theme-palette-color fluenttheme-readonlybordercolor-dark"></div>      |

> caption Theme colors represented in RadOutlookBar

![Telerik UI for WPF Fluent theme colors represented in RadOutlookBar](https://www.telerik.com/products/wpf/documentation/assets/66ac4b0f65ac43cff969d92737334ca5/fluent-theme-outlook.png)

## FluentPalette Properties

### Transparent Brushes

* `PrimaryBrush`—Used in backgrounds of inputs.
* `MouseOver`—Used for an interaction of buttons.
* `PressedBrush`—Used for interaction of button-like controls.
* `BasicBrush`—Used in the majority of the normal state borders.
* `BasicSolidBrush`—Used for borders in the cases when several would overlap (in complex grid-structured controls) and is calculated automatically when the `BasicBrush` is changed by overlaying it on top of the `PrimaryBackgroundBrush`.
* `MainBrush`—Used for backgrounds of buttons, headers and footers.
* `IconBrush`—Used for glyph and path icons, which should be 80% of black/white and for the light/dark variation respectfully.

### Opaque Brushes

* `PrimaryBackgroundBrush`—Used when backgrounds need to be solid white/black
* `AlternativeBrush`—Used for backgrounds of popups, windows, listboxes etc and is slightly darker/lighter.
* `ComplementaryBrush`—Slightly darker/lighter than the alternative in case of collisions.
* `AccentBrush`—Used for coloring the primary accent elements.
* `AccentMouseOverBrush`—Variation of the `AccentBrush` that is used for the hovered states of primary accent elements.
* `AccentPressedBrush`—Variation of the `AccentBrush` that is used for the pressed states of primary accent elements.
* `AccentFocusedBrush`—Variation of the `AccentBrush` that is used for the focused states of primary accent elements.
* `MarkerBrush`—Used for the majority of foregrounds which are black/white.
* `MarkerInvertedBrush`—Used for interactions states - white in both variations.
* `MarkerMouseOverBrush`—Used for mouse over and focused states of inputs which is black/black.
* `ValidationBrush`—A bright red brush that is used for the invalid elements, and validation tooltips.
* `DisabledOpacity`—Used for texts when they are disabled. Backgrounds are usually `AlternativeBrush` when disabled.
* `InputOpacity`—Used for texts in input controls (`TextBox`, `RadMaskedInput`, etc.) when they are in normal state.
* `ReadOnlyOpacity`—Used for texts in inputs when they are in a read-only state.
* `FocusThickness`—The default value is **2, 2, 2, 2**. It is used for the thickness of the focus border as well as the thickness of the read only borders of inputs where applicable.
* `FontFamily`—The global font family used for the theme. By default it is `Segoe UI`.

## Changing Palette Colors

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

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

Changing the colors can be achieved in code behind.

**Setting palette colors**

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

## Changing Theme Variation

You can switch between the color palettes by calling the LoadPreset method as shown below:

**Changing the color variation of the theme**

```C#
	//default color variation
	FluentPalette.LoadPreset(FluentPalette.ColorVariation.Light);  

	//dark color variation
	FluentPalette.LoadPreset(FluentPalette.ColorVariation.Dark);
```

> important The `Dark` variation of the theme is designed with a dark background in mind and it is recommended to use such a background in your application when working with it.

## Changing Font Properties

When using the `Fluent theme` you can dynamically change the `FontSize` and `FontFamily` properties of all components in the application.

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 with value 12 and can be modified through the `FluentPalette.Palette.FontSize` property in the same manner as in the other themes that support a theme palette.

The default font used in the theme is [Segoe UI](https://www.microsoft.com/typography/fonts/family.aspx?FID=331).

> important For complex scenarios we strongly recommend setting the `FontSize` properties only **before the application is initialized**.

**Default FontSize and FontFamily**

```C#
	FluentPalette.Palette.FontSizeS = 10;
	FluentPalette.Palette.FontSize = 12;
	FluentPalette.Palette.FontSizeL = 13;
	FluentPalette.Palette.FontSizeXL = 14;
	FluentPalette.Palette.FontFamily = new FontFamily("Segoe UI");
```

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

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

> caption Setting FontSize and FontFamily

![Telerik UI for WPF RadCalendar with default font size and font family in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/15afaf3817cc71696ecd0ba4cc5b85b0/fluent-theme-calendar-font-change-1.png)![Telerik UI for WPF RadCalendar with modified font size and font family in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/198b9ab3ad2a495572dd3cd19c92a92d/fluent-theme-calendar-font-change-2.png)

## Using Glyphs

The `Fluent` theme also uses the `Telerik Web UI` [font glyphs](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/glyphs/common-styles-appearance-glyphs-overview) by default. With this theme we are introducing the `RadGlyph` which provides a lightweight, flexible and design-time-friendly implementation of our glyph font.

> You can read more about the RadGlyph in the [RadGlyph Overview article](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/glyphs/common-styles-appearance-glyphs-radglyph) and about the range of the font glyphs in the [Font Glyphs Overview article](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/glyphs/common-styles-appearance-glyphs-reference-sheet).

## Changing Corner Radius

The Fluent Theme exposes an easy way to modify the corner radius of many elements in your application. You can directly use the corner radius property of the palette. By default the `CornerRadius` value is **0**.

**Changing the default corner radius**

```C#
	FluentPalette.Palette.CornerRadius = new CornerRadius(10); 	
```

> caption Appearance of a RadButton control after changing the default corner radius

![Telerik UI for WPF RadButton with a corner radius of 10 in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/5f1e46d91cf564bcfb579785062a69c8/fluent-theme-button-cornerradius.png)

## Visual Helpers

### Acrylic Effect

With the Fluent Theme we are introducting a `ThemeEffectsHelper` static class that is responsible for the iconic transparent and blurred effect that is associated with the design system. The `ThemeEffectsHelper.IsAcrylic` attached property can be applied to a `Window`, `RadWindow`, `Popup` and window-derivate controls to achieve this translucent effect. It is **supported currently only under Windows 10**. In any other operating system it would simply result in a transparent window/popup.

> important For the acrylic effect to properly apply, the control that it is used on needs to be **transparent** (i.e., the Window and Popup controls need to have their `AllowsTransparency` property set to True).

> important The acrylic effect is **disabled** for windows which have their `CornerRadius` property set.

> `ThemeEffectsHelper.IsAcrylicEnabled` is used to turn off globally the setting of the effect and set opaque backgrounds in our controls. You can detect the version of the OS that the application is currently running and disable the effect for versions prior to `Windows 10`. For more information about achieving that you can review the following MSDN articles:

[Windows operating system version reference](https://msdn.microsoft.com/library/windows/desktop/ms724832.aspx) and [Windows application targeting guidance](https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241.aspx) (if the application is not targeting Windows 10, the version number returned would be always 6.2)

> important Applying the `ThemeEffectsHelper.IsAcrylic` to a control could result in unexpected visual issues.

### Material Assist

The `MaterialAssist` static class comes from the Material theme and it is reused in the Fluent theme. It exposes a set of attached properties and can be used to directly modify the appearance of a specific basic control without the need to alter its control template. You can use the following dependency properties directly in XAML:

* `ShadowDepth`—Enum property that indicates the depth of the shadow effect over the control. There are 5 values that can be selected.
* `IsShadowDisabled`—The property is used to control the visibility of the shadow effect.

### Theme Helper

The [ThemeHelper](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/theme-helper) class is used in the Windows11 theme. It exposes a set of attached properties and can be used to directly modify the appearance of a specific basic control without the need to alter its control template.

**Declare the namespace for the helpers**

```XAML
	xmlns:mat="clr-namespace:Telerik.Windows.Controls.MaterialControls;assembly=Telerik.Windows.Controls"
	xmlns:helpers="clr-namespace:Telerik.Windows.Controls.Theming.Helpers;assembly=Telerik.Windows.Controls"
```

**Set RadToggleButton's visual appearance through the helpers**

```XAML
    <telerik:RadToggleButton Content="RadButton" 
                             Margin="10"
                             helpers:ThemeHelper.MouseOverBrush="{telerik:FluentResource ResourceKey=AccentMouseOverBrush}"
                             helpers:ThemeHelper.PressedBrush="{telerik:FluentResource ResourceKey=AccentPressedBrush}"
                             helpers:ThemeHelper.CheckedBrush="{telerik:FluentResource ResourceKey=ValidationBrush}"/>
```

> caption Appearance of the RadToggleButton in the different states

![Telerik UI for WPF RadToggleButton pressed brush in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/4807c0b19aaec7144ea4d0052708e1fe/fluent-theme-togglebutton-pressed-brush.png)![Telerik UI for WPF RadToggleButton mouse-over brush in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/d9756563cd64b0eb6c20a5fe8798a699/fluent-theme-togglebutton-mouseover-brush.png)![Telerik UI for WPF RadToggleButton checked brush in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/eafff9847a441f98713ae027f58962e7/fluent-theme-togglebutton-checked-brush.png)

## Fluent Control

The `FluentControl` is an element designed for the Fluent theme and used to display the interaction of the users with some of the controls. It is mainly used within the template of controls that suggest user actions such as the RadButton, RadToggleButton, etc. It adds "Ripple" and "Glow" effects and exposes several properties which you can use to modify the ripple/glow functionality and its appearance:

* `IsRippleEnabled`—Indicates whether the ripple effect is enabled.
* `IsRippleCentered`—Controls the initial position from where the ripple effect starts. Setting the property to true will cause the effect to always start from the center of the control. Otherwise, the cursor position is respected.
* `IsSmartClipped`—Sets whether the ripple should be within the boundaries of the corner radius.
* `RippleBrush`—Sets the brush used for the ripple effect. The default is a RadialGradientBrush that is moved and transformed runtime.
* `RippleOpacity`—Sets the opacity of the ripple effect.
* `BorderGradient`—Sets the border gradient brush. This brush should be RadialGradientBrush and is cloned in code because it is modified runtime and should not be frozen.
* `EffectMode`—Sets the opacity of the ripple effect mode of the control - Ripple or Glow. The default effect is Ripple.

> caption Ripple effect on RadDropDownButton

![Telerik UI for WPF Fluent theme ripple effect on RadDropDownButton](https://www.telerik.com/products/wpf/documentation/assets/55828eec45cf4b8a1ccb567302a9ae14/fluent-light-dropdown.gif)![Telerik UI for WPF Fluent theme ripple effect on RadDropDownButton with dark variation](https://www.telerik.com/products/wpf/documentation/assets/8ea49b86c16a3dbb2bdbb79b15a31f47/fluent-dark-dropdown.gif)

The following code snippets show how you can integrate the FluentControl with a RadButton

**RadButton's Style declaration**

```XAML
	 <Style TargetType="telerik:RadButton" x:Key="custom">
        <Setter Property="Foreground" Value="{telerik:FluentResource ResourceKey=MarkerBrush}" />
        <Setter Property="Background" Value="{telerik:FluentResource ResourceKey=MainBrush}" />
        <Setter Property="BorderBrush" Value="{telerik:FluentResource ResourceKey=MainBrush}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Padding" Value="10 5" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="MinWidth" Value="64" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadButton">
                    <Grid>
                        <Border Background="{TemplateBinding Background}" />
                        <mat:FluentControl EffectMode="{TemplateBinding Tag}"
                                           BorderThickness="{TemplateBinding BorderThickness}">
                            <ContentPresenter Focusable="False"
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                              TextBlock.Foreground="{TemplateBinding Foreground}"
                                              Margin="{TemplateBinding Padding}"
                                              Content="{TemplateBinding Content}" />
                        </mat:FluentControl>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="{telerik:FluentResource ResourceKey=MouseOverBrush}" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{telerik:FluentResource ResourceKey=PressedBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
```

**RadButton's instancing**

```XAML
     <StackPanel VerticalAlignment="Center">
        <telerik:RadButton VerticalAlignment="Center" Content="Ripple"
                           Tag="{x:Static mat:FluentControlEffectMode.Ripple}"
                           Style="{StaticResource custom}" />
        <telerik:RadButton VerticalAlignment="Center" Content="Glow" Margin="0 10 0 0"
                           Tag="{x:Static mat:FluentControlEffectMode.Glow}"
                           Style="{StaticResource custom}" />
    </StackPanel>
```

> caption FluentControl used within a custom template applied to a RadButton

![Telerik UI for WPF FluentControl in a custom template applied to a RadButton](https://www.telerik.com/products/wpf/documentation/assets/566ab58e2520c209ff6fd35da7fa8333/fluent-theme-light-effect.gif)![Telerik UI for WPF FluentControl in a custom template applied to a RadButton with dark variation](https://www.telerik.com/products/wpf/documentation/assets/4e053c6baf6548cbb9ab64b4120de36d/fluent-theme-dark-effect.gif)

**Disabling the Ripple effect**

```XAML
	 
        
	<Style TargetType="mat:FluentControl" >
		<Setter Property="IsRippleEnabled" Value="False" />
	</Style>
```

## Changing ScrollBarsMode

By default, the scrollbars in the Fluent theme change their size depending on whether the mouse is currently over them. They are normally smaller in size to take less space and become wider when hovered. You have the option of setting the `ScrollBarsMode` property of the Fluent palette in order to control this behavior. It is of type `ScrollViewerScrollBarsMode` and can be set to one of the following values:

* `ScrollViewerScrollBarsMode.Auto`—The ScrollBars appear as a narrow sliver and expand to normal size on MouseOver. This is the default value.
* `ScrollViewerScrollBarsMode.Compact`—The ScrollBars appear always as a narrow sliver.
* `ScrollViewerScrollBarsMode.Normal`—The ScrollBars appear always with their normal size.

> important The `ScrollBarMode` property and the `ScrollViewerScrollBarsMode` enumeration of the FluentPalette, introduced with the  **2019.1.121** version of our dlls, are **obsolete** and **replaced** by the `ScrollBarsMode` property of the palette and the `ScrollViewerScrollBarsMode` enum under the `Telerik.Windows.Controls.Theming` namespace.

> caption ScrollBar behavior in auto, compact and normal ScrollBarsMode

![Telerik UI for WPF ScrollBar in Auto, Compact, and Normal ScrollBarsMode in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/d9611a7f6417148264b3cbe0e494a86e/fluent-light-scrollbarmode.gif)

**Setting the ScrollBarsMode property of the palette to Compact**

```C#
	FluentPalette.Palette.ScrollBarsMode = Telerik.Windows.Controls.Theming.ScrollViewerScrollBarsMode.Compact;
```

## Changing Opacity

If you need to change the opacity of the disabled and read-only elements, you can now easily do so by using the `DisabledOpacity` and **ReadOnlyOpacity** properties of the FluentPalette. The default values are **0.3** and **0.5** respectively.

**Changing the opacity**

```C#
	FluentPalette.Palette.DisabledOpacity = 0.5;
	FluentPalette.Palette.ReadOnlyOpacity = 0.4;
```

```VB.NET
	FluentPalette.Palette.DisabledOpacity = 0.5
	FluentPalette.Palette.ReadOnlyOpacity = 0.4
```

## Merging Modified Palette Resources With StyleManager Theming Approach

When modifying fonts, colors, or other resources from the `FluentPalette` 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:FluentResourceDictionary/> 
	        </ResourceDictionary.MergedDictionaries> 
	    </ResourceDictionary> 
	</Application.Resources>
```

## See Also

* [Apply the Fluent Theme with Implicit Styles](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Configure WPF Themes with StyleManager](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/stylemanager/common-styling-apperance-setting-theme-wpf)
* [Use Telerik Font Glyphs in WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/glyphs/common-styles-appearance-glyphs-overview)
* [Customize the Office2016 Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/office2016)
* [Customize the Material Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/material)
