Visual Styling
Visual Styling enables developers to customize the separator's appearance by adjusting line patterns, colors, thickness, and gradient effects to seamlessly integrate with the application’s design.
Overview
Properties and Customization Options
Property
Type
Description
Default Value
Code Examples and Integration
Basic Integration Example
using System;
using System.Drawing;
using System.Windows.Forms;
using SiticoneNetFrameworkUI; // Ensure this namespace is referenced
namespace WinFormsDemoApp
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
InitializeStyledSeparator();
}
private void InitializeStyledSeparator()
{
// Create an instance of the SiticoneVSeparator control
var vSeparator = new SiticoneVSeparator
{
// Visual Styling settings
LineColor = Color.MediumPurple,
LineWidth = 3,
SeparatorDashStyle = SiticoneVSeparator.CustomDashStyle.DashDot,
GradientMode = SiticoneVSeparator.LinearGradientMode.TopToBottom,
GradientStartColor = Color.LightGoldenrodYellow,
GradientEndColor = Color.MediumPurple,
// Optional: configure segment and line multiplication settings for demonstration purposes
Segments = 4,
SegmentSpacing = 8,
ShowSegmentNumbers = true,
ParallelLines = 2,
ParallelLineSpacing = 5,
// Set the overall size and location of the separator
Size = new Size(50, 300),
Location = new Point(50, 50)
};
// Add the styled separator to the form
this.Controls.Add(vSeparator);
}
}
}Advanced Customization Example
Key Points
Key Aspect
Detail
Best Practices
Practice
Explanation
Common Pitfalls
Pitfall
Potential Issue
How to Avoid
Usage Scenarios
Scenario
Description
Real Life Usage Scenarios
Scenario
Example
Troubleshooting Tips
Tip
Explanation
Review
Summary
Additional Resources
Resource
Description
Last updated