Created
June 11, 2014 07:26
-
-
Save odugen/7e9cef872a853d48b03f to your computer and use it in GitHub Desktop.
WPF HorizontalHeaderedContentControl style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Window.Resources> | |
| <Style TargetType="{x:Type HeaderedContentControl}"> | |
| <Setter Property="Template"> | |
| <Setter.Value> | |
| <ControlTemplate TargetType="{x:Type HeaderedContentControl}"> | |
| <Grid Margin="4"> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="Auto" MinWidth="172"/> | |
| <ColumnDefinition Width="8" /> | |
| <ColumnDefinition Width="*" /> | |
| </Grid.ColumnDefinitions> | |
| <ContentPresenter ContentSource="Header" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="0"/> | |
| <ContentPresenter Grid.Column="2"/> | |
| </Grid> | |
| </ControlTemplate> | |
| </Setter.Value> | |
| </Setter> | |
| </Style> | |
| </Window.Resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment