I need to define a global style for all TextBlock and TextBox that exist within ItemsControl elements.
I need all the TextBlock elements to have a Width of 100 and Left aligned, and the TextBox elements to have a width of 50 and to be Right aligned.
How can I achieve this?
I don’t understand your “that exist within ItemsControl elements” but if you are talking about your ItemsTemplate it should work like this
This will display all items in your ItemsControl with a textbox which uses your myTextBoxStyle and your textblock with the myTextBlockStyle.