Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions DrillDown_Sample/Drill_Down_Sample.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.13.35931.197 d17.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Drill_Down_Sample", "Drill_Down_Sample\Drill_Down_Sample.csproj", "{C4EA0C60-64C9-4014-A19E-96D82BC2271E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|ARM64.ActiveCfg = Debug|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|ARM64.Build.0 = Debug|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|ARM64.Deploy.0 = Debug|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x64.ActiveCfg = Debug|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x64.Build.0 = Debug|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x64.Deploy.0 = Debug|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x86.ActiveCfg = Debug|x86
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x86.Build.0 = Debug|x86
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Debug|x86.Deploy.0 = Debug|x86
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|ARM64.ActiveCfg = Release|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|ARM64.Build.0 = Release|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|ARM64.Deploy.0 = Release|ARM64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x64.ActiveCfg = Release|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x64.Build.0 = Release|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x64.Deploy.0 = Release|x64
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x86.ActiveCfg = Release|x86
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x86.Build.0 = Release|x86
{C4EA0C60-64C9-4014-A19E-96D82BC2271E}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2E010518-1752-4A73-A5FD-E7EEB1A2E218}
EndGlobalSection
EndGlobal
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using Microsoft.UI.Xaml;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
Expand All @@ -35,14 +35,13 @@ public App()
this.InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
/// <summary>
/// Invoked when the application is launched.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
// Create a Frame to act as the navigation context and navigate to the first page
Frame rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
// Navigate to the first page, configuring the new page
Expand All @@ -54,11 +53,7 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs ar
m_window.Activate();
}

private Window m_window;

// App.xaml.cs


private Window? m_window;

void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>Drill_Down_Sample</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<None Remove="MainPage.xaml" />
<None Remove="MainWindow.xaml" />
<None Remove="NewPage.xaml" />
</ItemGroup>

Expand All @@ -28,13 +28,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230602002" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<PackageReference Include="Syncfusion.Chart.WinUI" Version="22.1.36" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

<!--
<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored.
Expand All @@ -43,27 +40,35 @@
<ProjectCapability Include="Msix" />
</ItemGroup>
<ItemGroup>
<Page Update="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.3916" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250401001" />
<PackageReference Include="Syncfusion.Chart.WinUI" Version="*" />
</ItemGroup>
<ItemGroup>
<Page Update="MainPage.xaml">
<Page Update="NewPage.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="NewPage.xaml">
<Page Update="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>

<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
the Windows App SDK Nuget package has not yet been restored.
-->
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
</PropertyGroup>
</Project>

<!-- Publish Properties -->
<PropertyGroup>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<PublishTrimmed Condition="'$(Configuration)' == 'Debug'">False</PublishTrimmed>
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:local="using:Drill_Down_Sample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
mc:Ignorable="d"
xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Syncfusion.UI.Xaml.Charts;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand All @@ -19,7 +30,6 @@ public MainPage()
this.InitializeComponent();
}


private void DataPointSelectionBehavior_SelectionChanged(object sender, Syncfusion.UI.Xaml.Charts.ChartSelectionChangedEventArgs e)
{
var series = sender as PieSeries;
Expand All @@ -33,7 +43,7 @@ private void DataPointSelectionBehavior_SelectionChanged(object sender, Syncfusi
list.Add(selectedData);
list.Add(brush);
// Navigate to the next page which is representing the chart with details.
Frame.Navigate(typeof(NewPage),list);
Frame.Navigate(typeof(NewPage), list);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<Window
x:Class="Drill_Down_Sample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Drill_Down_Sample"
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"
mc:Ignorable="d">

<Grid>
mc:Ignorable="d"
xmlns:local="using:Drill_Down_Sample"
Title="Drill_Down_Sample">

<Grid>
</Grid>
</Window>
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Syncfusion.UI.Xaml.Charts;
using Windows.Foundation;
using Windows.Foundation.Collections;

Expand All @@ -26,6 +28,6 @@ public sealed partial class MainWindow : Window
public MainWindow()
{
this.InitializeComponent();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Drill_Down_Sample"
xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.1*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<HyperlinkButton Content="Back" Grid.Column="0" VerticalAlignment="Top"
Margin="0,90,0,0" Click="HyperlinkButton_Click"
HorizontalAlignment="Left"/>
Margin="0,90,0,0" Click="HyperlinkButton_Click"
HorizontalAlignment="Left"/>

<Grid Grid.Column="1">
<chart:SfCartesianChart x:Name="chart" Margin="20"
HorizontalAlignment="Center" VerticalAlignment="Center">
HorizontalAlignment="Center" VerticalAlignment="Center">

<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis />
</chart:SfCartesianChart.XAxes>
Expand All @@ -30,9 +31,9 @@
</chart:SfCartesianChart.YAxes>

<chart:ColumnSeries x:Name="series"
XBindingPath="Type" ShowDataLabels="True"
YBindingPath="Value"
ItemsSource="{Binding Collections}"/>
XBindingPath="Type" ShowDataLabels="True"
YBindingPath="Value"
ItemsSource="{Binding Collections}"/>

</chart:SfCartesianChart>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using static System.Net.WebRequestMethods;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand All @@ -24,29 +23,27 @@ namespace Drill_Down_Sample
/// </summary>
public sealed partial class NewPage : Page
{

public NewPage()
{
this.InitializeComponent();
}

private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(MainPage));
}

protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (e.Parameter is object)
{
List<object> item = (List<object>)e.Parameter;
DataContext = item[0];
DataContext = item[0];
Model model = DataContext as Model;
chart.Header = "Monthly Expense Of " + model.Type.ToString();
series.Fill = (Brush)item[1];
}

base.OnNavigatedTo(e);
}
private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(MainPage));
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
IgnorableNamespaces="uap rescap">

<Identity
Name="1e81a2a7-e257-4167-adfd-54d33124da03"
Publisher="CN=NanthiniMahalingam"
Name="62136d42-8c39-4107-b364-792d6d897a8c"
Publisher="CN=HarshaMidadh_xkvon6h"
Version="1.0.0.0" />

<mp:PhoneIdentity PhoneProductId="1e81a2a7-e257-4167-adfd-54d33124da03" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<mp:PhoneIdentity PhoneProductId="62136d42-8c39-4107-b364-792d6d897a8c" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

<Properties>
<DisplayName>Drill_Down_Sample</DisplayName>
<PublisherDisplayName>NanthiniMahalingam</PublisherDisplayName>
<PublisherDisplayName>HarshaMidadh_xkvon6h</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

Expand Down
Loading