Strange DependencyProperty value
Posted: 26 Jun 2018, 16:19
Hi,
I have created a UserControl to show images when provided an url but the strange thing is that sometimes for the value I get "Noesis::BaseComponent]", and before that I got ".?AVBaseComponent@Core@Noesis@@".
The xaml looks like this
where SelectedArticle.PreviewUrl is an array of strings.
I have a hack to avoid this but I was curious to see if this is a bug in my code or noesis.
The cv:ImagePreview is my user control to display the image.
The dependency property is defined like this
I have an older version of Noesis 2.1.0rc2 but I didn't see something like this fixed in the release notes. But it could also be that I didn't read the release notes thoroughly 
I have created a UserControl to show images when provided an url but the strange thing is that sometimes for the value I get "Noesis::BaseComponent]", and before that I got ".?AVBaseComponent@Core@Noesis@@".
The xaml looks like this
Code: Select all
<ItemsControl ItemsSource="{Binding SelectedArticle.PreviewUrl}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="0, 6, 0, 6">
<cv:ImagePreview ImageUrl="{Binding}"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
I have a hack to avoid this but I was curious to see if this is a bug in my code or noesis.
The cv:ImagePreview is my user control to display the image.
The dependency property is defined like this
Code: Select all
public static DependencyProperty ImageUrlProperty = DependencyProperty.Register("ImageUrl", typeof(string), typeof(ImagePreview),
new FrameworkPropertyMetadata("", new PropertyChangedCallback(imageUrlChanged)));