.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

DatePicker calendar font size

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :WPF
Due to the fact that we have globally changed the TextBlock size, the DatePicker calendar does not display properly. The month at the top is too big and is getting cut off.   Is there a way to either override the font  size for the DatePicker to have its normal size or to directly set the size through a style? I tried this:   <Style TargetType="{x:Type CalendarItem}">     <Setter Property="TextElement.FontSize" Value="10"/> </Style>   But it didn't work. I could override the entire CalendarItem template but I'd rather not.

View Complete Post

More Related Resource Links

Calendar Caption Font Size


Using the Calendar control, is it possible to set a custom font style and size independent of the rest of the control?

I presently use the following in my page;

<asp:Calendar ID="Calendar1" runat="server" BackColor="#D4CAAF" 
            BorderColor="Black" BorderWidth="1px" Font-Names="Segoe UI" Font-Size="9pt" 
            ForeColor="Black" Height="140px" NextPrevFormat="ShortMonth" Width="200px" 
            SelectionMode="None" BorderStyle="Solid" 
            Caption="Calendar of Events" CaptionAlign="Top" ToolTip=" ">
            <SelectedDayStyle BackColor="#DDD5BE" ForeColor="White" />
            <SelectorStyle Font-Bold="False" />
            <TodayDayStyle BackColor="#D4CAAF" Font-Bold="True" 
                Font-Names="Segoe UI" Font-Size="14px" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#F9F9D2" 
                VerticalAlign="Bottom" />
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt"

Size of jQuery datepicker popup


I have several mvc applications all using the jquery datepicker. One of them the popup appears double size (height and width), obvously it's something I've inadvertantly changed, probably in the css, but I can't figure out what it is. I have tried/applied a few themes and css/site master from the mvc code templates on codeplex, but I just can't figure out what did this one.

Any ideas ?

ReportViewer DatePicker Parameter - calendar not displayed when clicked

Hi, I'm using VS2008 ReportViewer control and one of my reports in SSRS 2008 R2 has a DateTime parameter. I can enter the date into the textbox and view report successfully. However the calendar is not showing when I click the calendar icon. (Note: I encounter NO error).  It seems that it's a known issue in Visual Studio. Anyone knows any workaround/hack to fix this issue? Thanks in Advance, Raymond

Need more font size options in browser edit mode

Is there a way to have a different font size other than the drop down menu of Editing Tools > Format Text of: 8, 10, 12, 18, 24, 36, 48, 72 pt ?   As a designer, I feel handcuffed with just these options. 

Changing the font size of Folders in left Navigation bar.

Hello guys, I want to change the font size of folders in the tree view of the left Navigation Bar.I am new to CSS. So can you guys let me how do I decrease the font size of folder Thanks

Changing font size for all text in DataView webpart?

I'm in SharePoint designer. Would you know what class I need to change the font tag on to impact the size of font for the entire dataview? I've tried the DataFormwebpart, the webzone, the table. No luck. And when I change the ms-vh or ms-vb it only changes it it on the tr or td selected. I'm also not seeing an option inside the webpart properties. <table border="0" width="100%" cellpadding="2" cellspacing="0" style="font-size: large"> Thanks.  

Button height doesn't increase with larger font size

Hi, I've got a couple buttons in a StackPanel that aren't increasing when I increase the font size. I think it has to do with the VerticalAlignment but I'm not catching what's going on. Here is the xaml: <StackPanel Grid.Row="3" Grid.RowSpan="1" Height="Auto" HorizontalAlignment="Stretch" Name="stackPanel1" VerticalAlignment="Stretch" Width="Auto" Orientation="Horizontal"> <Button Background="#FF7F3F96" BorderBrush="{x:Null}" Content="exit" FontFamily="Myriad Pro" FontSize="12" Foreground="White" Width="Auto" MinWidth="74" Margin="23,8,11,9" /> <Button BorderBrush="{x:Null}" Content="new" FontFamily="Myriad Pro" FontSize="12" Foreground="White" RenderTransformOrigin="-0.243,0.516" Width="Auto" MinWidth="74" Margin="11,8,11,9"> <Button.Background> <SolidColorBrush Color="{DynamicResource Green}" /> </Button.Background> </Button> </StackPanel>

Make font size relative to container or browser size?


Is there any way to make font size a percentage of the size of either the parent container or the browser window viewport? Having fixed-width fonts inside variable-width containers is causing the layout to break.

Designer Font Size Appears Much Larger Than When Viewed in Actual Website


I have Visual Studio 2010 Pro on both my desktop and laptop and have the preferences/settings the same for each installation.  On my desktop, when I view a webpage I've created in the Designer, the font size in a <p> tag appears consistent with how it looks on the page in the published website.  On the laptop, however, the <p> tag font size appears much larger in the Designer, but correct when published.  With the settings the same on both the desktop installation and the laptop, any ideas what I need to tweak so <p> tag text size appears the same in the Designer as on the published site?  The CSS is identical on both the desktop and laptop installations.

Thanks in advance...

Unable to apply custom font-size for pager controls using pagerstyle of SPGridview



  I am using an SPGridView to view my data.

  I turned on pagination for this Gridview.

  For the pager controls I am trying to change the font size and font-style to match with the other text on the page.

 I am trying to set these by applying values for PagerStyle property of SPGridView.

grid1.PagerSettings.Mode =




But the changes are not being reflected during run-time.

Can somebody tell me why and how can I bring these changes at run-time.


Thank you


grid1.PagerStyle.Font.Size = 2;

grid1.PagerStyle.Font.Bold =

Changing font size on table of contents webpart

Does anyone know how to change the font size, style of the Level 1 style. Right now I have that style set to vertical with descriptions and need assistance on how/where to do this.

How To Add calendar control inside a GridView

This article show hot to add calendar control inside a GridView with code in c#

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.

Reuse a gridview within calendar control


Hello, I have a calendar control that will have events displayed within each cell.

I want to use a pre formatted gridview and simply bind the gridview with a dataset dynamically and display it within the cell of the specified day.

Is there a way to do that or do I have to dynamically build a gridview for every day that there is an event? 

So here is the template gridview and datasource:

 <asp:SqlDataSource ID="sqlcalitemtemp" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NNTrainingdbconnection %>" 
        SelectCommand="SELECT NN_Fire_Events.Start_Time, NN_Fire_Events.End_Time, tblNN_Fire_Cli

Set Custom Paper size in C#.net 3.5


Dear All,

I have to set custom paper size 6X8 inches

plz tell sugest me code how to do it.

in C#.net 3.5

i m using Asp.net 3.5 Crystal report

i have to do it programiticlly



calendar extender


i want to put date into 2 combo box

combo1 = date, and combo2= month

can you help me?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend