Questions tagged [calcbinding]

CalcBinding is a XAML markup extension, a multibinding which can perfom different algebraic and logical operations.

References

3 questions
2
votes
0 answers

Set maximum height of control based on height of other controls (using CalcBinding)

I have a TextBlock and three Grids, contained inside another Grid. Each inner grid contains a TextBlock in the first row and DataGrid in the second. The data in the datagrids has a variable number of records.
mcalex
  • 6,628
  • 5
  • 50
  • 80
1
vote
0 answers

How to use CalcBinding in XAML

I have two text boxes Quantity and PricePerItem and a TextBlock named as TotalTb. What i want is multiply Quantity with PricePerItem and reflect result in TextBlock using CalcBinding. Will i've to create respective properties at backend ? or Apply…
Hammas
  • 29
  • 1
  • 7
0
votes
1 answer

How to convert number in string using ternary operator and CalcBinding extension for XAML

I have a TextBlock element and a Quantity (int) property. I want to convert the value to a string. The conversion must be like this: Quantity == 0 ? "" : Quantity I'm trying to use the CalcBinding extension, but I wasn't able to write the…
Relok
  • 301
  • 4
  • 14