Complete WPF Overview Tutorial with Example - iFour Technolab

Page 106

Style Levels

â?‘

Sr.No

Levels & Description

1

Control Level Defining a style on control level can only be applied to that particular control. Given below is an example of a control level where the button and TextBlock have their own style.

2

Layout Level Defining a style on any layout level will make it accessible by that layout and its child elements only.

3

Window Level Defining a style on a window level can make it accessible by all the elements on that window.

4

Application Level Defining a style on app level can make it accessible throughout the entire application. Let’s take the same example, but here, we will put the styles in app.xaml file to make it accessible throughout application.

https://www.ifourtechnolab.com/wpf-software-development


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.