Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Make grid as a style or template

$
0
0

Hi everyone,

I'm making an application which has 3 windows with the same main grid definition

<Grid><Grid.RowDefinitions><RowDefinition Height="Auto" /><RowDefinition Height="Auto" /><RowDefinition Height="*" /><RowDefinition Height="28" /></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinition Width="Auto" /><ColumnDefinition Width="200" /></Grid.ColumnDefinitions></Grid>

I can copy grid definition code from one page to another . But I actually want to make this as a style , therefore, I don't have to copy the code from one xaml file to another . I just have to use : Style = {DynamicResource BasicGrid}

Can I do that ? And how ?
Please help me

Thank you ,


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>