# Create custom ToggleControl

**URL:** <https://forums.fusetools.com/t/create-custom-togglecontrol/2257>\
**Category:** How-to Discussions\
**Created:** [February 18, 2017, 9:51pm UTC](https://forums.fusetools.com/t/create-custom-togglecontrol/2257 "2017-02-18T21:51:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn-Olav\_Strand](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bjorn-olav_strand/32/583_2.png) [@Bjorn-Olav\_Strand](https://forums.fusetools.com/u/Bjorn-Olav_Strand)\
**Post date:** [February 18, 2017, 9:51pm UTC](https://forums.fusetools.com/t/create-custom-togglecontrol/2257/1 "2017-02-18T21:51:08Z")

</div>

Hi,

I’m trying to create a ToggleControl like `Basic.Switch`. So I tried to use `Fuse.Basic.SwitchBehavior` but it is `Internal`. Trying to reimplement it I get

```auto
SwitchBehavior.uno(25.11): E4040: Fuse.Gestures.Clicker is not accessible from My.SwitchBehavior
SwitchBehavior.uno(39.23): E4040: Fuse.Gestures.Clicker is not accessible from 'My.SwitchBehavior.OnRooted()'
SwitchBehavior.uno(40.25): E4040: Fuse.Gestures.ClickerEventHandler is not accessible from 'My.SwitchBehavior.OnRooted()'
SwitchBehavior.uno(58.25): E4040: Fuse.Gestures.ClickerEventHandler is not accessible from 'My.SwitchBehavior.OnUnrooted()'
SwitchBehavior.uno(59.13): E4040: Fuse.Gestures.Clicker is not accessible from 'My.SwitchBehavior.OnUnrooted()'

```

What is the correct way to do this?

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [February 21, 2017, 3:46pm UTC](https://forums.fusetools.com/t/create-custom-togglecontrol/2257/2 "2017-02-21T15:46:01Z")

</div>

Hi!

It’s probably easier to just make it using `SwipeGesture` instead like we’ve done in this example:  
[https://www.fusetools.com/examples/swipe-toggle](https://www.fusetools.com/examples/swipe-toggle)
