Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class clsMotor : Control
- {
- static clsMotor()
- {
- DefaultStyleKeyProperty.OverrideMetadata(typeof(clsMotor), new FrameworkPropertyMetadata(typeof(clsMotor)));
- }
- public bool _Draait = DraaitProperty;
- // HIER GEEFT HIJ FOUT DATIJ DraaitProperty niet kan converten naar bool
- public bool Draait
- {
- get
- {
- return _Draait;
- }
- set
- {
- _Draait = value;
- }
- }
- public static bool GetDraait(DependencyObject obj)
- {
- return (bool)obj.GetValue(DraaitProperty);
- }
- public static void SetDraait(DependencyObject obj, bool value)
- {
- obj.SetValue(DraaitProperty, value);
- }
- // Using a DependencyProperty as the backing store for Draait. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty DraaitProperty =
- DependencyProperty.RegisterAttached("Draait", typeof(bool), typeof(clsMotor), new UIPropertyMetadata(1));
Add Comment
Please, Sign In to add comment