Posted
Hello, here is a custom toggle style i made which you can modify or anything!
Here is what it looks like
https://cdn.discordapp.com/attachments/1127174466645000213/1140291424944930876/Untitled_video_-_Made_with_Clipchamp_5.mp4
<Style TargetType="ToggleButton">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Border Name="ToggleBackground" Width="40" Height="20" CornerRadius="10" Background="#FF2C2037">
<Grid>
<Ellipse Name="CircleInside" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="#FF8E5DBC" Width="10" Height="10"></Ellipse>
</Grid>
</Border>
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Checked">
<BeginStoryboard>
<Storyboard>
<ThicknessAnimation Duration="0:0:0:0.2" Storyboard.TargetName="CircleInside" Storyboard.TargetProperty="Margin" From="5,0,0,0" To="25,0,0,0"></ThicknessAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="Unchecked">
<BeginStoryboard>
<Storyboard>
<ThicknessAnimation Duration="0:0:0:0.2" Storyboard.TargetName="CircleInside" Storyboard.TargetProperty="Margin" From="25,0,0,0" To="5,0,0,0"></ThicknessAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
- Updated circle to elipse
- Updated and added animations
Cancel
Post
Owner @Pluto - The Best Executor, External and Script Hub
Download Here! - https://pluto.ad
Replied
use an ellipse instead of a rounded border if you want to make a circle
Cancel
Post
Replied
This is definitely the wrong category to post this in, also it's not even animated
Comments
Cancel
Post
nltr | Wpf/C# & Cpp Developer | Former Fluxus Administrator------------------------------------------------------------------------------------💜 Developer of Kronos 💜
Replied
vouuch vouch vouch great work colors match n overall looks clean tbh
Cancel
Post
Replied
it isn't that hard 5/10 medium vouch
Cancel
Post
Failed to fetch.
Users viewing this thread:
( Members: 0, Guests: 0, Total: 0 )
Comments
Pluto_Guy 40 Reputation
Commented
ye, just realised that. Its more perfect if you use that
0
Added
@kxhu Ye your right.
0
TERIHAX 30 Reputation
Commented
@Kxhu yes but if you're looking for a circle use an ellipse
0