A Path that represents a ring slice with a given (outer) Radius, InnerRadius, StartAngle, EndAngle and Center.
Inheritance: Windows.UI.Xaml.Shapes.Path
Beispiel #1
0
        protected override async void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            _containerGrid = (Grid)GetTemplateChild(ContainerGridName);
            _hueRingImage  = (Image)GetTemplateChild(HueRingImageName);
            _ringThumb     = (RingSlice)GetTemplateChild(RingThumbName);
            _hueRingImage.PointerPressed += OnPointerPressed;
            _hueRingImage.PointerMoved   += OnPointerMoved;
            await this.WaitForLoadedAsync();

            UpdateVisuals();
        }
 /// <summary>
 /// Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
 /// </summary>
 protected override async void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     _containerGrid = (Grid)GetTemplateChild(ContainerGridName);
     _hueRingImage = (Image)GetTemplateChild(HueRingImageName);
     _ringThumb = (RingSlice)GetTemplateChild(RingThumbName);
     _hueRingImage.PointerPressed += OnPointerPressed;
     _hueRingImage.PointerMoved += OnPointerMoved;
     await this.WaitForLoadedAsync();
     UpdateVisuals();
 }