Alex141 / CalcBinding

Advanced WPF Binding which supports expressions in Path property and other features
Apache License 2.0
638 stars 79 forks source link

Use in Column/RowDefinition using '*' #62

Open erksch opened 4 years ago

erksch commented 4 years ago

Hey there, thank you for the awesome library!

Is there a way to use calc binding with RowDefinition or ColumnDefinition that use the * notation like

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="0.3*" />
    <ColumnDefinition Width="0.7*" />
</Grid.ColumnDefinitions>

where I would like to use a CalcBinding like this

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="{c:Binding (Value + \*)}" />
    <ColumnDefinition Width="{c:Binding ((1 - Value) + \*)}*" />
</Grid.ColumnDefinitions>

Is there some way to do this?