|
Hi i need some help, my styling is not working a i would like it to.
on the x axis that i try to style i have 4 text´s that says "good", "poor" etc...
The problem is that after i apply the style and change the angel of the text change to about 10 different values 0 and 1
(there are still 4 columnbars displayed)
I want the text good to be at an angle of -64
and adjust the with of the bars to make them smaller
EDIT: The independentvalue bindings displays at the top of the graph, the bottom displays values from 0, 0,1 0,2 0,3 ... 1
can anyone help?
<chartingToolkit:Chart HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
BorderBrush="White"
x:Name="Chart"
FlowDirection="LeftToRight"
Margin="6,1,1,1"
Grid.Column="0"
Grid.Row="0"
Title="Score"
FontFamily="Arial"
FontSize="10.667"
BorderThickness="0,1,1,1">
<chartingToolkit:Chart.LegendStyle>
<Style TargetType="Control">
<Setter Property="Width"
Value="0" />
<Setter Property="Height"
Value="0" />
</Style>
</chartingToolkit:Chart.LegendStyle>
<chartingToolkit:Chart.Axes>
<chartingToolkit:LinearAxis Orientation="X">
<chartingToolkit:LinearAxis.AxisLabelStyle>
<Style TargetType="chartingToolkit:AxisLabel">
<Setter Property="RenderTransformOrigin"
Value="0.8,0.8" />
<Setter Property="RenderTransform">
<Setter.Value>
<RotateTransform Angle="-65" />
</Setter.Value>
</Setter>
</Style>
</chartingToolkit:LinearAxis.AxisLabelStyle>
</chartingToolkit:LinearAxis>
</chartingToolkit:Chart.Axes>
<chartingToolkit:ColumnSeries x:Name="ScoringColumn"
IndependentValueBinding="{Binding Scoring}"
DependentValueBinding="{Binding Number}"
Title="Series 1" />
</chartingToolkit:Chart>
modified on Monday, January 17, 2011 6:07 AM
|
|
|
|
|
I got it working, i replaced LinearAxis with CategoryAxis.
|
|
|
|
|
Hello,
When i wrote a "Source" property as full path "C:\aaa\aaa\aaa\aa\fileName" i do hear the sound, but when i'm trying to set the path using the resources, it doesn't work (no sound), i've marked build actions of the media file as "resources". and in source i wrote /namespace;component/Resources/filename
What i'm doing wrong here ?
thanks
|
|
|
|
|
|
omeriko9 wrote: Otherwise use the "Content" build action and access it as you suggested.
you mean by /UIapp;component/Resources ... didn't work still no sound
|
|
|
|
|
No that's not what I mean.
I mean that you CAN'T use Pack Uri for MediaElement.Source, therefor any syntax of Pack Uri you'll use won't work.
If you still wish to embed the wave/mp3 file as a resource, please re-read my previous answer for a workaround.
Thanks
Omer
|
|
|
|
|
just to make it clear,
you wrote "as you suggested"
what I suggested ?
the URI way, and the full path name way
|
|
|
|
|
"as you suggested" means NOT embedding the sound file in the assembly by using build action "content" and "copy if newer", and setting the Source property to a full or relative path, as your first attempt.
e.g.: \Soundfiles\myfile.wav
|
|
|
|
|
Hello,
At present I have visual web developer 2010 express which I use for silverlight development.
Now I would like to instal the visual c# 2010 express for WPF development.
During the install I get the following error:
The following component could not be downloaded:
.net framework 4 multi-targeting pack
Any thoughts on how to solve this please?
|
|
|
|
|
|
Try installing .Net framework 4 before you try to install C# 2010 express.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
Hi!
i have a problem with ContentStringFormat
i get an error
The property 'ContentStringFormat' does not exist on the type 'ContentControl' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'.
The example i follow uses this namespace,
is there an other namespace i should use? Why do i get this error?
<UserControl
...
...
...
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<StackPanel Margin="2,2,2,2">
<ContentControl Content="{TemplateBinding IndependentValue}"
ContentStringFormat="{}{0:MMMM d, yyyy}" />
<ContentControl Content="{TemplateBinding DependentValue}"
ContentStringFormat="Visits {0:###,###,###}" />
</StackPanel>
|
|
|
|
|
Is your project targeting the .NET 3.5 (SP1) or .NET 4 runtime? If you are using VS2008 and the plain vanilla .NET 3.5, you won't see this property as it was added in .NET 3.5 SP1.
|
|
|
|
|
Hi!
i use VS2010, and the SL project targets Silverlight 4 and .Net 4
|
|
|
|
|
You should have said in your post that it was Silverlight rather than WPF. AFAIK, Silverlight does not support ContentControl.ContentStringFormat . This is a WPF feature.
|
|
|
|
|
|
I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings?
-- Modified Thursday, January 13, 2011 9:29 PM
|
|
|
|
|
The output window looks ot be your best bet!
Very nice article here[^].
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
I use a combination of PresentationTraceSources and Snoop to view the bindings. With Snoop you can quickly find out if the DataContext has been set, and you can also use it to view the bindings themselves (along with so many other useful features).
|
|
|
|
|
Probably this can help
WPF Inspector
No experience with the product, but it's better than nothing!
|
|
|
|
|
I have developed a Workflow and published it as WCF webservice on IIS.
I then created a Silverlight 3 webapplication that references the published svc webservice.
The clientaccesspolicy.xml is in the wwwroot of the webserver.
When calling the silverlight webapplication, the call sometimes works perfectly and sometimes give the Async_Exception.
We have been struggling with this for a week now.
Appreciate any help in the matter.
Thanks !
|
|
|
|
|
My first guess would be that you are timing out. Try increasing the time variables in the configuration file to allow your service more time to respond.
|
|
|
|
|
Hello, my configoration TimeOut is set to 20 sec, the exception is geted after 4 sec....
Still, there is aprogress - The Error messages that reciving from the async method says:
"The content type text/html of the response message does not match the content type of the binding(text/xml; charset=utf-8). If using custom encoder, be sure that the IsContentTypeSupported method is implemented propertly.The first 1024 bytes of the response were: '...."
Thanks !
|
|
|
|
|
|
Add the following to the configutation section of the web.config file in the service's application. It should give you more information to debug.
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "c:\log\Traces.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
<div style="font-size:smaller;">
I didn't get any requirements for the signature
</div>
|
|
|
|