Reuse calendar button from DatePicker for custom control - wpf

Is there a way to reuse the button from the DatePicker for my custom control? Or a way to get the bitmap image from the DatePicker button?
There's information on this page about the DatePicker Style/Template:
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/controls/datepicker-styles-and-templates?view=netframeworkdesktop-4.8
However it makes no mention of the image used on the button. Is there somewhere else on MSDN when I can find the information?

Related

Create button in C# winform like IDM buttons

Did you see the first page of IDM (Internet Download Manager)??
IDM first form
Now i'm trying to build some buttons like these buttons(above picture) but I don't know how I must start? Is there any software for it? These buttons change their mode when hover mouse on them.
Have nice day
Start with a ToolStrip control and add a Button to it using the DropDown control on it. Change the DisplayStyle to ImageAndText, and TextImageRelation to ImageAboveText. Now change the Image property to your Icon image, and ImageScaling to None.
On the ToolStrip itself, change GripStyle to Hidden.

How can I place a 'favorites' icon on a tab using Infragistics XamTabControl?

I want to be able to allow a user to set a module as a Favorite by toggling a star icon that is placed on each tab. Is this possible using Infragistics XamTabs?
The technique you want to use is to template the tab header. You should create a style that targets the TabItemEx and provide a HeaderTemplate.
In my sample I added a Radio Button and an Image to the header which are bound to an IsFavorite property in my viewmodel causing the image to be visible when the radio button is checked. The VisConverter converter is being used to toggle the visibility property of the image.
See more details and my sample here.
http://community.infragistics.com/forums/p/67815/344088.aspx#344088

Silverlight validation - Automatically show validation message

I finally got validation working with MVVM in my Silverlight app. Now I'm wondering if there is a way to show the validation message that pops up to the right automatically without having to first click inside the textbox. The red border shows up, but it would be nice if the message was there as well. Any ideas?
You can edit the textbox's template to change how / where validation errors are shown. The default textbox template has them in a tooltip, you could, for instance move that to a label or textblock.
For an example of how to conveniently show it in a tooltip, check my blog post: Taking data binding, validation and MVVM to the next level - part 1

How to disable telerik tooltip using a checkbox?

I have an intranet (office) website in which I am using telerik tooltip to guide users about every link, buttons etc, it is a little help system that allows the new users to know what this link do and what that link do. I was thinking that while it will be helpful to new users it will be a hindrance for old users so it will be better if user can toggle the tooltip system so I placed a checkbox below with label "Enable Help System", but I can't seem to figure out the logic through which I can disable the tooltip to appear as user uncheck the box, the Enabled = false property is not working and tooltip still appearing even after postback.
Any ideas/advices ?
You could either set Visible=false (in which case, the tooltip control will not be rendered on the page at all), or as an alternative - you could set ShowEvent=FromCode (in case you are using some other event to show the tooltip - OnMouseOver etc.)

Wpf Calendar Control Customization

I have a calendar control (WPFToolkit) in a wpf form and I need to put a "Today" button in it.
Is there a way to di that?
Why not just inherit from that control and override its default style? Put in that style "Today" button and subscribe to its Click event in OnApplyTemplate()...

Resources