WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

Overlays and animations to focus on keys areas

Open HesamKashefi opened this issue 9 years ago • 54 comments

An App Tour Guide , Like what android has , is extremely needed. We need to have some kind of tutorial for or users on how to use our application,... . android shows an spectacular animation on it! I wanted to implement this myself but It's too hard for me!

HesamKashefi avatar Jan 05 '17 05:01 HesamKashefi

See #754 https://github.com/Microsoft/UWPCommunityToolkit/issues/754

hermitdave avatar Jan 05 '17 06:01 hermitdave

@hermitdave as you can see here : https://github.com/amlcurran/ShowcaseView your Suggestion is irrelevant ! I knew how to create a simple FlipView or a help page for my app as I've done it already! I want something like this : https://github.com/amlcurran/ShowcaseView if I'm the only one who wants this on UWP then I'll try to create it on my own!

HesamKashefi avatar Jan 05 '17 08:01 HesamKashefi

You meant custom overlays! I have nothing for or against it. You could create something like this and raise a PR

hermitdave avatar Jan 05 '17 08:01 hermitdave

@hermitdave Yes , But as I said currently I may not be able to make such a thing! and this is something useful for everyone , that's why I want it to be inside the communityToolkit! It's obvious it can improve windows store!

HesamKashefi avatar Jan 06 '17 05:01 HesamKashefi

I will reopen this for now. if there is any traction towards this we will see it added

hermitdave avatar Jan 06 '17 07:01 hermitdave

@hermitdave If I understand correctly, it's simply a translucent container (ex: Grid) that is on top of the current view ?

Odonno avatar Jan 06 '17 07:01 Odonno

If I needed something like this, it would be a combination of Grid with background plus opacity, some elements - ellipses / rectangles, Text and a button.

hermitdave avatar Jan 06 '17 08:01 hermitdave

@hermitdave I think that the elements are just part of the Content, I mean a DataTemplate. Am I wrong ?

Odonno avatar Jan 06 '17 09:01 Odonno

new ShowcaseView.Builder(this)
    .setTarget(new ActionViewTarget(this, ActionViewTarget.Type.HOME))
    .setContentTitle("ShowcaseView")
    .setContentText("This is highlighting the Home button")
    .hideOnTouchOutside()
    .build();

I think above is specifying a UIElement that is the point of focus, there is a text associated with the overlay and possibly call to render it.

hermitdave avatar Jan 06 '17 09:01 hermitdave

@hermitdave In the android when they pass "this" they can simply Inflate (add) a layout (view) into it! I think this takes all of the view and adds those Views and animations to it. I thought I may be able to implement a custom content control that holds all of the page and then using the Attached Properties some how mimic the same behavior but it seems to be a wrong approach.

HesamKashefi avatar Jan 06 '17 15:01 HesamKashefi

@HesamKashefi I like the idea of attached properties however this would have to be the last item on visual tree. how you'd consume it from XAML easily is something to think about

hermitdave avatar Jan 06 '17 16:01 hermitdave

It's still unclear to me what this attached property will do. Are we just talking about a transparent grid? What are the services provided by this property?

deltakosh avatar Jan 06 '17 16:01 deltakosh

https://github.com/amlcurran/ShowcaseView/blob/master/[email protected]

hermitdave avatar Jan 06 '17 16:01 hermitdave

the discussion is about a control that has a grid with opacity and background and that has optional text and button to hide it away

hermitdave avatar Jan 06 '17 16:01 hermitdave

isn't it too simple to be promoted as a control?

deltakosh avatar Jan 06 '17 16:01 deltakosh

errr yes that why I said if it gets traction

hermitdave avatar Jan 06 '17 16:01 hermitdave

Ok we are on the same page :D

deltakosh avatar Jan 06 '17 16:01 deltakosh

@deltakosh Actually I want it to be similar as what is provided here:https://github.com/amlcurran/ShowcaseView if you have an android phone you may have seen that most of the apps are using this. it's like a signature! every user is familiar with it! and it is created by just a few lines of code! I don't want it to be created from zero in every project! and for every single usage in each page

HesamKashefi avatar Jan 06 '17 17:01 HesamKashefi

Well, let's say I need to be convinced ;)

deltakosh avatar Jan 06 '17 18:01 deltakosh

That reminds me now of some notification / alert design that appeared on Windows 10.

Well, an image would be better but I assume you have seen them at least one time. They are some notifications like "how to use Cortana" or "how to draw on Edge". A little black notification that appear anywhere on the screen.

Odonno avatar Jan 06 '17 18:01 Odonno