开发者

Active code in XAML properties

开发者 https://www.devze.com 2023-01-05 22:32 出处:网络
I have a situation where I wantUIElement to have a 开发者_如何学Gotop margin of ((this.height / 2) - 70)

I have a situation where I want UIElement to have a 开发者_如何学Gotop margin of

((this.height / 2) - 70) 

Currently, the XAML property is

Margin="0, 40, 0, 0"

How can I combine the equation above into my XAML? I know this is probably simple, but I can't figure out what terms to search for.


Have a look at ExpressionConverter from Josh Twist -

http://www.thejoyofcode.com/The_Binding_you_wanted_from_day_one_in_WPF.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消