UWP Double Değerli Thickness Oluşturma

486759

Hectopat
Katılım
21 Nisan 2020
Mesajlar
1.123
Çözümler
7
XML:
<Thickness Left="{StaticResource SomeDouble}" Top="0" Right="0" Bottom="0" />

Yukarıdaki kod tarzı bir thickness oluşturmak istiyorum fakat bu şekilde kullanmayı denediğimde derleyici hata vermekte.
Sadece belirtilen köşeye (Top,Left,Right,Bottom) double değeri ile nasıl thickness oluşturabilirim?

Alınan hata:
XAML Thickness type cannot be constructed. In order to be constructed in XAML, a type cannot be abstract, interface, nested, generic or a struct, and must
 

Bu konuyu görüntüleyen kullanıcılar

Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…