FabiCrafter
FabiCrafter
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
Adding IsDirectionReversed="True" to my Track attribute fixed the issue. Thanks guys.
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
I've just tried that, but unfortunately ChatGPT 3.5 doesn't seem to have a solution for my problem
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
I have no clue why this happened
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
Okay, do you have any idea how to fix it?
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
alright
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
Or do you need more?
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
It's just XAML code for the design, I'll add the C# code and all functions later
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
Sure, one moment
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
Thanks, let's see what he's saying 🙂
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
No description
21 replies
CC#
Created by FabiCrafter on 11/19/2023 in #help
WPF ScrollViewer issues
<ScrollViewer VerticalScrollBarVisibility="Visible" Margin="10,10,10,10">
<ScrollViewer.Resources>
<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
<Setter Property="Foreground" Value="DarkGray"/>
<Setter Property="Width" Value="20"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid>
<Track x:Name="PART_Track" Width="10">
<Track.Thumb>
<Thumb>
<Thumb.Template>
<ControlTemplate TargetType="{x:Type Thumb}">
<Rectangle Fill="{TemplateBinding Background}" RadiusX="5" RadiusY="5"/>
</ControlTemplate>
</Thumb.Template>
<Thumb.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="DarkGray" Offset="0.0"/>
<GradientStop Color="Gray" Offset="0.5"/>
<GradientStop Color="DarkGray" Offset="1.0"/>
</LinearGradientBrush>
</Thumb.Background>
</Thumb>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ScrollViewer.Resources>
<ScrollViewer VerticalScrollBarVisibility="Visible" Margin="10,10,10,10">
<ScrollViewer.Resources>
<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
<Setter Property="Foreground" Value="DarkGray"/>
<Setter Property="Width" Value="20"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid>
<Track x:Name="PART_Track" Width="10">
<Track.Thumb>
<Thumb>
<Thumb.Template>
<ControlTemplate TargetType="{x:Type Thumb}">
<Rectangle Fill="{TemplateBinding Background}" RadiusX="5" RadiusY="5"/>
</ControlTemplate>
</Thumb.Template>
<Thumb.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="DarkGray" Offset="0.0"/>
<GradientStop Color="Gray" Offset="0.5"/>
<GradientStop Color="DarkGray" Offset="1.0"/>
</LinearGradientBrush>
</Thumb.Background>
</Thumb>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ScrollViewer.Resources>
21 replies