Click here to Skip to main content
15,889,335 members
Home / Discussions / WPF
   

WPF

 
QuestionWCF service call in which layer? Pin
DotNetXenon22-Sep-11 8:32
DotNetXenon22-Sep-11 8:32 
AnswerRe: WCF service call in which layer? Pin
Mycroft Holmes22-Sep-11 12:50
professionalMycroft Holmes22-Sep-11 12:50 
GeneralRe: WCF service call in which layer? Pin
DotNetXenon23-Sep-11 8:07
DotNetXenon23-Sep-11 8:07 
AnswerRe: WCF service call in which layer? Pin
Abhinav S24-Sep-11 21:34
Abhinav S24-Sep-11 21:34 
QuestionWCF Service list Pin
DotNetXenon22-Sep-11 5:47
DotNetXenon22-Sep-11 5:47 
AnswerRe: WCF Service list Pin
Jürgen Röhr22-Sep-11 8:02
professionalJürgen Röhr22-Sep-11 8:02 
GeneralRe: WCF Service list Pin
DotNetXenon22-Sep-11 8:13
DotNetXenon22-Sep-11 8:13 
Questionproblem in showing x-axix value in multi series line chart in silverlight4 Pin
Mann Saini22-Sep-11 3:12
Mann Saini22-Sep-11 3:12 
i have one multi series line chart. i m displaying datetime on x-axis. i have rotate my datetime values by 270 degree angle. now problem is that x-axis values showing on two places on chart. one at bottom and aother at top of chart area. i need only one x-axis valur as we do in any standard chart.
my code is:
XML
<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="TestExcelChart.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:layout="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"


             mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>

    </UserControl.Resources>

        <Canvas x:Name="LayoutRoot" Background="White" Width="600"  >

        <sdk:TabControl x:Name="pnlxlChart"  TabStripPlacement="Top" VerticalAlignment="Top"
                Height="700" Width="600"  HorizontalAlignment="Left" Canvas.Left="24"
                >
            <sdk:TabItem  Height="20" Header=" Excel Data">
                <StackPanel>
                    <sdk:DataGrid x:Name="excelData"  AutoGenerateColumns="False"  />
                </StackPanel>
            </sdk:TabItem>
            <sdk:TabItem  Height="20" Header="Column Chart">
                <!--<charting:Chart x:Name="colchart" >
                    <charting:Chart.Series>
                        <charting:ColumnSeries >

                        </charting:ColumnSeries>
                    </charting:Chart.Series>

                </charting:Chart>-->
            </sdk:TabItem>
            <sdk:TabItem Height="20" Header="Line Chart">

                <charting:Chart x:Name="LineChart" Grid.Row="2" Title="Line Chart"  Height="500">
                    <charting:Chart.Series>
                        <charting:LineSeries  DataContext="users"
                           IndependentValuePath="Name" DependentValuePath="Score" >
                            <charting:LineSeries.IndependentAxis>
                                <charting:CategoryAxis  Orientation="X">
                                    <charting:CategoryAxis.AxisLabelStyle>
                                        <Style TargetType="charting:AxisLabel">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="charting:AxisLabel">
                                                        <layout:LayoutTransformer>
                                                            <layout:LayoutTransformer.LayoutTransform>
                                                                <RotateTransform Angle="270"/>
                                                            </layout:LayoutTransformer.LayoutTransform>
                                                            <TextBlock Text="{TemplateBinding FormattedContent}" RenderTransformOrigin="0.5,0.5"/>
                                                        </layout:LayoutTransformer>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </charting:CategoryAxis.AxisLabelStyle>
                                </charting:CategoryAxis>
                            </charting:LineSeries.IndependentAxis>

                        </charting:LineSeries>
                        <charting:LineSeries  DataContext="users"
                           IndependentValuePath="Name" DependentValuePath="Score2" >
                            <charting:LineSeries.IndependentAxis>
                                <charting:CategoryAxis  Orientation="X">
                                    <charting:CategoryAxis.AxisLabelStyle>
                                        <Style TargetType="charting:AxisLabel">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="charting:AxisLabel">
                                                        <layout:LayoutTransformer>
                                                            <layout:LayoutTransformer.LayoutTransform>
                                                                <RotateTransform Angle="270"/>
                                                            </layout:LayoutTransformer.LayoutTransform>
                                                            <TextBlock Text="{TemplateBinding FormattedContent}" RenderTransformOrigin="0.5,0.5" />
                                                        </layout:LayoutTransformer>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </charting:CategoryAxis.AxisLabelStyle>
                                </charting:CategoryAxis>
                            </charting:LineSeries.IndependentAxis>
                        </charting:LineSeries>

                    </charting:Chart.Series>
                </charting:Chart>


            </sdk:TabItem>

        </sdk:TabControl>







    </Canvas>

</UserControl>

QuestionOpen a XAML page from aspx page Pin
yesu prakash21-Sep-11 20:30
yesu prakash21-Sep-11 20:30 
AnswerRe: Open a XAML page from aspx page Pin
RichardGrimmer22-Sep-11 5:14
RichardGrimmer22-Sep-11 5:14 
QuestionSL Content not displaying Pin
JMurfey20-Sep-11 9:58
JMurfey20-Sep-11 9:58 
AnswerRe: SL Content not displaying Pin
DotNetXenon23-Sep-11 4:19
DotNetXenon23-Sep-11 4:19 
GeneralRe: SL Content not displaying Pin
JMurfey23-Sep-11 12:57
JMurfey23-Sep-11 12:57 
GeneralRe: SL Content not displaying Pin
JMurfey26-Sep-11 10:15
JMurfey26-Sep-11 10:15 
QuestionDynamicly load DLL's Pin
columbos1492718-Sep-11 22:54
columbos1492718-Sep-11 22:54 
AnswerRe: Dynamicly load DLL's Pin
Daniel.Grondal19-Sep-11 23:31
Daniel.Grondal19-Sep-11 23:31 
Question"XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" Pin
devvvy18-Sep-11 16:41
devvvy18-Sep-11 16:41 
AnswerRe: "XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" Pin
Mamta D19-Sep-11 18:29
Mamta D19-Sep-11 18:29 
AnswerRe: ToString vs Simple DataTemplate Pin
SledgeHammer0115-Sep-11 13:10
SledgeHammer0115-Sep-11 13:10 
GeneralRe: ToString vs Simple DataTemplate Pin
Member 103390715-Sep-11 22:47
Member 103390715-Sep-11 22:47 
AnswerRe: ToString vs Simple DataTemplate Pin
Kim Breugelmans15-Sep-11 22:54
Kim Breugelmans15-Sep-11 22:54 
AnswerRe: ToString vs Simple DataTemplate Pin
Member 103390715-Sep-11 22:57
Member 103390715-Sep-11 22:57 
GeneralRe: ToString vs Simple DataTemplate Pin
Member 103390717-Sep-11 9:34
Member 103390717-Sep-11 9:34 
AnswerRe: ToString vs Simple DataTemplate Pin
Simon Bang Terkildsen16-Sep-11 6:05
Simon Bang Terkildsen16-Sep-11 6:05 
AnswerRe: Tab Change DataContext becomes Null Pin
Pete O'Hanlon15-Sep-11 4:52
mvePete O'Hanlon15-Sep-11 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.