XF5 Prev4: PopUp with ListView / CollectionView not working #2266
Replies: 6 comments
-
Generally with issues like this it's best to have a sample app that people can look at to run and help you see what you're doing wrong or identify an actual bug if one exists. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. I'll try to provide the example. |
Beta Was this translation helpful? Give feedback.
-
Here we go: https://github.com/Tum4ik/prism-dialogservice-problem However, you can force it to show the text via "Hot reload": <!-- From --><TextCell Text="{Binding}" TextColor="Black"/>
<!-- To --><TextCell Text="{Binding .}" TextColor="Black"/> You will see the text appears in the list view items. |
Beta Was this translation helpful? Give feedback.
-
So, can anybody please say what it is? Should we create a bug may be? @dansiegel @brianlagunas |
Beta Was this translation helpful? Give feedback.
-
Wow, got it working via changing <!-- From --><TextCell Text="{Binding}" TextColor="Black"/>
<!-- To --><TextCell Text="{Binding BindingContext, Source={RelativeSource Self}}" TextColor="Black"/> So strange... Also I have a real project and now the data template looks like: <DataTemplate>
<ViewCell x:Name="ViewCell">
<Grid ColumnDefinitions="Auto, *">
<skia:SKCanvasView Grid.Column="0" />
<Label Grid.Column="1"
Text="{Binding BindingContext, Source={x:Reference ViewCell}, Converter={StaticResource SupportedLocalizationToNativeNameConverter}}"
HorizontalTextAlignment="End"
VerticalTextAlignment="Center" />
</Grid>
</ViewCell>
</DataTemplate>
|
Beta Was this translation helpful? Give feedback.
-
It seems to me that the binding inside the data template at the initialization is connected to the dialog binding context instead of view cell binding context. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have successfully implemented the IDialogService into my App to have modal Dialogs.
Now I wanted to develop a DialogPicker that includes a ListView or a CollectionView for the Items to pick.
But when I do that, the Page is showing up but contains nothing at all, I mean not even the Label.
This does not work:
This works:
<Label Text="Test"/>
I don´t know yet if it is a bug, a missing feature or myself. I wanted to start with a simple question...
Beta Was this translation helpful? Give feedback.
All reactions