WPF provided a property called SharedSizeGroup which allows sizing properties shared between ColumnDefinition or RowDefinition.
And remeber to set Grid.IsSharedSizeScope="True".
However , when we want one column take up all the available space, like the example above. You will find out that even you write Width="*" still doesn't work as SharedSizeGroup will make it as short as possible.
My solution is , Shared all the columns size except the one contain TextBox.
<Grid Grid.IsSharedSizeScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid Name="Grid1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" SharedSizeGroup="a" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" SharedSizeGroup="c"/>
<ColumnDefinition Width="auto" SharedSizeGroup="d"/>
</Grid.ColumnDefinitions>
....
</Grid>
<Grid Name="Grid2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" SharedSizeGroup="a" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" SharedSizeGroup="c"/>
<ColumnDefinition Width="auto" SharedSizeGroup="d"/>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" SharedSizeGroup="a" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" SharedSizeGroup="c"/>
<ColumnDefinition Width="auto" SharedSizeGroup="d"/>
</Grid.ColumnDefinitions>
.........
</Grid>
great
ReplyDeleteGreat Article Artificial Intelligence Projects
DeleteProject Center in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
ReplyDeleteor Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.
Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
ReplyDeleteData Science Training in Indira nagar
Data Science Training in btm layout
Data Science Training in Kalyan nagar
Data Science training in Indira nagar
Data science training in bangalore
Nice blog,I understood the topic very clearly,And want to study more like this.
ReplyDeleteData Scientist Course
I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!
ReplyDeletedata science course
The Blog is really very Impressive. every concepts are arranged very neatly.easily clarify the queries for the beginners.
ReplyDeleteData Science Training Course In Chennai | Data Science Training Course In Anna Nagar | Data Science Training Course In OMR | Data Science Training Course In Porur | Data Science Training Course In Tambaram | Data Science Training Course In Velachery
cool stuff you have and you keep overhaul every one of us
ReplyDeleteSimple Linear Regression
Correlation vs Covariance
I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
ReplyDeletedata science interview questions
Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteCorrelation vs Covariance
Simple linear regression
data science interview questions
Attend The Data Scientist Courses From ExcelR. Practical Data Scientist Courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Scientist Courses. Data Scientist Courses
ReplyDeleteVery nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data sciecne course in hyderabad
ReplyDeleteI have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
ReplyDeletedata science interview questions