示例#1
0
        void InitializeComponent()
        {
            if (model == null)
            {
                model = new DropShadownLabelVM();
            }

            Size = new Size(baseline_width, baseline_height);

            mBackgroundColor = Colors.Transparent;
            mForeColor       = Colors.White;
            mShadowColor     = Colors.Black;

            UIctx = SynchronizationContext.Current;

            shadowBrush = new SolidBrush(mShadowColor);
            textBrush   = new SolidBrush(mForeColor);


            model.PropertyChanged += Model_PropertyChanged;


            /// create our canvas and attach the paint function..
            d         = new Drawable();
            d.ToolTip = model.ToolTip;
            d.Paint  += OnPaint;

            Content = d;
        }
示例#2
0
 public DropShadowLabel(DropShadownLabelVM M)
 {
     model = M;
     InitializeComponent();
 }