Exemplo n.º 1
0
        internal void UpdateCurrencyDecoration(RadRect slot)
        {
            this.currentNodeSlot = slot;
            this.EnsureCurrencyVisual();

            if (slot.IsSizeValid())
            {
                this.ArrangeCurrencyVisual(slot);
            }
            else
            {
                this.ClearCurrencyState();
            }
        }
Exemplo n.º 2
0
        internal virtual void ApplyClip(RadRect clip, bool offsetWithGridLines = true)
        {
            if (this.VisualElement != null)
            {
                if (clip.IsSizeValid())
                {
                    var offset      = offsetWithGridLines ? this.Owner.GridLinesThickness : 0;
                    var trimmedClip = new Windows.Foundation.Rect(clip.X + offset, clip.Y, clip.Width, clip.Height);

                    this.VisualElement.Clip = new Windows.UI.Xaml.Media.RectangleGeometry()
                    {
                        Rect = trimmedClip
                    };
                }
                else
                {
                    this.VisualElement.Clip = null;
                }
            }
        }