Exemple #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));
 }
#pragma warning restore 659

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