-
i wand to spawn Usercontrol inside GridView and i wand to set Usercontrol Bindings like TextBlock.Text, Image.Source |
Beta Was this translation helpful? Give feedback.
Answered by
RSReswin
Dec 11, 2024
Replies: 3 comments
-
<ScrollViewer HorizontalScrollMode="Disabled"
VerticalScrollMode="Enabled"
VerticalScrollBarVisibility="Hidden"
HorizontalScrollBarVisibility="Hidden"
Padding="15,0,0,0">
<GridView Margin="0,20,0,0">
<GridView.ItemContainerStyle>
<Style TargetType="GridViewItem"
BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="16, 16, 16, 16"/>
</Style>
</GridView.ItemContainerStyle>
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid MaximumRowsOrColumns="2"
Orientation="Horizontal"/>
</ItemsPanelTemplate>
</GridView.ItemsPanel>
<cards:Book/>
</GridView>
</ScrollViewer>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
i done may R&D in google but i not get any proper result! |
Beta Was this translation helpful? Give feedback.
0 replies
-
<gridView x:Name="MyGridView"/> MyGridView.Items.Add(new YourUserControlClassName()); Issue Fixed By @mikernet tq! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RSReswin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Fixed By @mikernet tq!