2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

押したパネルの色を変更する

Posted at

今回はパネルを押すと色を変える方法について書かせていただきます。

まずはGalleryコントロール(縦でも横でも可)を配置して折り返しを5とします。
ItemプロパティにはおなじみのSequenceを利用して

Sequence(25)

としてテンプレートにLabelコントロールを配置、大きさをマス目いっぱいにします。

image.png

そしてLabelコントロールOnSelectプロパティ

UpdateContext({locPush:ThisItem.Value})

と記述して

LabelコントロールFillプロパティには適当に

If(locPush=ThisItem.Value,RGBA(253,222,207,0.5),RGBA(0, 0, 0, 0))

と記述することで
パネルを押すと
image.png
こんな感じになる。

これをうまく利用してGalleryの後ろに絵を持ってくることで
image.png
このようなKYアプリを作成することができる!

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?