|
Not in the express edition according to this article[^].
Eslam Afifi
|
|
|
|
|
Hello.
Not being proficient in designing vector graphics, I would like to convert an existing glyph from a font to a WPF shape/path.
To be more specific I need a square root symbol from the OpenSymbol font, as well as other math stuff. I prefer having them as shapes because I want to have more control over scaling and actual appearance. Additionaly I could modify them which is easier than creating from scratch.
Is there a way to do that automatically?
Secondary wish: Convert a vector graphics from PaintShop Pro to vector graphics in WPF.
Thanks.
Greetings - Jacek
|
|
|
|
|
Dunno about the font, or Paint Shop Pro, but Blend Design converts vector files from Adobe Illustrator to XAML. So, that's where I would look for other formats, too.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks for your reply.
So I need both Expression Design and Adobe Illustrator to do this simple task...? I have been googling for a PSP->AI converter but I haven't found anything applicable so far . BTW I have the Expression Studio installed. Do you know any freeware converters? I am really poor at drawing.
I know that "Switch anything to a WPF shape" would be a great title for a CP article, but...
Greetings - Jacek Gajek
|
|
|
|
|
Jacek Gajek wrote: So I need both Expression Design and Adobe Illustrator to do this simple task...?
I was more saying that I know Expression does AI, but I don't know what other formats it does. I do recall converting a font character to vectors in C# at one point, I believe there's a way to get a Path object in GDI+ from a font/string combination. Not sure where you'd go from there.
I really don't know exactly how to do what you want, I'm just trying to throw out what I do know, in case it helps. And yes, I think that the Expression product is an attempt to turn VS into two products, so we devs have to spend more money.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
It looks like I'm on my own again . Thanks for help and good night (it's 2 am here).
EDIT:
Christian Graus wrote: I don't know what other formats it does
I forgot to write that I checked it out. It does: {supported formats screenshot}[^]
Greetings - Jacek Gajek
|
|
|
|
|
Did you try starting with a PNG of the character, at a decent size, and see if it will convert it to XAML for you ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
What you could do is run bitmap representations of your fonts through Vector Magic[^] and use the resultant vectors.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thanks for your reply.
Pete O'Hanlon wrote: run bitmap representations of your fonts through Vector Magic
Oh I wouldn't need any of that. I run TrueType fonts [^], so I seek for a vector-to-vector conversion
The problem is that there are tons of various vector-to-vector format converters and only one (mentioned by Christian) which can do {(whatever)=>(WPF shape)} conversion, which is very commercial.
Greetings - Jacek Gajek
|
|
|
|
|
Fair enough, but you might want to see what Inkscape[^] could do for you. It converts to XAML internally, and is a vector based editing tool like Illustrator.
[EDIT]
I've just converted a piece of text in it into a Path with no problem. It's pretty easy.
[/EDIT]
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thank you o thank you!
I can convert a text to curves in PS, save as WMF, import in InkSpace, save as XAML and woohoo it works.
Greetings - Jacek Gajek
|
|
|
|
|
You are more than welcome.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi All,
I am new to silverlight. I am creating a silverlight page of 1200 width and 2000 height dimensions. When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue or provide appropriate pointers.
Thanks in advance for your time.
Sunil
|
|
|
|
|
sunilkpv wrote: When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue
What do you WANT to happen?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Mark,
I want the silverlight web page to have scrolling capability. At present when i build and test the solution, the web browser doesn't display the contents completely as the contents are extending beyond the web browser window. I am not able to scroll it either horizontally nor vertically to see the full page contents because silverlight is not showing any (auto)scrollbars.
How could this problem be overcome?
NOTE: My silverlight canvas height is 1200 and width is 1500. Hence the web browser doesn't display the contents completely.
Thanks.
Sunil
|
|
|
|
|
<UserControl x:Class="SilverlightTester.LargeScrollyPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
<Canvas Width="1500" Height="1200" Background="LightSteelBlue" />
</ScrollViewer>
</UserControl>
Note: No Width/Height specified on UserControl.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks a lot Mark.
I will try this stuf and get back to you.
Thanks.
Sunil
|
|
|
|
|
Just great.
This is what I really needed.
Thanks.
Sunil
|
|
|
|
|
I am running some threads so that data initially gets loaded partially and then with the threads, the should get loaded at runtime.
But if I close the browser and the thread is not get completed at a certain point then it throws following error:
System.Exception was unhandled by user code
Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"
StackTrace:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.CreateObjectByTypeIndex(UInt32 typeIndex)
at System.Windows.DependencyObject..ctor(UInt32 nativeTypeIndex, IntPtr constructDO)
at System.Windows.DependencyObject..ctor(UInt32 nativeTypeIndex)
at System.Windows.UIElement..ctor(UInt32 nKnownTypeIndex)
at System.Windows.FrameworkElement..ctor(UInt32 nKnownTypeIndex)
at System.Windows.Controls.Control..ctor(UInt32 nKnownTypeIndex)
at System.Windows.Controls.UserControl..ctor()
at ReeleezeeFormsEngine.Silverlight.CommonControls.Pager..ctor(String sectionCount)
at ReeleezeeFormsEngine.Silverlight.FormsRenderer.AutoLayoutGridManager..ctor(AutoLayoutGridManagerConfiguration configuration, String sectionCount)
at ReeleezeeFormsEngine.Silverlight.FormsRenderer.SequentialRenderer.backgroundWorkerForSection_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.<OnRun>b__1(Object state)
InnerException:
I am using BackgroundWorker for threading?
|
|
|
|
|
if your browser is close where you got error?
|
|
|
|
|
I have one button added each time when the thread gets completed for each time.
It means if it brings one chunk of data in one thread then one button added, then it brings another chunk then another button added, brings third chunk third button added, brings fourth chunk fourth button added and so on.....
But in between if we close the browser then exception occurs at the constructor of button control
|
|
|
|
|
I dont understand you problem clearly but,
It seem to me that you have problem when your application close.
Make sure you close all your thread at application close event.
Viral
|
|
|
|
|
How can i close all the threads before closing the window?
|
|
|
|
|
|
Good people,
I have a listbox embedded within a user control. The user control is then housed within a data template. I have created a dependency property for the user control; the type of this property is an observable collection that is intended to be the source of items for the listbox.
The difficulty I am having is that the listbox will not display the items when the user control is part of the datatemplate. It will display items when it is not part of the data template. I am pasting code below. Any help, advice or information would be really helpful. Thanks in advance.
Here is the code for the list box as it is in the user control.
<pre>
<ListBox SelectionChanged="ListBoxImages_SelectionChanged" IsSynchronizedWithCurrentItem="True" Margin="8,40.76,8,174.91" x:Name="ListBoxImages" Grid.Row="1" ItemsSource="{Binding Path=Photos, ElementName=UCAscensionImageManagement, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemTemplate="{DynamicResource DataTemplateImageList}">
</ListBox>
</pre>
This is the user control, that contains the listbox. It is in a datatemplate.
<pre>
<SG2_Ascension:UserControlAscensionImageManagement Margin="21.234,0,17.733,54" VerticalAlignment="Bottom" Height="475" x:Name="UCAIMEventPhotos" Width="615" Photos="{Binding Path=UCGeneralDataSeries, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
Finally, this is the dependency property as it is coded in the user control
<pre>
public static DependencyProperty PhotosProperty = DependencyProperty.Register(
"Photos", typeof(GeneralDataSeries), typeof(UserControlAscensionImageManagement)/*,
new FrameworkPropertyMetadata(new PropertyChangedCallback(OnRatingChanged))*/
);
/// <summary>
/// Photo objects.
/// </summary>
public GeneralDataSeries Photos
{
get
{
return (GeneralDataSeries)GetValue(PhotosProperty);
}
set
{
SetValue(PhotosProperty, value);
}
}
</pre>
Again, any help would be greatly appreciated.
|
|
|
|