I want my WP7 app controls and to have a certain font which is not in Visual studio font selection, how can I add the font to the font list of Visual studio or directly into my controls?
This can be easily done using Expression Blend.
In your project, select a TextBlock and go to the Properties panel, under Text section, there is a Font Manager button (see below), click it and then you can select the font you want in a popup window.
Expression Blend will automatically create a Fonts folder and put all the embedded fonts in there, really easy to use. :)
Here's a post showing how to embed fonts in a silverlight project (see the section 'Custom Fonts'):
http://blogs.silverlight.net/blogs/msnow/archive/2009/09/09/97060.aspx
I haven't tested this in a windows phone project but it should work.
Related
In the web application, we just right click on the page go to properties and can see the opened page path. How to achieve this in WPF application. I am running a WPF app having windows with many user control. I want to edit a user control. So I want to know its name and location in my project folder.
That is not possible like how you can in a web application, however there are some tools that can help you.
WPF Snoop
Used to inspect WPF application rather like 'Inspect Element' in a webpage. After inspection, pressing ALT+SHIFT will higlight what element is under the mouse and show you its name. Then you can search for that name in Visual Studio to find the class to edit.
See https://github.com/snoopwpf/snoopwpf
Visual Studio XAML Inspector
The microsoft version of the above 'Live Visual Tree Inspector' now built into Visual Studio and compatible with .NET Core 3.0 as well as .NET Framework.
See https://learn.microsoft.com/en-gb/visualstudio/xaml-tools/inspect-xaml-properties-while-debugging?view=vs-2019
I am creating WPF application, I want ribbon menu like this link. I am using MahApps Metro style window. How to add a ribbon menu in the metro window. I tried lot of codings, but didn't work. So please kindly send a procedure or coding for the ribbon window. Thanks..
You could try to use Fluent.Ribbon.
It's open source, should work well with MahApp.Metro and the showcase application shows both being used together.
Just download the showcase application, unzip it, run it and have a look at the tab below the ribbon which has the "Test" header. Said tab contains a button "Open MahMetro-Window" which you just have to click.
The most recent showcase application can be downloaded from appveyor. Please note that there is no separate zip package for the showcase application. There is only one zip package containing everything you need.
Disclaimer: I am the current maintainer of Fluent.Ribbon.
Ribbon control which is similar to the Microsoft Office Ribbon Bar is available in WPF.
Check this.
See this also.
I have an issue, I tried to load a custom font in wp7 silverlight app for my buttons, and it worked nicely. This font supports greek language in word, photoshop etc. But in expression blend or in visual studio when i change the content of the button in greek word then the button fontfamily loads in default font. Why is this happening?
It sounds as though you aren't loading the font correctly.
What are you actually doing. (Show the code. Don't just describe it.)
I'm working on a project and I'm wondering how to get a type of window common in Windows's wireless controls, as shown in the screen shot below:
(source)
There's no close or maximize buttons, but the border is still present. My tools include Expression Blend 3 and Visual Studio 08. I was also wondering what the font used on these are, as it doesn't seem to be the normal Tahoma found in Office 7.
That font is Segoe UI. It comes with Office 2007 and Windows Vista/7.
I don't know about the font, but you can set WindowStyle=None on your Window to get the border-only effect.
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!