KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This is quite easy to do from code-behind: var button = new Button(); var margin = button.Margin; margin.Right = 10; button.Margin = margin; In XAML, however, I'm limited to the following: <Button Margin="0,0,10,0" /> The problem with this is that now I've potentially overwritten the other margin values (i.e. left, top, bottom) by setting them to zero). Is there any way to have XAML like the following? <Button MarginRight="10" />
Tags (comma-separated)
Save Edits
Cancel