ReactiveUI icon indicating copy to clipboard operation
ReactiveUI copied to clipboard

ReactiveUI.XamForms xaml design not render in VS2019 xaml previewer

Open csharpq opened this issue 7 years ago • 6 comments

Hi,

I am working on mobile application using Xamarin.Forms and ReactiveUI, and noticed that the UI design is not rendering in XAML previewer using visual studio 2019.

See attach screenshot. Thanks. :)

Capture

csharpq avatar Apr 11 '19 08:04 csharpq

This is an issue with any view class that has a "x:TypeArguments" inside of it not just from ReactiveUI.

glennawatson avatar May 12 '19 09:05 glennawatson

Going to close this issue since it's more of a Microsoft xaml issue. Pain I know.

glennawatson avatar May 13 '19 08:05 glennawatson

Hi,

I am working on mobile application using Xamarin.Forms and ReactiveUI, and noticed that the UI design is not rendering in XAML previewer using visual studio 2019.

See attach screenshot. Thanks. :)

Capture

Have you found a solution to this issue? Maybe you logged a bug/issue at Xamarin repo? (Link?) Thanks

tenninebt avatar May 14 '19 06:05 tenninebt

Would recommend opening one if you want to persue it with Microsoft. Lodging a bug in our repo does not automatically start one with theirs.

glennawatson avatar May 14 '19 08:05 glennawatson

@glennawatson We know, but at least 2 people ended up here (Probably more would have come here if the issue contained the error message in text format instead of image), it was worth asking if anyone did anything about it (Log a bug, find a workaround...), before going further or create duplicates. But I understand your point.

Anyway, so after some research, adding the following attribute [DesignTimeVisible(true)] to the view class (UserInfoView) seems to do the trick. Works with VS2019 Mac Preview version (8.1 Preview 2306), and in the current stable (8.0.5 build 9). Hope it helps.

tenninebt avatar May 14 '19 09:05 tenninebt

Awesome. If it keeps your issue resolved will add stuff to the docs.

glennawatson avatar May 14 '19 10:05 glennawatson