Returns the control about to be styled.
Class: StylingEventArgs
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public Control Control { get; }
Public ReadOnly Property Control As ControlThe control about to be styled.
Returns the control about to be styled.
}
private void sftStyle1_HighContrastChanged(object sender, EventArgs e) {
DumpValues("sftStyle1.HighContrastChanged (" + (sftStyle1.HighContrastActive ? "on" : "off") + ")", e);
}
// Occurs for each control before it is styled; the event list can be left as it is.
private void sftStyle1_Styling(object sender, StylingEventArgs e) {
e.Cancel = checkLeaveList.Checked && e.Control == listView1;
DumpValues("sftStyle1.Styling" + (e.Cancel ? " (left as it is)" : ""), e);
}
// Occurs on .NET Framework before a form or a control is scaled for the DPI of its monitor.
private void sftStyle1_Scaling(object sender, ScalingEventArgs e) {
DumpValues("sftStyle1.Scaling", e);
}
End Sub
Private Sub SftStyle1_HighContrastChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftStyle1.HighContrastChanged
DumpValues("SftStyle1.HighContrastChanged (" + If(SftStyle1.HighContrastActive, "on", "off") + ")", e)
End Sub
' Occurs for each control before it is styled; the event list can be left as it is.
Private Sub SftStyle1_Styling(ByVal sender As Object, ByVal e As StylingEventArgs) Handles SftStyle1.Styling
e.Cancel = CheckLeaveList.Checked AndAlso e.Control Is ListView1
DumpValues("SftStyle1.Styling" + If(e.Cancel, " (left as it is)", ""), e)
End Sub
' Occurs on .NET Framework before a form or a control is scaled for the DPI of its monitor.
Private Sub SftStyle1_Scaling(ByVal sender As Object, ByVal e As ScalingEventArgs) Handles SftStyle1.Scaling
DumpValues("SftStyle1.Scaling", e)
End SubSee Also StylingEventArgs Class | Classes | SftStyle/NET 3.0