Skip to content

Commit

Permalink
included wpf sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
subash-sf committed Oct 24, 2024
1 parent f5b0cfe commit f7d8f1c
Show file tree
Hide file tree
Showing 19 changed files with 440 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\WPF\\MultipleTrackballWPF\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|d:\\wpf\\multipletrackballwpf\\multipletrackballwpf\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|solutionrelative:multipletrackballwpf\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|d:\\wpf\\multipletrackballwpf\\multipletrackballwpf\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
"RelativeMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|solutionrelative:multipletrackballwpf\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 301,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "MainWindow.xaml",
"DocumentMoniker": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml",
"RelativeDocumentMoniker": "MultipleTrackballWPF\\MainWindow.xaml",
"ToolTip": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml",
"RelativeToolTip": "MultipleTrackballWPF\\MainWindow.xaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-10-24T04:14:48.947Z",
"IsPinned": true,
"EditorCaption": ""
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{be4d7042-ba3f-11d2-840e-00c04f9902c1}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "MainWindow.xaml.cs",
"DocumentMoniker": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml.cs",
"RelativeDocumentMoniker": "MultipleTrackballWPF\\MainWindow.xaml.cs",
"ToolTip": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml.cs",
"RelativeToolTip": "MultipleTrackballWPF\\MainWindow.xaml.cs",
"ViewState": "AgIAAJcAAAAAAAAAAAAwwK4AAAAMAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-24T04:14:46.243Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\WPF\\MultipleTrackballWPF\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|d:\\wpf\\multipletrackballwpf\\multipletrackballwpf\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|solutionrelative:multipletrackballwpf\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|d:\\wpf\\multipletrackballwpf\\multipletrackballwpf\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
"RelativeMoniker": "D:0:0:{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}|MultipleTrackballWPF\\MultipleTrackballWPF.csproj|solutionrelative:multipletrackballwpf\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 301,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "MainWindow.xaml",
"DocumentMoniker": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml",
"RelativeDocumentMoniker": "MultipleTrackballWPF\\MainWindow.xaml",
"ToolTip": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml",
"RelativeToolTip": "MultipleTrackballWPF\\MainWindow.xaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-10-24T04:14:48.947Z",
"IsPinned": true,
"EditorCaption": ""
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{be4d7042-ba3f-11d2-840e-00c04f9902c1}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "MainWindow.xaml.cs",
"DocumentMoniker": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml.cs",
"RelativeDocumentMoniker": "MultipleTrackballWPF\\MainWindow.xaml.cs",
"ToolTip": "D:\\WPF\\MultipleTrackballWPF\\MultipleTrackballWPF\\MainWindow.xaml.cs",
"RelativeToolTip": "MultipleTrackballWPF\\MainWindow.xaml.cs",
"ViewState": "AgIAAIUAAAAAAAAAAAAWwI4AAAAUAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-10-24T04:14:46.243Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions MultipleTrackballWPF/MultipleTrackballWPF.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35327.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultipleTrackballWPF", "MultipleTrackballWPF\MultipleTrackballWPF.csproj", "{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A04881E-CD88-43C6-8CB3-09CEE9DAEB1F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9B35963C-DD8F-4251-8F53-515F1D1B9FFF}
EndGlobalSection
EndGlobal
9 changes: 9 additions & 0 deletions MultipleTrackballWPF/MultipleTrackballWPF/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="MultipleTrackballWPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MultipleTrackballWPF"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
14 changes: 14 additions & 0 deletions MultipleTrackballWPF/MultipleTrackballWPF/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Configuration;
using System.Data;
using System.Windows;

namespace MultipleTrackballWPF
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

}
10 changes: 10 additions & 0 deletions MultipleTrackballWPF/MultipleTrackballWPF/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
45 changes: 45 additions & 0 deletions MultipleTrackballWPF/MultipleTrackballWPF/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<Window x:Class="MultipleTrackballWPF.MainWindow"
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:local="clr-namespace:MultipleTrackballWPF"
xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>

<chart:SfChart x:Name="chart" Header="Chart">

<chart:SfChart.DataContext>
<local:ViewModel/>
</chart:SfChart.DataContext>

<chart:SfChart.Resources>
<Style TargetType="chart:ChartTrackBallControl" x:Key="trackballStyle1">
<Setter Property="Background" Value="Orange"/>
</Style>
<Style TargetType="chart:ChartTrackBallControl" x:Key="trackballStyle2">
<Setter Property="Background" Value="LawnGreen"/>
</Style>
</chart:SfChart.Resources>

<chart:SfChart.Behaviors>
<local:ChartTrackBallBehaviorExt x:Name="trackball1" ChartTrackBallStyle="{StaticResource trackballStyle1}"/>
<local:ChartTrackBallBehaviorExt x:Name="trackball2" ChartTrackBallStyle="{StaticResource trackballStyle2}"/>
</chart:SfChart.Behaviors>

<chart:SfChart.PrimaryAxis>
<chart:CategoryAxis ShowTrackBallInfo="True" Header="Name" PlotOffsetEnd="50" />
</chart:SfChart.PrimaryAxis>

<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis ShowTrackBallInfo="True" Header="Height (in cm)" Minimum="150" Maximum="200" Interval="4" />
</chart:SfChart.SecondaryAxis>

<chart:FastLineSeries ItemsSource="{Binding Data}" XBindingPath="Name" YBindingPath="Height" />

</chart:SfChart>

</Grid>
</Window>
Loading

0 comments on commit f7d8f1c

Please sign in to comment.