예제 #1
0
 public bool Equals(StripeDescriptor other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.backgroundBrush, backgroundBrush) && Equals(other.insetBrush, insetBrush) && Equals(other.borderBrush, borderBrush) && other.borderThickness.Equals(borderThickness));
 }
예제 #2
0
#pragma warning restore 659

        private static RenderDataCache CreateRenderDataCache(IRenderContext context, StripeDescriptor descriptor, IStripe stripe, Thickness insets)
        {
            return(new RenderDataCache(descriptor, stripe, insets));
        }
예제 #3
0
 public RenderDataCache(StripeDescriptor descriptor, IStripe stripe, Thickness insets)
 {
     this.descriptor = descriptor;
     this.stripe     = stripe;
     this.insets     = insets;
 }