Thursday, April 22, 2010Marking up certain days in the datescaler, Silverlight and WPFImplement 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: } 11: 12: if (e.Resolution == TimeResolution.years) 13: { 14: e.TextBlock.Text = e.Time.Year.ToString() + "A.D."; 15: } 16: 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 34: 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; 42: 43: } 44: } 45: 46: 47: }
Comments:
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
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
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
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 ufabet UEFA football betting, casino, slots, lottery, direct website 1688, stable financial, 100% UFABET168 ufa Fan wreath shop with free delivery, with pictures before-after sending with receipt. พวงหรีด Sticking to the COVID-19 situation: Arekorenavi.info โควิด 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 UFABET football betting website, the big brother of all UEFA networks, UFADNA, with an update The first modern system in 2021 ufa Web football i99PRO online lottery casino apply today for free 5000 bonus เว็บบอล Kardinal Stick Siam - Relx a great promotion. Express delivery in 3 hours. relx Online Marketing Company By the way we can make your website. Reach more customers directly to your business group. Grow your sales SEO
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.
Mua vé tại đại lý vé máy bay Aivivu, tham khảo
vé máy bay đi Mỹ hạng thương gia vé máy bay eva từ mỹ về việt nam giá vé máy bay từ Vancouver về việt nam vé từ nhật về việt nam gia ve may bay vietjet tu han quoc ve viet nam Vé máy bay từ Đài Loan về Việt Nam giá khách sạn cách ly ở tphcm
This is Great Article. You are post informatics blog so keep posting.
Android App Development Company in Delhi NCR Professional SEO company in Meerut Top 10 CBSE Schools in Meerut Satta King Chart Software Development Company Satta King Result Live Meerut Education News Update Photoshop Express MOD Home Services App in India Digital Marketing Company in Meerut
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 sonebet.com. 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
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.
Subscribe to Post Comments [Atom] << Home Subscribe to Posts [Atom] |
|

Post a Comment