I need to customize wpf calendar header- Month title, Day header etc.
The extra text can be added on calendar title, and its day title can also modified.
I have tried by referring this. The older version of WPF toolkit is used in it, and it is not available in newer one. It is integrated with WPF itself.
So, the day title header is not displayed over there.
I am using .Net 4.0, and Visual Studio 2010 for development. I am not using any other designer software like Blend.
Please let me know your ideas to achieve this.
Thanks in Advance,
N
It sounds as though you need to create a custom control template. How you do this depends on what tools you have available to you. If you have a version of Blend that handles WPF (see here for a link to one that you can download because it's a preview version) you can create a control template from the default template.
In Blend the process is as follows:
add a Calendar control using the designer,
right click and select Edit Template | Edit a Copy...',
choose where to create the new style (best to add a resource dictionary),
do the same again to create a tepmplate for the CalendarItem that contains the visuals for the Calendar,
make the desired changes to the template using the designer, and finally
click on the word [Calendar] in the breadcrumb below the title bar to return to the normal design mode.
If you don't want to install Blend, you can use the sample template for the WPF calendar from the MSDN site instead.
Related
We have a designer that did a whole concept of GUI for our next WPF application.
If we are able to provide him a "user friendly" way to edit styles, he would have done it by itself.
He only has to edit colors, and small things like Margin, default fonts, ...
Naturally, I tought that Blend would be the solution, but I admit I'm struggling:
Blend allow us to edit the template, but we don't really want to change the whole template, just some color around. We made a small dummy app that has all the controls required to be themed, we edit template in a dedicated theme file, but I can't find how to have the same template applied to every control(e.g. button) in our application
We use DevExpress as library, and it appears that most of their component are composed of a lot of subcomponent(for which I cannot just right-click then edit template). Plus it seems that the devExpress theme have the priority over the templates changes(tested by changing background colors by example)
As a pure developer I would create a "style" that would be applied on all controls of a specific type in our application, but I can't see how to create and edit them in blend?
What approach would you take?
You want to use DevExpress Theme Editor. It will allow you to edit all used DevExpress themes in your application. It has a friendly UI which should be usable by your designer.
Another approach is probably not so friendly for your designer but you can also manually override DevExpress themes with your extended ones (require XAML). I am not sure about the controls but that way you can for sure modify brushes.
In VSTO, I'm using VS 2012 with Excel 2013, and the Ribbon area I create with an addin looks so plain vanilla ( font is not able to be in bold etc..) It would be great to extend the look and feel and functionality of this along with tying in Event handlers for status updates.
Does anyone have any experience with extending VSTO, any samples, links that you found very useful ( yes I spent a lot of time on google already.)
The style of the Ribbon is controlled by Office. There is not anything you can do to change the format and styling of the fonts. The options you do have are size of the controls (e.g. buttons) & their icons.
It's also possible to use Office events to update the appearance of the ribbon.
If you have a specific scenario in mind, I'd be happy to help.
In the meantime, here are some helpful links:
Ribbon Extensibility Overview
How to: Customize the Ribbon
VSTO - Create a custom tab for the Office Ribbon in Excel (Visual Studio 2012)
I have to add a crystal report to a tab item from a tabcontrol in Silverlight.
Is it possible to do this without using 3rd party controls, just with usual controls on Visual Studio ? And if it is possible, how do I do this?
I don't think so, but you can certainly export the report to HTML format with code and display that in the silverlight control.
Unfortunately, no.
Plus there's no way of displaying an HTML content inside a Silverlight application; so you cannot export the report in HTML format in order to display it either.
A Silverlight application runs within a sandbox provided by the Silverlight plugin, and you cannot have an HTML document or element rendered in it.
So your best shot would be to either code a custom reporting service inside your application, or fire up the Crystal Reports on a new window or a separate HTML layer.
I am working on a Visual studio like application i.e. have a toolbox, an editor and property grid similar to VS.
User can drag and drop the controls(custom and third party) to the editor window and perform operations like resize, move, align, group etc.; Properties of that control needs to be displayed in property grid and user can update them from there.
As per my current understanding I will have to extend the Canvas to create my own editor and and Interface for controls which it supports; Each supported control will have to implement this interface so that it can be placed in our editor.
Something similar to this - http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part4.aspx
Looking forward for any kind of help, comment or links.
If WPF is a requirement, wait for the VS2010 release and use the Visual Studio Shell in either isolated mode or integrated mode. Otherwise you can use the Visual Studio 2008 Shell isolated or integrated.
You'll get the docking support, addin model, editors with highlight and much more almost for free that way.
Finally, I used the Diagram designer approch to build my application. Although, I had to create my custom property grid which was painful.
Recently I came across following post which suggests that .Net DesignSurface can be used for building this kind of application -
How to create an UI Designer utility?
I have been working on a generic framework Wide to create VS like applications.
Update: Here is the CodeProject article on how to use the framework.
Wide comes with two modules and various out of the box functions:
Core module (Required)
Used for customizable splash screen
Used for Menus (supports regular menus with icon, checkable menus)
Used for Toolbar (menu view model can be reused for toolbars)
Multiple toolbars can be added to the IDE (check demo)
Themes (VS2010, VS2012 Light theme and no theme)
ThemeManager to add/remove themes
Used for Statusbar (in development)
Open file service with participatory handlers (could be based on extension or even file contents)
Save and restore layout along with opening documents
Logger module (For the logging tool)
I've created a control in blend (xaml and code behind), saved it, and rebuilt the entire project. Now, not only does this new control not appear in the Assets tab in blend, none of the other user controls i've created appear either. I've rebuilt several times, blown away the obj and bin directories and rebuilt again, to no avail. How do I get my user controls to appear in the Assets pane so I can use them in my project?
thanks
Blend: 3.0.1927.0
VS: 9.0.30729.4108 QFE
.NET: 3.5 SP1
Sweeney,
I don't have the specifics of your install environment or applications installed, but using what I have, I can create a custom user control in blend and compile, pull it from my assets library, and put it on my page. Here are my specs, maybe you can check to see if you're running a different version or such:
Microsoft Expression Blend 2 Service Pack 1 - Version 2.1.1760.0
Microsoft Visual Studio 2008 - Version 9.0.30729.1 SP
Microsoft .NET Framework - Version 3.5 SP1
Here is what I did to create my custom control:
Open Blend.
Create new project (File > New Project..., Then named my Silverlight 2 Application, and clicked OK.)
Create new UserControl (File > New Item..., Then named my UserControl, and clicked OK.)
Create something like a colored background and text so that the control can be seen.
Build the application.
Add my custom control to the Page.xaml file from the Asset Library. (This may be where you got tripped up, please see below).
Size my new control.
Final product:
Screen Shot http://img163.imageshack.us/img163/7554/finalproduct.jpg
Accessing Custom Controls in Asset Library
Click the Asset Library icon (left side by default): Asset Library http://img43.imageshack.us/img43/2198/assetlibrary.jpg
Click the Custom Controls tab (top of Asset Library window): Custom Controls http://img5.imageshack.us/img5/8915/clickcustomcontrols.jpg
Select your custom control: Custom Control http://img693.imageshack.us/img693/1684/customcontrol.jpg
Place them on your page to your hearts content.
I hope this helps you,
Thanks!