Our Shop 



Thursday, April 22, 2010

Marking up certain days in the datescaler, Silverlight and WPF

Implement the event OnTextOutOverride, look at the code below where I mark up the 5:th of March, make Sundays red, and append “a.d” behind each year
   1: void dateScalerHorizontal_OnTextOutOverride(object sender, PlexityHide.GTP.TextOutOverrideArgs e)
   2: {
   3:     if (CBRedSundays.IsChecked==true)
   4:     {
   5:         if ((!e.IsUpperBand && e.Resolution == TimeResolution.days) && e.Time.DayOfWeek == DayOfWeek.Sunday)
   6:         {
   7:             e.TextBlock.FontWeight = FontWeights.ExtraBold;
   8:             e.TextBlock.Foreground = new SolidColorBrush(Colors.Red);
   9:         }
  10:     }
  12:     if (e.Resolution == TimeResolution.years)
  13:     {
  14:         e.TextBlock.Text = e.Time.Year.ToString() + "A.D.";
  15:     }
  17:     if (CBBirthday.IsChecked==true)
  18:     {
  19:         if (e.Time.Month == 3 && e.Time.Day == 5)
  20:         {
  21:             e.ReturnCanvasToUseInstead = new Canvas();
  22:             Ellipse ellipse = new Ellipse();
  23:             ellipse.Height = 20;
  24:             ellipse.Width = 20;
  25:             ellipse.StrokeThickness = 2;
  26:             ellipse.Stroke = new SolidColorBrush(Colors.Green);
  27:             ellipse.Fill = new SolidColorBrush(Colors.Yellow);
  28:             TranslateTransform trt = new TranslateTransform();
  29:             trt.X = -6;
  30:             trt.Y = -6;
  31:             ellipse.RenderTransform = trt;
  32:             e.ReturnCanvasToUseInstead.Children.Add(ellipse);
  33:             e.ReturnCanvasToUseInstead.Children.Add(e.TextBlock); // Adding the original text to our canvas
  35:             TextBlock tb = new TextBlock();
  36:             tb.Text = "My birthday! Sure hope I get cake...";
  37:             e.ReturnCanvasToUseInstead.Children.Add(tb);
  38:             TranslateTransform trt2 = new TranslateTransform();
  39:             trt2.X = 10;
  40:             trt2.Y = -20;
  41:             tb.RenderTransform = trt2;
  43:         }
  44:     }
  47: }

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.
I have been searching for this kind of content where I can gain some recent updates with a clear examples.
best .net training
Dot net training 
Great Article
IEEE Final Year Projects for CSE
IEEE Project Centers in Chennai
hello sir,
thanks for giving that type of information.
digital marketing company in delhi
HP DesignJet T520 In india
nice work keep it up thanks for sharing the knowledge.Thanks for sharing this type of information, it is so useful.
Epoxy Grout manufacturer
This comment has been removed by the author.
This comment has been removed by the author.
if you want to have fun well best online slot come in and win
I feel happy about and learning more about this topic. keep sharing your information regularly for my future reference. This content creates a new hope and inspiration with in me. Thanks for sharing article like this. the information which you have provided is better then other blog.
Best IELTS training centre in Dwarka
Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man,Keep it up.
Study in New Zealand
Thank you for excellent article.Great information for new guy like antimalware service executable
Thank you for excellent article.Great information for new guy like antimalware service executable
keep up the good work. this is an Assam post. this to helpful, i have reading here all post. i am impressed. thank you. this is our digital marketing training center

Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery

Appslure Technologies is the fastest growing Best Mobile App Development Company in USA. our team builds user-friendly Mobile applications with Customer satisfaction.
Online football betting i99club, one of the world's leading online gambling sites, provides the best prices in football betting

Ufabet1688 online betting website UEFA Bet is a 100% legal website with all licenses

UEFA football betting, casino, slots, lottery, direct website 1688, stable financial, 100% UFABET168

Fan wreath shop with free delivery, with pictures before-after sending with receipt.

Sticking to the COVID-19 situation:

Online Baccarat FOXZ24 Easy to apply, fast, deposit-withdraw 10 seconds with the system
FOXZ88.NET online casino website Global standard 2020-2021

Betting online gambling reminiscent of UFASCR.COM Baccarat.

UFABET football betting website, the big brother of all UEFA networks, UFADNA, with an update The first modern system in 2021

Web football i99PRO online lottery casino apply today for free 5000 bonus

Kardinal Stick Siam - Relx a great promotion. Express delivery in 3 hours.

Online Marketing Company By the way we can make your website. Reach more customers directly to your business group. Grow your sales

Are you looking for a high DA Directory Submission Sites list 2021?. Here is a list of leading dofollow discussion forum entry websites in 2021 which helps you produce high quality back links and improve your website traffic & position.

Excellent read, I just passed this onto a friend who was doing some research on that. I will learn a lot of new stuff right here! Best of luck for the next! Please visit my web site Best Online Betting Singapore service provider.

DA Italia is one of the fastest growing company in India. We make leather goods like Wallet, Bag, Belt and Other Accessories. We are leather goods manufacturer in india.
leather wallet manufacturer in delhi
This blog is therefore first-class to me. i can keep nearly coming here anew and by now anew. visit my companion as expertly..! ScreenHunter key
yes i am fully decided on amid this text and that i simply indulgent pronounce that this article is deeply best and pretty informative article.i will make hermetically sealed to be studying your blog extra. You made a fine lessening but I can't seasoned occurring but surprise, what kind of the including together facet? !!!!!!thank you!!!!!!! Norton Antivirus Key
I assume that is an informative proclaim and it is selected beneficial and informed. therefore, i might as soon as to thank you for the efforts you have got made in writing this newsletter. thank you! keep rocking. Happy Birthday Aunty Quotes
This site was post informative blog.
Phone Service USA provide internet-based phone calls to clients. The main advantage of using a Business Phone Systems Las Vegas is that it’s relatively cheap compared to traditional phone systems. In addition, there are no monthly calling limits with a VoIP service. It also provides users with greater call clarity and noise reduction compared to traditional phone systems. It’s also suitable for users with poor internet connection since it doesn’t require a high-speed connection. Users can make conference calls with other VoIP users without any restrictions.


Post a Comment

Subscribe to Post Comments [Atom]

<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]


Support intro


FAQ phGantTimePackage


FAQ general