This is my xaml code where I have two fields placed under a template column.
Now I am getting the format in such a way that I can specify the place in these 2 columns.
color red image 1 green image 2 green image 2 white image 6
so that the output looks good.
How can I define the space between the two so that it looks like the above
The thw output is like this now
& lt; Sdk: DataGridTemplateColumn header = "color" width = "80" & gt; & Lt; SDK: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; StackPanel Loaded = "StackPanel_loaded" Orientation = "Horizontal" Background = "Transparent" & gt; & Lt; TextBlock Text = "{binding color}" textwapping = "navap" horizontal alignment = "center" foreground = "blue" & gt; & Lt; / TextBlock & gt; & Lt; Image x: name = "imgTargetScore" source = "{binding color image}" width = "20" height = "20" extension = "fill" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; / SDK: DataGridTemplateColumn.CellTemplate & gt; & Lt; / SDK: DataGridTemplateColumn & gt;
Post text "itemprop =" text " >
You must enter a small margin
on your text block and / or image controls:
This example provides a 5px margin on the right edge of TextBlock If you want your images to stand up, you can add text block to By default, it can be created only as that text.
Comments
Post a Comment