I've a question for control's Margin value?WXWH Xu14yAsked Aug 26, 2012, 11:06 PM1.5kI use canvas to build a float ,this float can change position of top or bottom with a button.How can I set and get margin value of canvas?so poor english.. Foreground="White" FontSize="12" FontFamily="SimSun" BorderThickness="0" Background="{x:Null}" Margin="160,0,0,0" HorizontalContentAlignment="Center" BorderBrush="{x:Null}" Padding="0" > Command="{Binding OnDetailShown}" CommandParameter="{Binding ElementName=btnShowDetail}"/> Command="{Binding OnDetailHidden}" CommandParameter="{Binding ElementName=btnShowDetail}" /> Height="185" Width="504" Opacity="1" Visibility="{Binding DetailVisibility}" Canvas.Left="-357.416" Canvas.Top="25" d:LayoutOverrides="Width"> RepliesKnow the answer? Post it — somebody with the same question will find it here.Sign in to answer this questionIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account