See screenshot. The blue bounding box is the button, and the blue fill is the box. I can’t understand for my whole life how to get rid of the gasket in the button. Is there a way to place a rectangle in the upper left corner so that it touches the blue border?
Thank.
Have you tried setting the marker Rectangleon 0?
Rectangle
0
<Button x:Name="Button" BorderThickness="0" Margin="0" Padding="0" Width="96" Height="96"> <Rectangle Fill="Blue" Margin="0" Width="96" Height="96" /> </Button>
EDIT . Indents should come from a button control pattern. Try using a custom template:
<Style x:Key="MyButton" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid> <Rectangle Fill="Blue" Margin="0" Width="96" Height="96" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <Button x:Name="Button" BorderThickness="0" Margin="0" Padding="0" Width="96" Height="96" Style="{StaticResource MyButton}" />
:
onclick .
, , Windows Phone?
, , , , , Padding, "PhoneTouchTargetOverhang". Thickness, App.xaml "PhoneButtonBase" Margin .
Padding
Thickness
Margin
, Windows Phone 7 . , , "PhoneButtonBase", "PhoneTouchTargetOverhang". , .
Source: https://habr.com/ru/post/1770042/More articles:check for a variable in sight using a code igniter - codeigniterfill out the form automatically - c #Is there a way in vi / vim to make Visual Block Mode without pipeline restrictions? - vimGNU Prolog - recursion problem (easy?) - recursionWhen is Scala going to trash? - garbage-collectionjava xml validation: getting a better description of validation error - javaIs the malloc return value a virtual or physical address? - cDelete expression - c ++Google spreadsheet as db for web applications - google-spreadsheetproblem to set application name in android? - androidAll Articles