v27.2.2
|
@ -0,0 +1,8 @@
|
|||
<Application
|
||||
x:Class="Syncfusion.SampleBrowser.UWP.Barcode.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Syncfusion.SampleBrowser.UWP.Barcode"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
|
@ -0,0 +1,123 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
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;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.Foundation.Metadata;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using Syncfusion.Licensing;
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.Barcode
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
sealed partial class App : Application
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the singleton application object. This is the first line of authored code
|
||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Suspending += OnSuspending;
|
||||
SyncfusionLicenseProvider.RegisterLicense(Common.DemoCommon.FindLicenseKey("Syncfusion.SampleBrowser.UWP.Barcode.SyncfusionLicense.txt"));
|
||||
}
|
||||
|
||||
public object SampleViews { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||
/// will be used such as when the application is launched to open a specific file.
|
||||
/// </summary>
|
||||
/// <param name="e">Details about the launch request and process.</param>
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
||||
{
|
||||
#if DEBUG
|
||||
if (System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
this.DebugSettings.EnableFrameRateCounter = true;
|
||||
}
|
||||
#endif
|
||||
Frame rootFrame = Window.Current.Content as Frame;
|
||||
|
||||
// Do not repeat app initialization when the Window already has content,
|
||||
// just ensure that the window is active
|
||||
if (rootFrame == null)
|
||||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
rootFrame = new Frame();
|
||||
|
||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
||||
|
||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
||||
{
|
||||
//TODO: Load state from previously suspended application
|
||||
}
|
||||
|
||||
// Place the frame in the current Window
|
||||
Window.Current.Content = rootFrame;
|
||||
}
|
||||
|
||||
if (e.PrelaunchActivated == false)
|
||||
{
|
||||
|
||||
SamplesConfiguration barcodeConfig = new SamplesConfiguration();
|
||||
|
||||
if (rootFrame.Content == null)
|
||||
{
|
||||
// When the navigation stack isn't restored navigate to the first page,
|
||||
// configuring the new page by passing required information as a navigation
|
||||
// parameter
|
||||
rootFrame.Navigate(typeof(Common.MainPage), e.Arguments);
|
||||
|
||||
}
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when Navigation to a certain page fails
|
||||
/// </summary>
|
||||
/// <param name="sender">The Frame which failed navigation</param>
|
||||
/// <param name="e">Details about the navigation failure</param>
|
||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when application execution is being suspended. Application state is saved
|
||||
/// without knowing whether the application will be terminated or resumed with the contents
|
||||
/// of memory still intact.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the suspend request.</param>
|
||||
/// <param name="e">Details about the suspend request.</param>
|
||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||
{
|
||||
var deferral = e.SuspendingOperation.GetDeferral();
|
||||
//TODO: Save application state and stop any background activity
|
||||
deferral.Complete();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ApplicationInsights xmlns = "http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
|
||||
</ApplicationInsights>
|
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 7.5 KiB |
После Ширина: | Высота: | Размер: 2.9 KiB |
После Ширина: | Высота: | Размер: 1.6 KiB |
После Ширина: | Высота: | Размер: 1.2 KiB |
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 3.1 KiB |
|
@ -0,0 +1,40 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Codabar"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="01234567" Symbology="Codabar">
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="01234567"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,97 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Codabar : UserControl
|
||||
{
|
||||
public Codabar()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0-9, a dash(-)";
|
||||
CodabarSetting codabar = new CodabarSetting();
|
||||
codabar.BarHeight = 120;
|
||||
barcode.SymbologySettings = codabar;
|
||||
barcodeTxt.Text = "01234567";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when this page is about to be displayed in a Frame.
|
||||
/// </summary>
|
||||
/// <param name="e">Event data that describes how this page was reached. The Parameter
|
||||
/// property is typically used to configure the page.</param>
|
||||
//protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
//{
|
||||
//}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\d\-\$\:\/\.\+]+$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if(flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code11"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="01234567" Symbology="Code11">
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="http://www.syncfusion.com"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,89 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code11 : UserControl
|
||||
{
|
||||
public Code11()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0-9, a dash(-)";
|
||||
Code11Setting code11 = new Code11Setting();
|
||||
code11.BarHeight = 120;
|
||||
barcode.SymbologySettings = code11;
|
||||
barcodeTxt.Text = "01234567";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[0-9\-]*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code128A"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code128A">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,20,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,94 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code128A : UserControl
|
||||
{
|
||||
public Code128A()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "NUL (0x00) SOH (0x01) STX (0x02) ETX (0x03) EOT"
|
||||
+ "(0x04) ENQ (0x05) ACK (0x06) BEL (0x07) BS (0x08) HT (0x09) LF (0x0A) VT"
|
||||
+ "(0x0B) FF (0x0C) CR (0x0D) SO (0x0E) SI (0x0F) DLE (0x10) DC1 (0x11) DC2"
|
||||
+ "(0x12) DC3 (0x13) DC4 (0x14) NAK (0x15) SYN (0x16) ETB (0x17) CAN"
|
||||
+ "(0x18) EM (0x19) SUB (0x1A) ESC (0x1B) FS (0x1C) GS (0x1D) RS (0x1E) US"
|
||||
+ "(0x1F) SPACE (0x20) \" ! # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A"
|
||||
+ "B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ / ]^ _";
|
||||
Code128ASetting code128A = new Code128ASetting();
|
||||
code128A.BarHeight = 120;
|
||||
barcode.SymbologySettings = code128A;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\000-\137]*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code128B"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code128B">
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,90 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code128B : UserControl
|
||||
{
|
||||
public Code128B()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "SPACE (0x20) ! \" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 :"
|
||||
+ "; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ / ]^ _ ` a"
|
||||
+ "b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL (•)";
|
||||
Code128BSetting code128B = new Code128BSetting();
|
||||
code128B.BarHeight = 120;
|
||||
barcode.SymbologySettings = code128B;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\040-\177]*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code128C"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="01234567" Symbology="Code128C">
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="http://www.syncfusion.com"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code128C : UserControl
|
||||
{
|
||||
public Code128C()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0 1 2 3 4 5 6 7 8 9";
|
||||
Code128CSetting code128C = new Code128CSetting();
|
||||
code128C.BarHeight = 120;
|
||||
barcode.SymbologySettings = code128C;
|
||||
barcodeTxt.Text = "01234567";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^(([0-9]{2})+?)*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code32"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="01234567" Symbology="Code32">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="http://www.syncfusion.com"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,89 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code32 : UserControl
|
||||
{
|
||||
public Code32()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "1 2 3 4 5 6 7 8 9 0\nText length should be 8!!!";
|
||||
Code32Setting code32 = new Code32Setting();
|
||||
code32.BarHeight = 120;
|
||||
barcode.SymbologySettings = code32;
|
||||
barcodeTxt.Text = "01234567";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[0-9\-]*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success || barcodeTxt.Text.Length != 8)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code39"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code39">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code39 :UserControl
|
||||
{
|
||||
public Code39()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0-9, A-Z,a dash(-),a dot(.),$,/,+,%, SPACE";
|
||||
Code39Setting code39 = new Code39Setting();
|
||||
code39.BarHeight = 120;
|
||||
barcode.SymbologySettings = code39;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\x41-\x5A\x30-\x39\x20\-\.\$\/\+\%\ ]+$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code39Ext"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code39Extended">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code39Ext :UserControl
|
||||
{
|
||||
public Code39Ext()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0-9 A-Z a-z";
|
||||
Code39ExtendedSetting code39Ex = new Code39ExtendedSetting();
|
||||
code39Ex.BarHeight = 120;
|
||||
barcode.SymbologySettings = code39Ex;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\x00-\x7F]+$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code93"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code93">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code93 :UserControl
|
||||
{
|
||||
public Code93()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - . $ / + % SPACE";
|
||||
Code93Setting code93 = new Code93Setting();
|
||||
code93.BarHeight = 120;
|
||||
barcode.SymbologySettings = code93;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\x41-\x5A\x30-\x39\x20\-\.\$\/\+\%\ ]+$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.Code93Ext"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="SYNCFUSION" Symbology="Code93Extended">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="SYNCFUSION"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class Code93Ext :UserControl
|
||||
{
|
||||
public Code93Ext()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "All 128 ASCII characters";
|
||||
Code93ExtendedSetting code93Ex = new Code93ExtendedSetting();
|
||||
code93Ex.BarHeight = 120;
|
||||
barcode.SymbologySettings = code93Ex;
|
||||
barcodeTxt.Text = "SYNCFUSION";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\000-\177]*$";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.QRBarcode"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="http://www.syncfusion.com" Symbology="QRBarcode">
|
||||
<sync:SfBarcode.SymbologySettings>
|
||||
<sync:QRBarcodeSetting XDimension="8"/>
|
||||
</sync:SfBarcode.SymbologySettings>
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="http://www.syncfusion.com"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" * Invalid characters found in entered text" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,88 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class QRBarcode : UserControl
|
||||
{
|
||||
public QRBarcode()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "0-9, A-Z,a dash(-),a dot(.),$,/,+,%, SPACE";
|
||||
QRBarcodeSetting setting = new QRBarcodeSetting();
|
||||
setting.XDimension = 8;
|
||||
barcode.SymbologySettings = setting;
|
||||
barcodeTxt.Text = @"http://www.syncfusion.com";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = "";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<UserControl
|
||||
x:Class="BarcodeControl.UpcBarcode"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:BarcodeControl"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" xmlns:sync="using:Syncfusion.UI.Xaml.Controls.Barcode" Loaded="Page_Loaded_1">
|
||||
|
||||
<Grid Background="#FFEDEDEB" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Background="White" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<sync:SfBarcode x:Name="barcode" Text="01234567890" Symbology="UpcBarcode">
|
||||
</sync:SfBarcode>
|
||||
</Border>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock Foreground="Black" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Left">Text to encode</TextBlock>
|
||||
<TextBox Margin="3" Width="300" BorderBrush="Black" FontSize="14" HorizontalAlignment="Left" FontWeight="Medium" x:Name="barcodeTxt" Text="01234567890"></TextBox>
|
||||
<TextBlock Margin="3" x:Name="errorNotify" Text=" Text Length should be 11 or 12!!!" VerticalAlignment="Top" FontStyle="Italic" Foreground="Red" Visibility="Collapsed"></TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,30,0,0" Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||
<TextBlock FontSize="16" Width="300" Foreground="Black" Text="Allowed Characters:"/>
|
||||
<TextBlock Margin="3" Width="300" FontSize="14" Foreground="Black" x:Name="barCodeTip" TextWrapping="Wrap" TextAlignment="Justify"/>
|
||||
</StackPanel>
|
||||
<Button Margin="0,30,0,0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Top" Content="Update Barcode" Click="Button_Click_1"></Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
|
@ -0,0 +1,89 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Syncfusion.UI.Xaml.Controls.Barcode;
|
||||
using Common;
|
||||
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
||||
|
||||
namespace BarcodeControl
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class UpcBarcode : UserControl
|
||||
{
|
||||
public UpcBarcode()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
barCodeTip.Text = "1 2 3 4 5 6 7 8 9 0\nText length should be 11 or 12!!!";
|
||||
UpcBarcodeSetting codeUpc = new UpcBarcodeSetting();
|
||||
codeUpc.BarHeight = 120;
|
||||
barcodeTxt.Text = "01234567890";
|
||||
}
|
||||
|
||||
private void Page_Loaded_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
barcodeTxt.GotFocus += barcodeTxt_GotFocus;
|
||||
}
|
||||
|
||||
void barcodeTxt_GotFocus(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBox box = sender as TextBox;
|
||||
box.SelectAll();
|
||||
}
|
||||
|
||||
private bool ValidateText()
|
||||
{
|
||||
string expression = @"^[\x00-\x7F]";
|
||||
bool success = false;
|
||||
|
||||
Regex validator = new Regex(expression, RegexOptions.Singleline);
|
||||
if (!validator.Match(barcodeTxt.Text).Success || barcodeTxt.Text.Length != 11 && barcodeTxt.Text.Length != 12)
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Visible;
|
||||
success = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorNotify.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
|
||||
success = true;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private void Button_Click_1(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool flag = ValidateText();
|
||||
if (flag)
|
||||
barcode.Text = barcodeTxt.Text;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
barcodeTxt.GotFocus -= barcodeTxt_GotFocus;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
Syncfusion.SampleBrowser.UWP.Common.dll
|
||||
Syncfusion.SfAccordion.UWP.dll
|
||||
Syncfusion.SfInput.UWP.dll
|
||||
Syncfusion.SfShared.UWP.dll
|
||||
Syncfusion.SfTabControl.UWP.dll
|
||||
Syncfusion.SfBarcode.UWP.dll
|
||||
Syncfusion.Licensing.dll
|
|
@ -0,0 +1,13 @@
|
|||
<Page
|
||||
x:Class="Syncfusion.SampleBrowser.UWP.Barcode.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Syncfusion.SampleBrowser.UWP.Barcode"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
|
||||
</Grid>
|
||||
</Page>
|
|
@ -0,0 +1,37 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.Barcode
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class MainPage : Page
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True"/>
|
||||
<add key="automatic" value="True"/>
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"/>
|
||||
<add key="Syncfusion UWP Package 27.2.2" value="https://api.nuget.org/v3/index.json"/></packageSources>
|
||||
<activePackageSource>
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False"/>
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
IgnorableNamespaces="uap mp">
|
||||
|
||||
<Identity
|
||||
Name="52303aa8-aaa8-4d7f-9c0c-4d39a1f992c6"
|
||||
Publisher="CN=karthikkrishnaraj"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="52303aa8-aaa8-4d7f-9c0c-4d39a1f992c6" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>Syncfusion.SampleBrowser.UWP.Barcode</DisplayName>
|
||||
<PublisherDisplayName>karthikkrishnaraj</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="Syncfusion.SampleBrowser.UWP.Barcode.App">
|
||||
<uap:VisualElements
|
||||
DisplayName="Syncfusion.SampleBrowser.UWP.Barcode"
|
||||
Square150x150Logo="Assets\Square150x150Logo.png"
|
||||
Square44x44Logo="Assets\Square44x44Logo.png"
|
||||
Description="Syncfusion.SampleBrowser.UWP.Barcode"
|
||||
BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,35 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Syncfusion.SampleBrowser.UWP.Barcode")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Syncfusion Inc.")]
|
||||
[assembly: AssemblyProduct("Syncfusion.SampleBrowser.UWP.Barcode")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2001-2024 Syncfusion Inc.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: ComVisible(false)]
|
|
@ -0,0 +1,31 @@
|
|||
<!--
|
||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||
optimizer.
|
||||
|
||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||
the application package. The asterisks are not wildcards.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Add your application specific runtime directives here. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|
|
@ -0,0 +1,145 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Products>
|
||||
<TileGroup Header="Showcase">
|
||||
|
||||
|
||||
|
||||
<Tile Header="Stock Analysis"
|
||||
Type="StockAnalysis.StockAnalysis"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF292C2A"
|
||||
Image="Images/stock_tile.jpg"
|
||||
Description="This sample analyzes the historical stock prices of several companies."/>
|
||||
|
||||
<Tile Header="Organizational Chart"
|
||||
Type="OrganizationalChartDemo.MainPage"
|
||||
Assembly="SampleBrowser"
|
||||
Color="#FF67CFDD"
|
||||
ShowAppBar="True"
|
||||
ShowinWP="False"
|
||||
AppBarColor="#FF33AEB7"
|
||||
Image="Images/organisation.png"
|
||||
Description="This sample displays an organizational chart that can be expanded and collapsed as required."/>
|
||||
|
||||
<Tile Header="Diagram Builder"
|
||||
Type="DiagramBuilder.MainPage"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF087196"
|
||||
ShowinWP="False"
|
||||
Image="Images/Diagrambuilder.png"
|
||||
Description="This samples displays Diagram builder."/>
|
||||
|
||||
|
||||
|
||||
<Tile Header="Floor Planner"
|
||||
Type="FloorPlannerDemo.MainPage"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF087196"
|
||||
ShowinWP="False"
|
||||
Image="Images/floor-planner-tile.png"
|
||||
Description="This sample displays an floor plan designer."/>
|
||||
|
||||
<Tile Header="Workflow Editor"
|
||||
Type="WorkFlowEditor.MainPage"
|
||||
Assembly="SampleBrowser"
|
||||
Color="#FF67CFDD"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF33AEB7"
|
||||
RowSpan="2"
|
||||
ShowinWP="False"
|
||||
Image="Images/work-flow.png"
|
||||
Description="This sample displays an workflow editor for process automation."/>
|
||||
|
||||
<Tile Header="UML Diagramming"
|
||||
Type="UMLDiagramDesigner.MainPage"
|
||||
Assembly="SampleBrowser"
|
||||
Color="#FF67CFDD"
|
||||
AppBarColor="#FF949F44"
|
||||
ShowinWP="False"
|
||||
Image="Images/uml.png"
|
||||
Description="This sample lets uses create and save UML diagrams using the diagram controls touch interface."/>
|
||||
|
||||
<Tile Header="Expense Analysis"
|
||||
Type="ExpenseAnalysisDemo.HomePage"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
Image="Images/ExpenseDetails.png"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FFB51111"
|
||||
Description="This sample simulates a Expense Analysis that would use to compare actuals to budgets . "/>
|
||||
|
||||
<!--<Tile Header="Mind Map"
|
||||
Type="MindMapDemo.MainPage"
|
||||
Assembly="SampleBrowser"
|
||||
Color="#FF67CFDD"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF33AEB7"
|
||||
ShowinWP="False"
|
||||
Image="Images/mind-map.png"
|
||||
Description="This sample displays mind map concept."/>-->
|
||||
|
||||
<Tile Header="Invoice generator"
|
||||
Type="Invoice.MainPage"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF087196"
|
||||
Image="Images/invoice.png"
|
||||
Description="This samples lets users generate an invoice in Excel, Word and PDF file formats."/>
|
||||
|
||||
|
||||
|
||||
<Tile Header="Unit Converter"
|
||||
Type="UnitConverter.SamplePage"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF939D46"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
Image="Images/unit.png"
|
||||
Description="This sample lets uses convert data between several commonly used units."/>
|
||||
<Tile Header="Sales Analysis"
|
||||
Type="SalesAnalysis_Demo.SalesAnalysisDemo"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF292C2A"
|
||||
Image="Images/sales.png" RowSpan="2"
|
||||
Description="This sample simulates a sales analysis dashboard that can be used to analyze the sales vs. target data."/>
|
||||
<Tile Header="Car Dashboard" ShowinWP="True"
|
||||
Type="SampleBrowser.Gauge.SpeedTrackDemo"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF292C2A"
|
||||
Image="Images/speed.png" Description="This sample simulates the radial gauges in a car dashboard."/>
|
||||
|
||||
<Tile Header="Document Editor"
|
||||
Type="RTEDemo.DocumentEditor" ShowinWP="False"
|
||||
Assembly="SampleBrowser" Color="#FF949F44"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF292C2A"
|
||||
Image="Images/document_tile.jpg"
|
||||
Description=""/>
|
||||
|
||||
<Tile Header="Wireframe Studio"
|
||||
Type="Mockup.MainPage"
|
||||
Assembly="SampleBrowser"
|
||||
Color="#FF67CFDD"
|
||||
ShowAppBar="True"
|
||||
AppBarColor="#FF33AEB7"
|
||||
ShowinWP="False"
|
||||
Image="Images/Mockup.png"
|
||||
Description="This sample displays a Mockup."/>
|
||||
|
||||
</TileGroup>
|
||||
|
||||
<TileGroup Header="All Controls">
|
||||
|
||||
|
||||
<Tile Header="Barcode" CategoryName="Barcode" Type="BarcodeControlDemo.MainPage"
|
||||
EnablePreview="false"
|
||||
Assembly="SampleBrowser"
|
||||
Image="Assets/Icons/barcode.png"
|
||||
Tags="barcode, 1D, 2D, barcodecontrol"
|
||||
Description="Barcode control renders bar codes in a Windows Store Application. The control can be merged with into any Windows Store Apps and easy to encode text using the supported symbol types."/>
|
||||
|
||||
</TileGroup>
|
||||
</Products>
|
|
@ -0,0 +1,145 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.Barcode
|
||||
{
|
||||
public class SamplesConfiguration
|
||||
{
|
||||
public SamplesConfiguration()
|
||||
{
|
||||
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Codabar).AssemblyQualifiedName,
|
||||
Header = "Codabar",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
ProductIcons = "Icons/barcode.png",
|
||||
SearchKeys = new string[] { "Codabar", "Coda", "bar" }
|
||||
});
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code11).AssemblyQualifiedName,
|
||||
Header = "Code11",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code11", "code", "11" }
|
||||
});
|
||||
#if (!STORE_SB)
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.UpcBarcode).AssemblyQualifiedName,
|
||||
Header = "UpcBarcode",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "UpcBarcode","Upc","Barcode" }
|
||||
});
|
||||
#endif
|
||||
#if (!STORE_SB)
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code128A).AssemblyQualifiedName,
|
||||
Header = "Code128A",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code128A", "128A", "code" }
|
||||
});
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code128B).AssemblyQualifiedName,
|
||||
Header = "Code128B",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code128B", "128B", "code" }
|
||||
});
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView =typeof(BarcodeControl.Code128C).AssemblyQualifiedName,
|
||||
Header = "Code128C",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code128C", "128C", "code" }
|
||||
});
|
||||
#endif
|
||||
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView =typeof(BarcodeControl.Code32).AssemblyQualifiedName,
|
||||
Header = "Code32",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code32", "32", "code" }
|
||||
});
|
||||
#if (!STORE_SB)
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code39).AssemblyQualifiedName,
|
||||
Header = "Code39",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code39", "39", "code" }
|
||||
});
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code39Ext).AssemblyQualifiedName,
|
||||
Header = "Code39Ext",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code39Ext", "39", "Ext" }
|
||||
|
||||
});
|
||||
#endif
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code93).AssemblyQualifiedName,
|
||||
Header = "Code93",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code93", "93", "code" }
|
||||
});
|
||||
#if (!STORE_SB)
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.Code93Ext).AssemblyQualifiedName,
|
||||
Header = "Code93Ext",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "Code93Ext", "93", "Ext" }
|
||||
});
|
||||
#endif
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(BarcodeControl.QRBarcode).AssemblyQualifiedName,
|
||||
Header = "QRBarcode",
|
||||
Category = Categories.DataVisualization,
|
||||
Product = "Barcode",
|
||||
Tag = Tags.None,
|
||||
SearchKeys = new string[] { "QRBarcode", "QR", "Barcode" }
|
||||
});
|
||||
|
||||
SampleHelper.SetTagsForProduct("Barcode", Tags.None);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,386 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{55694D0F-07E4-4B35-B0E4-939EF98E1014}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Syncfusion.SampleBrowser.UWP.Barcode</RootNamespace>
|
||||
<AssemblyName>Syncfusion.SampleBrowser.UWP.Barcode</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<PackageCertificateKeyFile>Syncfusion.SampleBrowser.UWP.Barcode_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|AnyCPU'">
|
||||
<OutputPath>bin\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<DocumentationFile>bin\Release-Xml\Syncfusion.SampleBrowser.UWP.Barcode.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x86'">
|
||||
<OutputPath>bin\x86\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|ARM'">
|
||||
<OutputPath>bin\ARM\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x64'">
|
||||
<OutputPath>bin\x64\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"/>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ItemGroup>
|
||||
<Content Include="ApplicationInsights.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Samples\Samples.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<EmbeddedResource Include="SyncfusionLicense.txt"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Codabar.xaml.cs">
|
||||
<DependentUpon>Codabar.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code11.xaml.cs">
|
||||
<DependentUpon>Code11.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code128A.xaml.cs">
|
||||
<DependentUpon>Code128A.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code128B.xaml.cs">
|
||||
<DependentUpon>Code128B.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code128C.xaml.cs">
|
||||
<DependentUpon>Code128C.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code32.xaml.cs">
|
||||
<DependentUpon>Code32.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code39.xaml.cs">
|
||||
<DependentUpon>Code39.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code39Ext.xaml.cs">
|
||||
<DependentUpon>Code39Ext.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code93.xaml.cs">
|
||||
<DependentUpon>Code93.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\Code93Ext.xaml.cs">
|
||||
<DependentUpon>Code93Ext.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\QRBarcode.xaml.cs">
|
||||
<DependentUpon>QRBarcode.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BarcodeControl\UpcBarcode.xaml.cs">
|
||||
<DependentUpon>UpcBarcode.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs"/>
|
||||
<Compile Include="SamplesConfiguration.cs"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<None Include="Syncfusion.SampleBrowser.UWP.Barcode_TemporaryKey.pfx"/>
|
||||
<PackageReference Include="Syncfusion.SampleBrowser.UWP.Common" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfAccordion.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfInput.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTabControl.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBarcode.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Calculate.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Data.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Presentation.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DocIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBulletGraph.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBusyIndicator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCarousel.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRadialMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfColorPickers.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDiagram.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.XlsIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHubTile.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMaps.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRichTextBoxAdv.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSchedule.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTileView.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeNavigator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRibbon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPdfViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfProgressBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGroupBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGridCommon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.ExcelChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCellGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheet.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheetHelper.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PMML.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Olap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PivotAnalysis.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPullToRefresh.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHeatMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRotator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfReportViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfNavigationDrawer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpellChecker.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfKanban.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotClient.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDockingManager.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSunburstChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGantt.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfImageEditor.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSmithChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Pdf.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DataGridExcelExport.UWP" Version="27.2.2"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Properties\Default.rd.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\SplashScreen.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square150x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\StoreLogo.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Wide310x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="BarcodeControl\Codabar.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code11.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code128A.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code128B.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code128C.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code32.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code39.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code39Ext.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code93.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\Code93Ext.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\QRBarcode.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BarcodeControl\UpcBarcode.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Common\StandardStyles.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="MainPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.0.6</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,52 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28010.2003
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Syncfusion.SampleBrowser.UWP.Barcode", "Syncfusion.SampleBrowser.UWP.Barcode.csproj", "{55694D0F-07E4-4B35-B0E4-939EF98E1014}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|ARM = Debug|ARM
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|ARM = Release|ARM
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Release-Xml|Any CPU = Release-Xml|Any CPU
|
||||
Release-Xml|ARM = Release-Xml|ARM
|
||||
Release-Xml|x64 = Release-Xml|x64
|
||||
Release-Xml|x86 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.Build.0 = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Build.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.Build.0 = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.ActiveCfg = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.Build.0 = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.ActiveCfg = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.Build.0 = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.ActiveCfg = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.Build.0 = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.ActiveCfg = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.Build.0 = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.ActiveCfg = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.Build.0 = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.ActiveCfg = Release-Xml|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.Build.0 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,8 @@
|
|||
<Application
|
||||
x:Class="SampleBrowser.UWP.BulletGraph.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SampleBrowser.UWP.BulletGraph"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
|
@ -0,0 +1,117 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using Syncfusion.Licensing;
|
||||
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;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
namespace SampleBrowser.UWP.BulletGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
sealed partial class App : Application
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the singleton application object. This is the first line of authored code
|
||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Suspending += OnSuspending;
|
||||
SyncfusionLicenseProvider.RegisterLicense(Common.DemoCommon.FindLicenseKey("Syncfusion.SampleBrowser.UWP.BulletGraph.SyncfusionLicense.txt"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||
/// will be used such as when the application is launched to open a specific file.
|
||||
/// </summary>
|
||||
/// <param name="e">Details about the launch request and process.</param>
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
||||
{
|
||||
#if DEBUG
|
||||
if (System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
this.DebugSettings.EnableFrameRateCounter = true;
|
||||
}
|
||||
#endif
|
||||
Frame rootFrame = Window.Current.Content as Frame;
|
||||
|
||||
// Do not repeat app initialization when the Window already has content,
|
||||
// just ensure that the window is active
|
||||
if (rootFrame == null)
|
||||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
rootFrame = new Frame();
|
||||
|
||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
||||
|
||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
||||
{
|
||||
//TODO: Load state from previously suspended application
|
||||
}
|
||||
|
||||
// Place the frame in the current Window
|
||||
Window.Current.Content = rootFrame;
|
||||
}
|
||||
|
||||
if (e.PrelaunchActivated == false)
|
||||
{
|
||||
new Syncfusion.SampleBrowser.UWP.BulletGraph.SamplesConfiguration();
|
||||
if (rootFrame.Content == null)
|
||||
{
|
||||
// When the navigation stack isn't restored navigate to the first page,
|
||||
// configuring the new page by passing required information as a navigation
|
||||
// parameter
|
||||
rootFrame.Navigate(typeof(Common.MainPage), e.Arguments);
|
||||
}
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when Navigation to a certain page fails
|
||||
/// </summary>
|
||||
/// <param name="sender">The Frame which failed navigation</param>
|
||||
/// <param name="e">Details about the navigation failure</param>
|
||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when application execution is being suspended. Application state is saved
|
||||
/// without knowing whether the application will be terminated or resumed with the contents
|
||||
/// of memory still intact.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the suspend request.</param>
|
||||
/// <param name="e">Details about the suspend request.</param>
|
||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||
{
|
||||
var deferral = e.SuspendingOperation.GetDeferral();
|
||||
//TODO: Save application state and stop any background activity
|
||||
deferral.Complete();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ApplicationInsights xmlns = "http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
|
||||
</ApplicationInsights>
|
После Ширина: | Высота: | Размер: 5.3 KiB |
После Ширина: | Высота: | Размер: 17 KiB |
После Ширина: | Высота: | Размер: 53 KiB |
После Ширина: | Высота: | Размер: 11 KiB |
После Ширина: | Высота: | Размер: 1.8 KiB |
После Ширина: | Высота: | Размер: 3.8 KiB |
После Ширина: | Высота: | Размер: 73 KiB |
|
@ -0,0 +1,141 @@
|
|||
<common:SampleLayout
|
||||
x:Class="BulletGraphUWP_Samples.BulletGraph"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SampleBrowser.UWP.BulletGraph"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
xmlns:common="using:Common"
|
||||
xmlns:syncfusion="using:Syncfusion.UI.Xaml.BulletGraph"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
<common:SampleLayout.Sample>
|
||||
<ContentControl>
|
||||
<Grid>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="2005 YTD Actual Vs Budget" FontSize="20" FontFamily="Segoe UI" HorizontalAlignment="Center"/>
|
||||
|
||||
<syncfusion:SfBulletGraph ShowToolTip="False" VerticalAlignment="Center" Grid.Row="1" x:Name="SfBulletGraph1" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Minimum="0" Maximum="300" Interval="50"
|
||||
MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="250" FeaturedMeasure="270" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="10,0,10,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Revenue</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">U.S. $ (1,000s)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="150" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="225" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="300" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
<syncfusion:SfBulletGraph Grid.Row="2" ShowToolTip="False" VerticalAlignment="Center" x:Name="SfBulletGraph2" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Minimum="0" Maximum="150"
|
||||
Interval="25" MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="30" FeaturedMeasure="45" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="10,0,10,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Expenses</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">U.S. $ (1,000s)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="40" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="80" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="150" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
<syncfusion:SfBulletGraph Grid.Row="3" ShowToolTip="False" VerticalAlignment="Center" x:Name="SfBulletGraph3" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Interval="5" Minimum="0" Maximum="30"
|
||||
MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="27" FeaturedMeasure="22.5" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="10,0,10,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Profit</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Percentage (%)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="20" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="25" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="30" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Sample>
|
||||
<common:SampleLayout.Setting>
|
||||
<ContentControl>
|
||||
<Grid HorizontalAlignment="Left">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="10 5" Text="Label Position"/>
|
||||
<ComboBox Grid.Row="4" Margin="10 5" x:Name="cmb_LabelPosition"/>
|
||||
|
||||
<TextBlock Grid.Row="6" Margin="10 5" Text="Tick Position"/>
|
||||
<ComboBox Grid.Row="7" Margin="10 5" x:Name="cmb_TickPosition"/>
|
||||
|
||||
<TextBlock Grid.Row="9" Margin="10 5" Text="Caption Position"/>
|
||||
<ComboBox Grid.Row="10" Margin="10 5" x:Name="cmb_CaptionPosition"/>
|
||||
|
||||
<TextBlock Grid.Row="12" Margin="10 5" Text="MinorTicks Per Interval"/>
|
||||
<Slider Grid.Row="13" Margin="10 5" Minimum="0" Value="3" Maximum="5" Name="sld_MinorTicksPerInterval"/>
|
||||
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Setting>
|
||||
|
||||
</common:SampleLayout>
|
|
@ -0,0 +1,65 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using Syncfusion.UI.Xaml.BulletGraph;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
|
||||
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
|
||||
|
||||
namespace BulletGraphUWP_Samples
|
||||
|
||||
{
|
||||
public sealed partial class BulletGraph : SampleLayout,IDisposable
|
||||
{
|
||||
public BulletGraph()
|
||||
{
|
||||
InitializeComponent();
|
||||
cmb_TickPosition.ItemsSource = Enum.GetValues(typeof(BulletGraphTicksPosition));
|
||||
cmb_LabelPosition.ItemsSource = Enum.GetValues(typeof(BulletGraphLabelsPosition));
|
||||
if ( !Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
|
||||
{
|
||||
cmb_CaptionPosition.ItemsSource = Enum.GetValues(typeof(BulletGraphCaptionPosition));
|
||||
}
|
||||
cmb_LabelPosition.SelectedIndex = cmb_TickPosition.SelectedIndex = 1;
|
||||
cmb_CaptionPosition.SelectedIndex = 0;
|
||||
|
||||
if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
|
||||
{
|
||||
this.SfBulletGraph1.QuantitativeScaleLength = 450;
|
||||
this.SfBulletGraph2.QuantitativeScaleLength = 450;
|
||||
this.SfBulletGraph3.QuantitativeScaleLength = 450;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
this.SfBulletGraph1.Dispose();
|
||||
this.SfBulletGraph2.Dispose();
|
||||
this.SfBulletGraph3.Dispose();
|
||||
this.SfBulletGraph1 = null;
|
||||
this.SfBulletGraph2 = null;
|
||||
this.SfBulletGraph3 = null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,88 @@
|
|||
<common:SampleLayout
|
||||
x:Class="BulletGraphUWP_Samples.BulletGraphMeasuresAndRanges"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SampleBrowser.UWP.BulletGraph"
|
||||
xmlns:syncfusion="using:Syncfusion.UI.Xaml.BulletGraph"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
xmlns:common="using:Common"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
|
||||
<common:SampleLayout.Sample>
|
||||
<ContentControl>
|
||||
<Grid>
|
||||
<syncfusion:SfBulletGraph x:Name="SfBulletGraph" QualitativeRangesSize="30" ShowToolTip="False"
|
||||
Orientation="Vertical" Minimum="0" Maximum="1600" Interval="200"
|
||||
MinorTicksPerInterval="3" MajorTickSize="13" MinorTickSize="8" MajorTickStrokeThickness="1" MinorTickStrokeThickness="1"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="14" LabelOffset="5" FeaturedMeasureBarStroke="Black" ComparativeMeasureSymbolStroke="Black"
|
||||
CaptionPosition="Near" LabelPosition="Below" TickPosition="Below"
|
||||
ComparativeMeasure="1072" FeaturedMeasure="1400" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="5">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="0,-30,0,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="0,0,0,2">CIT Revenue YTD</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black">($ millions)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange x:Name="range1" RangeEnd="700" RangeStroke="#61A301"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="1250" RangeStroke="#FCDA21" x:Name="range2"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="1600" RangeStroke="#D61E40" x:Name="range3"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Sample>
|
||||
|
||||
<common:SampleLayout.Setting>
|
||||
<ContentControl>
|
||||
<Grid HorizontalAlignment="Left">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<CheckBox Grid.Row="0" Margin="10 10 40 5 " Content="Bind Range Stroke To Labels" IsChecked="{Binding BindRangeStrokeToLabels, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<CheckBox Grid.Row="1" Margin="10 10 20 5" Content="Bind Range Stroke To Ticks" IsChecked="{Binding BindRangeStrokeToTicks, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<CheckBox Grid.Row="2" Margin="10 10 20 5" Visibility="Collapsed" Content="Enable Animation" IsChecked="{Binding EnableAnimation, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="10 10 20 5" Text="Featured Measure"/>
|
||||
<Slider Grid.Row="4" Margin="10 5" Minimum="{Binding Minimum, ElementName=SfBulletGraph, Mode=TwoWay}" Maximum="{Binding Maximum, ElementName=SfBulletGraph, Mode=TwoWay}"
|
||||
Value="{Binding FeaturedMeasure, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="5" Margin="10 10 20 5" Text="Comparative Measure"/>
|
||||
<Slider Grid.Row="6" Margin="10 5" Minimum="{Binding Minimum, ElementName=SfBulletGraph, Mode=TwoWay}" Maximum="{Binding Maximum, ElementName=SfBulletGraph, Mode=TwoWay}"
|
||||
Value="{Binding ComparativeMeasure, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="7" Margin="10 10 20 5" Text="Range1 Stroke"/>
|
||||
<ComboBox Grid.Row="8" Margin="10 10 20 5" x:Name="cmb_Range1Stroke" SelectedIndex="0" SelectionChanged="cmb_Range1Stroke_SelectionChanged_1"/>
|
||||
|
||||
<TextBlock Grid.Row="9" Margin="10 10 20 5" Text="Range2 Stroke"/>
|
||||
<ComboBox Grid.Row="10" Margin="10 10 20 5" x:Name="cmb_Range2Stroke" SelectedIndex="1" SelectionChanged="cmb_Range2Stroke_SelectionChanged_1"/>
|
||||
|
||||
<TextBlock Grid.Row="11" Margin="10 10 20 5" Text="Range3 Stroke"/>
|
||||
<ComboBox Grid.Row="12" Margin="10 10 20 5" x:Name="cmb_Range3Stroke" SelectedIndex="2" SelectionChanged="cmb_Range3Stroke_SelectionChanged_1"/>
|
||||
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Setting>
|
||||
|
||||
</common:SampleLayout>
|
|
@ -0,0 +1,78 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
|
||||
|
||||
namespace BulletGraphUWP_Samples
|
||||
{
|
||||
public sealed partial class BulletGraphMeasuresAndRanges : SampleLayout,IDisposable
|
||||
{
|
||||
Dictionary<string, Windows.UI.Color> colorsList = new Dictionary<string, Windows.UI.Color>();
|
||||
|
||||
public BulletGraphMeasuresAndRanges()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
|
||||
Type colorType = typeof(Windows.UI.Colors);
|
||||
IEnumerable<PropertyInfo> propInfos = colorType.GetRuntimeProperties();
|
||||
colorsList.Add("Limeade", Windows.UI.Color.FromArgb(255, 97, 163, 1));
|
||||
colorsList.Add("Candlelight", Windows.UI.Color.FromArgb(255, 252, 218, 33));
|
||||
colorsList.Add("Cherry", Windows.UI.Color.FromArgb(255, 214, 30, 64));
|
||||
foreach (PropertyInfo propInfo in propInfos)
|
||||
{
|
||||
colorsList.Add(propInfo.Name, (Windows.UI.Color)propInfo.GetValue(colorType));
|
||||
}
|
||||
|
||||
cmb_Range1Stroke.ItemsSource = cmb_Range2Stroke.ItemsSource = cmb_Range3Stroke.ItemsSource = colorsList.Keys;
|
||||
|
||||
if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
|
||||
{
|
||||
this.SfBulletGraph.QuantitativeScaleLength = 450;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void cmb_Range1Stroke_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
SfBulletGraph.QualitativeRanges[0].RangeStroke = new SolidColorBrush(colorsList[cmb_Range1Stroke.SelectedItem.ToString()]);
|
||||
}
|
||||
|
||||
private void cmb_Range2Stroke_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
SfBulletGraph.QualitativeRanges[1].RangeStroke = new SolidColorBrush(colorsList[cmb_Range2Stroke.SelectedItem.ToString()]);
|
||||
}
|
||||
|
||||
private void cmb_Range3Stroke_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
SfBulletGraph.QualitativeRanges[2].RangeStroke = new SolidColorBrush(colorsList[cmb_Range3Stroke.SelectedItem.ToString()]);
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
this.SfBulletGraph.Dispose();
|
||||
this.SfBulletGraph = null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,147 @@
|
|||
<Common:SampleLayout
|
||||
x:Class="BulletGraphUWP_Samples.BulletGraph"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SampleBrowser.BulletGraph"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
xmlns:syncfusion="using:Syncfusion.UI.Xaml.BulletGraph"
|
||||
xmlns:Common="using:Common"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
<Common:SampleLayout.Sample>
|
||||
<ContentControl>
|
||||
<Grid Background="White">
|
||||
<Grid x:Name="bulletGraph">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="2005 YTD Actual Vs Budget" FontSize="20" FontFamily="Segoe UI" HorizontalAlignment="Center"/>
|
||||
|
||||
<syncfusion:SfBulletGraph ShowToolTip="False" VerticalAlignment="Center" QuantitativeScaleLength="180" Grid.Row="1" x:Name="SfBulletGraph1" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Minimum="0" Maximum="300" Interval="50"
|
||||
MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
FlowDirection="{Binding SelectedItem, ElementName=cmb_FlowDirection, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="250" FeaturedMeasure="270" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="-100,0,5,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Revenue</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">U.S. $ (1,000s)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="150" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="225" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="300" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
<syncfusion:SfBulletGraph Grid.Row="2" ShowToolTip="False" VerticalAlignment="Center" QuantitativeScaleLength="180" x:Name="SfBulletGraph2" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Minimum="0" Maximum="150"
|
||||
Interval="25" MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
FlowDirection="{Binding SelectedItem, ElementName=cmb_FlowDirection, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="30" FeaturedMeasure="45" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="-100,0,5,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Expenses</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">U.S. $ (1,000s)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="40" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="80" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="150" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
<syncfusion:SfBulletGraph Grid.Row="3" ShowToolTip="False" VerticalAlignment="Center" QuantitativeScaleLength="180" x:Name="SfBulletGraph3" QualitativeRangesSize="30"
|
||||
Orientation="Horizontal" Interval="5" Minimum="0" Maximum="30"
|
||||
MajorTickSize="14" MinorTickSize="8" MajorTickStrokeThickness="1.5" MinorTickStrokeThickness="1.5"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="12" LabelOffset="5" EnableAnimation="False"
|
||||
MinorTicksPerInterval="{Binding Value, ElementName=sld_MinorTicksPerInterval, Mode=TwoWay}"
|
||||
FlowDirection="{Binding SelectedItem, ElementName=cmb_FlowDirection, Mode=TwoWay}"
|
||||
LabelPosition="{Binding SelectedItem, ElementName=cmb_LabelPosition, Mode=TwoWay}"
|
||||
CaptionPosition="{Binding SelectedItem, ElementName=cmb_CaptionPosition, Mode=TwoWay}"
|
||||
TickPosition="{Binding SelectedItem, ElementName=cmb_TickPosition, Mode=TwoWay}"
|
||||
ComparativeMeasure="27" FeaturedMeasure="22.5" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="7"
|
||||
ComparativeMeasureSymbolStroke="Black" FeaturedMeasureBarStroke="Black">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="-100,0,5,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Profit</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="2">Percentage (%)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange RangeEnd="20" RangeStroke="#EBEBEB"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="25" RangeStroke="#D8D8D8"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="30" RangeStroke="#7F7F7F"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</Common:SampleLayout.Sample>
|
||||
<Common:SampleLayout.Setting>
|
||||
<ContentControl>
|
||||
<Grid x:Name="setting">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="25"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0" Margin="10 5" Text="Flow Direction"/>
|
||||
<ComboBox Grid.Row="1" Margin="10 5" x:Name="cmb_FlowDirection"/>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="10 5" Text="Label Position"/>
|
||||
<ComboBox Grid.Row="4" Margin="10 5" x:Name="cmb_LabelPosition"/>
|
||||
|
||||
<TextBlock Grid.Row="6" Margin="10 5" Text="Tick Position"/>
|
||||
<ComboBox Grid.Row="7" Margin="10 5" x:Name="cmb_TickPosition"/>
|
||||
|
||||
<TextBlock Grid.Row="9" Margin="10 5" Text="MinorTicks Per Interval"/>
|
||||
<Slider Grid.Row="10" Margin="10 5" Minimum="0" Value="3" Maximum="5" Name="sld_MinorTicksPerInterval"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentControl>
|
||||
</Common:SampleLayout.Setting>
|
||||
|
||||
|
||||
</Common:SampleLayout>
|
|
@ -0,0 +1,90 @@
|
|||
<common:SampleLayout
|
||||
x:Class="BulletGraphUWP_Samples.BulletGraphMeasuresAndRanges"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:SampleBrowser.UWP.BulletGraph"
|
||||
xmlns:syncfusion="using:Syncfusion.UI.Xaml.BulletGraph"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
xmlns:common="using:Common"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<common:SampleLayout.Sample>
|
||||
<ContentControl>
|
||||
<Grid x:Name="bulletGraph">
|
||||
<syncfusion:SfBulletGraph x:Name="SfBulletGraph" QualitativeRangesSize="30" ShowToolTip="False"
|
||||
Orientation="Vertical" FlowDirection="Backward" Minimum="0" Maximum="1600" Interval="200"
|
||||
MinorTicksPerInterval="3" MajorTickSize="13" MinorTickSize="8" MajorTickStrokeThickness="1" MinorTickStrokeThickness="1"
|
||||
MajorTickStroke="Black" MinorTickStroke="Black" LabelStroke="Black"
|
||||
LabelSize="14" LabelOffset="5" FeaturedMeasureBarStroke="Black" ComparativeMeasureSymbolStroke="Black"
|
||||
CaptionPosition="Near" LabelPosition="Below" TickPosition="Below"
|
||||
ComparativeMeasure="1072" FeaturedMeasure="1400" ComparativeMeasureSymbolStrokeThickness="5" FeaturedMeasureBarStrokeThickness="5">
|
||||
<syncfusion:SfBulletGraph.Caption>
|
||||
<StackPanel Margin="0,-30,0,0" >
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black" Margin="0,0,0,2">CIT Revenue YTD</TextBlock>
|
||||
<TextBlock FontSize="14" HorizontalAlignment="Center" Foreground="Black">($ millions)</TextBlock>
|
||||
</StackPanel>
|
||||
</syncfusion:SfBulletGraph.Caption>
|
||||
<syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
<syncfusion:QualitativeRange x:Name="range1" RangeEnd="700" RangeStroke="#61A301"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="1250" RangeStroke="#FCDA21" x:Name="range2"></syncfusion:QualitativeRange>
|
||||
<syncfusion:QualitativeRange RangeEnd="1600" RangeStroke="#D61E40" x:Name="range3"></syncfusion:QualitativeRange>
|
||||
</syncfusion:SfBulletGraph.QualitativeRanges>
|
||||
</syncfusion:SfBulletGraph>
|
||||
</Grid>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Sample>
|
||||
<common:SampleLayout.Setting>
|
||||
<ContentControl>
|
||||
<ScrollViewer>
|
||||
<Grid x:Name="setting">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<CheckBox Grid.Row="0" Margin="10 5" Content="Bind Range Stroke To Labels" IsChecked="{Binding BindRangeStrokeToLabels, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<CheckBox Grid.Row="1" Margin="10 5" Content="Bind Range Stroke To Ticks" IsChecked="{Binding BindRangeStrokeToTicks, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<CheckBox Grid.Row="2" Margin="10 5" Visibility="Collapsed" Content="Enable Animation" IsChecked="{Binding EnableAnimation, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="3" Margin="10 5" Text="Featured Measure"/>
|
||||
<Slider Grid.Row="4" Margin="10 5" Minimum="{Binding Minimum, ElementName=SfBulletGraph, Mode=TwoWay}" Maximum="{Binding Maximum, ElementName=SfBulletGraph, Mode=TwoWay}"
|
||||
Value="{Binding FeaturedMeasure, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="5" Margin="10 5" Text="Comparative Measure"/>
|
||||
<Slider Grid.Row="6" Margin="10 5" Minimum="{Binding Minimum, ElementName=SfBulletGraph, Mode=TwoWay}" Maximum="{Binding Maximum, ElementName=SfBulletGraph, Mode=TwoWay}"
|
||||
Value="{Binding ComparativeMeasure, ElementName=SfBulletGraph, Mode=TwoWay}"/>
|
||||
|
||||
<TextBlock Grid.Row="7" Margin="10 5" Text="Range1 Stroke"/>
|
||||
<ComboBox Grid.Row="8" Margin="10 5" x:Name="cmb_Range1Stroke" SelectionChanged="cmb_Range1Stroke_SelectionChanged_1"/>
|
||||
|
||||
<TextBlock Grid.Row="9" Margin="10 5" Text="Range2 Stroke"/>
|
||||
<ComboBox Grid.Row="10" Margin="10 5" x:Name="cmb_Range2Stroke" SelectionChanged="cmb_Range2Stroke_SelectionChanged_1"/>
|
||||
|
||||
<TextBlock Grid.Row="11" Margin="10 5" Text="Range3 Stroke"/>
|
||||
<ComboBox Grid.Row="12" Margin="10 5" x:Name="cmb_Range3Stroke" SelectionChanged="cmb_Range3Stroke_SelectionChanged_1"/>
|
||||
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</ContentControl>
|
||||
</common:SampleLayout.Setting>
|
||||
|
||||
|
||||
</common:SampleLayout>
|
|
@ -0,0 +1,40 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.BulletGraph
|
||||
{
|
||||
public class SamplesConfiguration
|
||||
{
|
||||
public SamplesConfiguration()
|
||||
{
|
||||
CollectSampleView();
|
||||
CollectShowcaseViews();
|
||||
}
|
||||
public void CollectSampleView()
|
||||
{
|
||||
#if STORE_SAMPLE
|
||||
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(BulletGraphUWP_Samples.BulletGraph).AssemblyQualifiedName,SampleType = SampleType.Featured, Product = "BulletGraph",ProductIcons = "Icons/BulletGraph.png", Header = "Getting Started", Tag = Tags.None, Category = Categories.DataVisualization , HasOptions = false });
|
||||
#else
|
||||
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(BulletGraphUWP_Samples.BulletGraph).AssemblyQualifiedName,SampleType = SampleType.Featured, Product = "BulletGraph",ProductIcons = "Icons/BulletGraph.png", Header = "Getting Started", Tag = Tags.None, Category =Categories.DataVisualization , HasOptions = false });
|
||||
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(BulletGraphUWP_Samples.BulletGraphMeasuresAndRanges).AssemblyQualifiedName, Product = "BulletGraph", SampleType = SampleType.Featured, ProductIcons = "Icons/BulletGraph.png", Header = "BulletGraphMeasuresAndRanges", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false });
|
||||
#endif
|
||||
}
|
||||
|
||||
public void CollectShowcaseViews()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
Syncfusion.SampleBrowser.UWP.Common.dll
|
||||
Syncfusion.Licensing.dll
|
||||
Syncfusion.SfBulletGraph.UWP.dll
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True"/>
|
||||
<add key="automatic" value="True"/>
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"/>
|
||||
<add key="Syncfusion UWP Package 27.2.2" value="https://api.nuget.org/v3/index.json"/></packageSources>
|
||||
<activePackageSource>
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False"/>
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
||||
<Identity Name="33d8d323-06b1-4f61-ba36-bdc403d1f6da" Publisher="CN=Syncfusion" Version="1.0.0.0" />
|
||||
<mp:PhoneIdentity PhoneProductId="33d8d323-06b1-4f61-ba36-bdc403d1f6da" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||
<Properties>
|
||||
<DisplayName>Syncfusion.SampleBrowser.UWP.BulletGraph</DisplayName>
|
||||
<PublisherDisplayName>Syncfusion</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Syncfusion.SampleBrowser.UWP.BulletGraph.App">
|
||||
<uap:VisualElements DisplayName="Syncfusion.SampleBrowser.UWP.BulletGraph" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Syncfusion.SampleBrowser.UWP.BulletGraph" BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
||||
</uap:DefaultTile>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,36 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Syncfusion.SampleBrowser.UWP.BulletGraph")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Syncfusion Inc.")]
|
||||
[assembly: AssemblyProduct("Syncfusion.SampleBrowser.UWP.BulletGraph")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2001-2024 Syncfusion Inc.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: ComVisible(false)]
|
|
@ -0,0 +1,31 @@
|
|||
<!--
|
||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||
optimizer.
|
||||
|
||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||
the application package. The asterisks are not wildcards.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Add your application specific runtime directives here. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|
|
@ -0,0 +1,311 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{55694D0F-07E4-4B35-B0E4-939EF98E1014}</ProjectGuid>
|
||||
<OutputType>AppContainerExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Syncfusion.SampleBrowser.UWP.BulletGraph</RootNamespace>
|
||||
<AssemblyName>Syncfusion.SampleBrowser.UWP.BulletGraph</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<PackageCertificateKeyFile>Syncfusion.SampleBrowser.UWP.BulletGraph_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<PackageCertificateThumbprint>7C2A2F677383B6DF206B6C6ECC9192C888F968A6</PackageCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>;CS0108</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoWarn>;CS0108</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|AnyCPU'">
|
||||
<OutputPath>bin\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<DocumentationFile>bin\Release-Xml\Syncfusion.SampleBrowser.UWP.BulletGraph.XML</DocumentationFile>
|
||||
<NoWarn>;CS0108</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x86'">
|
||||
<OutputPath>bin\x86\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|ARM'">
|
||||
<OutputPath>bin\ARM\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x64'">
|
||||
<OutputPath>bin\x64\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"/>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ItemGroup>
|
||||
<Content Include="ApplicationInsights.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BulletGraph\BulletGraph.xaml.cs"/>
|
||||
<Compile Include="BulletGraph\BulletGraphMeasuresAndRanges.xaml.cs"/>
|
||||
<Compile Include="BulletGraphHelperClass.cs"/>
|
||||
<Compile Include="Properties\AssemblyInfo.cs"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<None Include="Syncfusion.SampleBrowser.UWP.BulletGraph_TemporaryKey.pfx"/>
|
||||
<PackageReference Include="Syncfusion.SampleBrowser.UWP.Common" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfAccordion.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfInput.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTabControl.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBarcode.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Calculate.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Data.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Presentation.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DocIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBulletGraph.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBusyIndicator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCarousel.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRadialMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfColorPickers.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDiagram.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.XlsIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHubTile.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMaps.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRichTextBoxAdv.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSchedule.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTileView.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeNavigator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRibbon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPdfViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfProgressBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGroupBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGridCommon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.ExcelChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCellGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheet.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheetHelper.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PMML.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Olap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PivotAnalysis.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPullToRefresh.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHeatMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRotator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfReportViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfNavigationDrawer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpellChecker.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfKanban.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotClient.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDockingManager.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSunburstChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGantt.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfImageEditor.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSmithChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Pdf.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DataGridExcelExport.UWP" Version="27.2.2"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Properties\Default.rd.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\SplashScreen.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square150x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\StoreLogo.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Wide310x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="BulletGraph\BulletGraph.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BulletGraph\BulletGraphMeasuresAndRanges.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="BulletGraph\DeviceFamily-Mobile\BulletGraph.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="BulletGraph\DeviceFamily-Mobile\BulletGraphMeasuresAndRanges.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.0.6</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SyncfusionLicense.txt"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,55 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28010.2003
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Syncfusion.SampleBrowser.UWP.BulletGraph", "Syncfusion.SampleBrowser.UWP.BulletGraph.csproj", "{55694D0F-07E4-4B35-B0E4-939EF98E1014}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|ARM = Debug|ARM
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|ARM = Release|ARM
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Release-Xml|Any CPU = Release-Xml|Any CPU
|
||||
Release-Xml|ARM = Release-Xml|ARM
|
||||
Release-Xml|x64 = Release-Xml|x64
|
||||
Release-Xml|x86 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.Build.0 = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Build.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.Build.0 = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.ActiveCfg = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.Build.0 = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.ActiveCfg = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.Build.0 = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.ActiveCfg = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.Build.0 = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.ActiveCfg = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.Build.0 = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.ActiveCfg = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.Build.0 = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.ActiveCfg = Release-Xml|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.Build.0 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {47194964-8C5A-4725-B8FB-6D738CBE5AC7}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,8 @@
|
|||
<Application
|
||||
x:Class="Syncfusion.SampleBrowser.UWP.Calculate.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Syncfusion.SampleBrowser.UWP.Calculate"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
|
@ -0,0 +1,116 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
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;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.Calculate
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
sealed partial class App : Application
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the singleton application object. This is the first line of authored code
|
||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Suspending += OnSuspending;
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(Common.DemoCommon.FindLicenseKey("Syncfusion.SampleBrowser.UWP.Calculate.SyncfusionLicense.txt"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||
/// will be used such as when the application is launched to open a specific file.
|
||||
/// </summary>
|
||||
/// <param name="e">Details about the launch request and process.</param>
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
||||
{
|
||||
|
||||
#if DEBUG
|
||||
if (System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
this.DebugSettings.EnableFrameRateCounter = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Frame rootFrame = Window.Current.Content as Frame;
|
||||
|
||||
// Do not repeat app initialization when the Window already has content,
|
||||
// just ensure that the window is active
|
||||
if (rootFrame == null)
|
||||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
rootFrame = new Frame();
|
||||
|
||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
||||
|
||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
||||
{
|
||||
//TODO: Load state from previously suspended application
|
||||
}
|
||||
|
||||
// Place the frame in the current Window
|
||||
Window.Current.Content = rootFrame;
|
||||
}
|
||||
if (e.PrelaunchActivated == false)
|
||||
{
|
||||
SamplesConfiguration layoutHelper = new SamplesConfiguration();
|
||||
if (rootFrame.Content == null)
|
||||
{
|
||||
// When the navigation stack isn't restored navigate to the first page,
|
||||
// configuring the new page by passing required information as a navigation
|
||||
// parameter
|
||||
rootFrame.Navigate(typeof(Common.MainPage), e.Arguments);
|
||||
}
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when Navigation to a certain page fails
|
||||
/// </summary>
|
||||
/// <param name="sender">The Frame which failed navigation</param>
|
||||
/// <param name="e">Details about the navigation failure</param>
|
||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when application execution is being suspended. Application state is saved
|
||||
/// without knowing whether the application will be terminated or resumed with the contents
|
||||
/// of memory still intact.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the suspend request.</param>
|
||||
/// <param name="e">Details about the suspend request.</param>
|
||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||
{
|
||||
var deferral = e.SuspendingOperation.GetDeferral();
|
||||
//TODO: Save application state and stop any background activity
|
||||
deferral.Complete();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ApplicationInsights xmlns = "http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
|
||||
</ApplicationInsights>
|
После Ширина: | Высота: | Размер: 1.3 KiB |
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 7.5 KiB |
После Ширина: | Высота: | Размер: 2.9 KiB |
После Ширина: | Высота: | Размер: 1.6 KiB |
После Ширина: | Высота: | Размер: 1.2 KiB |
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 3.1 KiB |
|
@ -0,0 +1,3 @@
|
|||
Syncfusion.SampleBrowser.UWP.Common.dll
|
||||
Syncfusion.Calculate.UWP.dll
|
||||
Syncfusion.Licensing.dll
|
|
@ -0,0 +1,158 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Syncfusion.Calculate.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CalculateSamples
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents to Wraps the double array with an extra row and column that holds calculated sums.
|
||||
/// </summary>
|
||||
public class ArrayCalcData : ICalcData
|
||||
{
|
||||
/// <summary>
|
||||
/// original double array
|
||||
/// </summary>
|
||||
private double[,] dValues;
|
||||
|
||||
/// <summary>
|
||||
/// vector holding the sum of the rows.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Serves as the last column.
|
||||
/// </remarks>
|
||||
private object[] rowSums;
|
||||
|
||||
/// <summary>
|
||||
/// Vector holding the sum of the columns.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Serves as the last row.
|
||||
/// </remarks>
|
||||
private object[] colSums;
|
||||
|
||||
int rowCount;
|
||||
int colCount;
|
||||
|
||||
/// <summary>
|
||||
/// Wraps the double array with an extra row and column that holds calculated sums.
|
||||
/// </summary>
|
||||
/// <param name="dValues"></param>
|
||||
public ArrayCalcData(double[,] dValues)
|
||||
{
|
||||
this.dValues = dValues;
|
||||
rowCount = dValues.GetLength(0);
|
||||
colCount = dValues.GetLength(1);
|
||||
rowSums = new object[rowCount + 1];
|
||||
colSums = new object[colCount + 1];
|
||||
|
||||
//initialize the formulas for the row sums
|
||||
// eg. "=Sum(A5:D5)" to sum row 5
|
||||
for (int row = 0; row <= rowCount; ++row)
|
||||
{
|
||||
rowSums[row] = string.Format("=Sum(A{1}:{0}{1})",
|
||||
RangeInfo.GetAlphaLabel(colCount), row + 1);
|
||||
}
|
||||
|
||||
//initialize the formulas for the columns sums
|
||||
// eg. "=Sum(B1:B5)" to sum column 2
|
||||
for (int col = 0; col <= colCount; ++col)
|
||||
{
|
||||
colSums[col] = string.Format("=Sum({0}1:{0}{1})",
|
||||
RangeInfo.GetAlphaLabel(col + 1), rowCount);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of this ArrayCalcData object.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Since this class wraps a double array, the indexing is zero-based. But
|
||||
/// the ICalcData methods require one-based indexing by convention. So,
|
||||
/// one is added to the indexes when the ICalcData methods are called.
|
||||
/// </remarks>
|
||||
public object this[int row, int col]
|
||||
{
|
||||
get { return GetValueRowCol(row + 1, col + 1); }
|
||||
set { SetValueRowCol(value, row + 1, col + 1); }
|
||||
}
|
||||
|
||||
#region ICalcData Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets the value into either the double array or column vector
|
||||
/// or row vector.
|
||||
/// </summary>
|
||||
/// <param name="row">one-based row index.</param>
|
||||
/// <param name="col">one-based column index.</param>
|
||||
/// <returns>The value.</returns>
|
||||
/// <remarks> By convention, ICalcData uses one-based indexes.</remarks>
|
||||
public object GetValueRowCol(int row, int col)
|
||||
{
|
||||
if (row - 1 == rowCount)
|
||||
{
|
||||
return colSums[col - 1];
|
||||
}
|
||||
else if (col - 1 == colCount)
|
||||
{
|
||||
return rowSums[row - 1];
|
||||
|
||||
}
|
||||
else
|
||||
return this.dValues[row - 1, col - 1];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the value into either the double array or column vector
|
||||
/// or row vector.
|
||||
/// </summary>
|
||||
/// <param name="row">one-based row index.</param>
|
||||
/// <param name="col">one-based column index.</param>
|
||||
/// <param name="value">The value to be set.</param>
|
||||
/// <remarks> This setter raises the ICalcData.ValueChanged event which
|
||||
/// is listened to by the CalcEngine to manage the calculations.
|
||||
///
|
||||
/// By convention, ICalcData uses one-based indexes.
|
||||
/// </remarks>
|
||||
public void SetValueRowCol(object value, int row, int col)
|
||||
{
|
||||
|
||||
if (row - 1 == rowCount)
|
||||
{
|
||||
colSums[col - 1] = value;
|
||||
}
|
||||
else if (col - 1 == colCount)
|
||||
{
|
||||
rowSums[row - 1] = value;
|
||||
}
|
||||
else
|
||||
this.dValues[row - 1, col - 1] = double.Parse(value.ToString());
|
||||
|
||||
ValueChangedEventArgs e1 = new ValueChangedEventArgs(row, col, value.ToString());
|
||||
ValueChanged(this, e1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Used in the SetValueRowCol implementation
|
||||
/// </summary>
|
||||
public event Syncfusion.Calculate.Helpers.ValueChangedEventHandler ValueChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Unused in this implementation.
|
||||
/// </summary>
|
||||
public void WireParentObject()
|
||||
{
|
||||
//empty
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Syncfusion.Calculate.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CalculateSamples
|
||||
{
|
||||
public class CalcData : ICalcData
|
||||
{
|
||||
private Dictionary<int, object> m_data = new Dictionary<int, object>();
|
||||
|
||||
public Dictionary<int, object> Data
|
||||
{
|
||||
get { return m_data; }
|
||||
}
|
||||
|
||||
public void UpdateValues(object val, int row)
|
||||
{
|
||||
m_data[row] = val;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This event should be raised by the implementer of ICalcData whenever a value changes.
|
||||
/// </summary>
|
||||
public event ValueChangedEventHandler ValueChanged;
|
||||
/// <summary>
|
||||
/// Returns the value at the row and column.
|
||||
/// </summary>
|
||||
/// <param name="row">One-based row index.</param>
|
||||
/// <param name="col">One based column index.</param>
|
||||
/// <returns>The cell value.</returns>
|
||||
public object GetValueRowCol(int row, int col)
|
||||
{
|
||||
if (row == 2 && col == 1)
|
||||
throw new Exception("Test Exception");
|
||||
else
|
||||
{
|
||||
return m_data[row];
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// A method to save the value through the ICalcData.SetValueRowCol implementation method
|
||||
/// and raise the ValueChanged event.
|
||||
/// </summary>
|
||||
/// <param name="row">The row index, one-based.</param>
|
||||
/// <param name="col">The column index, one-based.</param>
|
||||
/// <param name="val">The value.</param>
|
||||
public void SetValueRowCol(object value, int row, int col)
|
||||
{
|
||||
if (value.ToString().Trim().StartsWith("="))
|
||||
{
|
||||
ValueChangedEventArgs e1 = new ValueChangedEventArgs(row, col, value.ToString());
|
||||
ValueChanged(this, e1);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_data[row] = value;
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// A Virtual method that can be used to handle subscribing to any base object events necessary for implementing the
|
||||
/// ValueChanged event.
|
||||
/// </summary>
|
||||
public void WireParentObject()
|
||||
{
|
||||
//throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageRestore>
|
||||
<add key="enabled" value="True"/>
|
||||
<add key="automatic" value="True"/>
|
||||
</packageRestore>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"/>
|
||||
<add key="Syncfusion UWP Package 27.2.2" value="https://api.nuget.org/v3/index.json"/></packageSources>
|
||||
<activePackageSource>
|
||||
</activePackageSource>
|
||||
<bindingRedirects>
|
||||
<add key="skip" value="False"/>
|
||||
</bindingRedirects>
|
||||
</configuration>
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
||||
<Identity Name="ce1f2f63-e718-41b9-88ef-dfe5d2210d18" Publisher="CN=Syncfusion" Version="1.0.0.0" />
|
||||
<mp:PhoneIdentity PhoneProductId="ce1f2f63-e718-41b9-88ef-dfe5d2210d18" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||
<Properties>
|
||||
<DisplayName>Syncfusion.SampleBrowser.UWP.Calculate</DisplayName>
|
||||
<PublisherDisplayName>Arulpriya.Ramaingam</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Syncfusion.SampleBrowser.UWP.Calculate.App">
|
||||
<uap:VisualElements DisplayName="Syncfusion.SampleBrowser.UWP.Calculate" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Syncfusion.SampleBrowser.UWP.Calculate" BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
||||
</uap:DefaultTile>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,36 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Syncfusion.SampleBrowser.UWP.Calculate")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Syncfusion Inc.")]
|
||||
[assembly: AssemblyProduct("Syncfusion.SampleBrowser.UWP.Calculate")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2001-2024 Syncfusion Inc.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: ComVisible(false)]
|
|
@ -0,0 +1,31 @@
|
|||
<!--
|
||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||
optimizer.
|
||||
|
||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||
the application package. The asterisks are not wildcards.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Add your application specific runtime directives here. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|
|
@ -0,0 +1,48 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Syncfusion.SampleBrowser.UWP.Calculate
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents to added samples for Calculate.
|
||||
/// </summary>
|
||||
public class SamplesConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates the instance for the calculate samples.
|
||||
/// </summary>
|
||||
public SamplesConfiguration()
|
||||
{
|
||||
|
||||
// Product Showcase
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(CalculateSamples.ArrayIcalcDataDemo).AssemblyQualifiedName,
|
||||
Header = "ArrayICalc",
|
||||
ProductIcons="Icons/Calculate.png",
|
||||
SearchKeys = new string[] {"Array","Formula","Calculate"},
|
||||
Product = "Calculate",
|
||||
Category = Categories.Miscellaneous,
|
||||
});
|
||||
SampleHelper.SampleViews.Add(new SampleInfo()
|
||||
{
|
||||
SampleView = typeof(CalculateSamples.ComputeFormulaDemo).AssemblyQualifiedName,
|
||||
Header = "Compute Formula",
|
||||
SearchKeys = new string[] { "Compute", "Formula", "Calculate" },
|
||||
Product = "Calculate",
|
||||
Category = Categories.Miscellaneous,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,321 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{55694D0F-07E4-4B35-B0E4-939EF98E1014}</ProjectGuid>
|
||||
<OutputType>AppContainerExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Syncfusion.SampleBrowser.UWP.Calculate</RootNamespace>
|
||||
<AssemblyName>Syncfusion.SampleBrowser.UWP.Calculate</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<PackageCertificateKeyFile>Syncfusion.SampleBrowser.UWP.Calculate_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<PackageCertificateThumbprint>0F50CEDAF99C64AE8EE67DEBC1445C6EF4855361</PackageCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|AnyCPU'">
|
||||
<OutputPath>bin\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<DocumentationFile>bin\Release-Xml\Syncfusion.SampleBrowser.UWP.Calculate.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x86'">
|
||||
<OutputPath>bin\x86\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|ARM'">
|
||||
<OutputPath>bin\ARM\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Xml|x64'">
|
||||
<OutputPath>bin\x64\Release-Xml\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008;CS0108</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets"/>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ItemGroup>
|
||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
||||
<Content Include="ApplicationInsights.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<EmbeddedResource Include="SyncfusionLicense.txt"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs"/>
|
||||
<Compile Include="SamplesConfiguration.cs"/>
|
||||
<Compile Include="Tutorials\ArrayIcalcDataDemo.xaml.cs">
|
||||
<DependentUpon>ArrayIcalcDataDemo.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Helpers\ArrayICalcData\ArrayCalcData.cs"/>
|
||||
<Compile Include="Tutorials\ComputeFormulaDemo.xaml.cs">
|
||||
<DependentUpon>ComputeFormulaDemo.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Helpers\ComputeFormula\CalculateData.cs"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<None Include="Syncfusion.SampleBrowser.UWP.Calculate_TemporaryKey.pfx"/>
|
||||
<PackageReference Include="Syncfusion.SampleBrowser.UWP.Common" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfAccordion.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfInput.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTabControl.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBarcode.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Calculate.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Data.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Presentation.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DocIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBulletGraph.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfBusyIndicator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCarousel.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRadialMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfColorPickers.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDiagram.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.XlsIO.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHubTile.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMaps.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRichTextBoxAdv.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSchedule.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTileView.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfTreeNavigator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRibbon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPdfViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfProgressBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGroupBar.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfMenu.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGridCommon.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.ExcelChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfCellGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheet.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpreadsheetHelper.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PMML.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Olap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.PivotAnalysis.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGauge.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotGrid.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPullToRefresh.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfHeatMap.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfRotator.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfReportViewer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfNavigationDrawer.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSpellChecker.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfKanban.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotShared.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfPivotClient.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfDockingManager.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSunburstChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfGantt.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfImageEditor.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.SfSmithChart.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.OfficeChartToImageConverter.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.Pdf.UWP" Version="27.2.2"/>
|
||||
<PackageReference Include="Syncfusion.DataGridExcelExport.UWP" Version="27.2.2"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Assets\Calculate.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Properties\Syncfusion.SampleBrowser.UWP.Calculate.rd.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\SplashScreen.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square150x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\StoreLogo.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\Wide310x150Logo.scale-200.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.0.6</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="Tutorials\ArrayIcalcDataDemo.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Tutorials\ComputeFormulaDemo.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Tutorials\DeviceFamily-Mobile\ArrayIcalcDataDemo.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Tutorials\DeviceFamily-Mobile\ComputeFormulaDemo.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,53 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28010.2003
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Syncfusion.SampleBrowser.UWP.Calculate", "Syncfusion.SampleBrowser.UWP.Calculate.csproj", "{55694D0F-07E4-4B35-B0E4-939EF98E1014}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|ARM = Debug|ARM
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|ARM = Release|ARM
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Release-Xml|Any CPU = Release-Xml|Any CPU
|
||||
Release-Xml|ARM = Release-Xml|ARM
|
||||
Release-Xml|x64 = Release-Xml|x64
|
||||
Release-Xml|x86 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.Build.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|Any CPU.Deploy.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x64.Build.0 = Debug|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Build.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|ARM.Build.0 = Release|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.ActiveCfg = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x64.Build.0 = Release|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.ActiveCfg = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release|x86.Build.0 = Release|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.ActiveCfg = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|Any CPU.Build.0 = Release-Xml|Any CPU
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.ActiveCfg = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|ARM.Build.0 = Release-Xml|ARM
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.ActiveCfg = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x64.Build.0 = Release-Xml|x64
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.ActiveCfg = Release-Xml|x86
|
||||
{55694D0F-07E4-4B35-B0E4-939EF98E1014}.Release-Xml|x86.Build.0 = Release-Xml|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,309 @@
|
|||
<Common:SampleLayout x:Class="CalculateSamples.ArrayIcalcDataDemo"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Common="using:Common"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="using:CalculateSamples"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400"
|
||||
mc:Ignorable="d">
|
||||
|
||||
|
||||
<Grid x:Name="grdMain" Background="White">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="355" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
Grid.ColumnSpan="2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="16"
|
||||
Text=""
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<Border Grid.Row="3"
|
||||
BorderBrush="#2DA6D8"
|
||||
BorderThickness="2">
|
||||
<Grid x:Name="descGrid"
|
||||
Grid.Row="3"
|
||||
Grid.ColumnSpan="2"
|
||||
Width="386"
|
||||
Height="205"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="11"
|
||||
Foreground="White"
|
||||
Text="Grid con"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="11"
|
||||
Foreground="White"
|
||||
Text="Grid content"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBlock x:Name="blockRow"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Width="91"
|
||||
Height="28"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="DimGray"
|
||||
Text="ROW INDEX"
|
||||
TextWrapping="Wrap" />
|
||||
<TextBlock x:Name="blockCol"
|
||||
Grid.Row="1"
|
||||
Grid.Column="3"
|
||||
Width="122"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="DimGray"
|
||||
Text="COLUMN INDEX"
|
||||
TextWrapping="Wrap" />
|
||||
<TextBox x:Name="rowTxtBox"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Width="99"
|
||||
Height="44"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="White"
|
||||
BorderBrush=" #2DA6D8"
|
||||
BorderThickness="2"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="Black"
|
||||
InputScope="Number"
|
||||
TextWrapping="Wrap" />
|
||||
<TextBox x:Name="colTxtBox"
|
||||
Grid.Row="2"
|
||||
Grid.Column="3"
|
||||
Width="99"
|
||||
Height="44"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="White"
|
||||
BorderBrush=" #2DA6D8"
|
||||
BorderThickness="2"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="Black"
|
||||
InputScope="Number"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBlock Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
Text="Grid"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBlock x:Name="blockValue"
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Width="91"
|
||||
Height="28"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="DimGray"
|
||||
Text="VALUE"
|
||||
TextWrapping="Wrap" />
|
||||
<TextBox x:Name="valueTxtBox"
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Width="99"
|
||||
Height="42"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="White"
|
||||
BorderBrush=" #2DA6D8"
|
||||
BorderThickness="2"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="Black"
|
||||
InputScope="Number"
|
||||
TextWrapping="Wrap" />
|
||||
<Button x:Name="setValueButton"
|
||||
Grid.Row="5"
|
||||
Grid.Column="3"
|
||||
Width="123"
|
||||
Height="40"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="#FF317E9C"
|
||||
BorderBrush="{x:Null}"
|
||||
Click="setValueButton_Click"
|
||||
Content="SET VALUE"
|
||||
FontSize="18"
|
||||
Foreground="White" />
|
||||
|
||||
<TextBlock Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Height="20"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
Text="Grid"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<TextBlock Grid.Row="4"
|
||||
Grid.ColumnSpan="2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="Grid"
|
||||
TextWrapping="Wrap" />
|
||||
<Border Grid.Row="5"
|
||||
BorderBrush="#2DA6D8"
|
||||
BorderThickness="2">
|
||||
<Grid x:Name="contentGrid"
|
||||
Grid.Row="5"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Width="386"
|
||||
Height="386"
|
||||
Margin="0,0,0,-42"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
Text="G"
|
||||
TextWrapping="Wrap" />
|
||||
<TextBlock Grid.Row="0"
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="20"
|
||||
Foreground="White"
|
||||
Text="G"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBox x:Name="dataTxtBox"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Width="323"
|
||||
Height="236"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="White"
|
||||
BorderBrush=" #2DA6D8"
|
||||
BorderThickness="2"
|
||||
FontFamily="Segoe WP Semibold"
|
||||
FontSize="16"
|
||||
Foreground="Black"
|
||||
InputScope="Number"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
<TextBlock Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="Grid"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
|
||||
<Button x:Name="generateBtn"
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Width="316"
|
||||
Height="40"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Background="#FF317E9C"
|
||||
BorderBrush="{x:Null}"
|
||||
Click="generateBtn_Click"
|
||||
Content="GENERATE DATA"
|
||||
FontSize="16"
|
||||
Foreground="White" />
|
||||
|
||||
<TextBlock Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe UI"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="Grid"
|
||||
TextWrapping="Wrap" />
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Common:SampleLayout>
|