зеркало из https://github.com/telerik/xaml-sdk.git
Updated examples
This commit is contained in:
Родитель
c35b6180cd
Коммит
6d3648c4a3
|
@ -0,0 +1,8 @@
|
|||
<Application x:Class="CompassProgramming.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="CompassProgramming.App"
|
||||
>
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -0,0 +1,68 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
|
||||
public App()
|
||||
{
|
||||
this.Startup += this.Application_Startup;
|
||||
this.Exit += this.Application_Exit;
|
||||
this.UnhandledException += this.Application_UnhandledException;
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Application_Startup(object sender, StartupEventArgs e)
|
||||
{
|
||||
this.RootVisual = new MainPage();
|
||||
}
|
||||
|
||||
private void Application_Exit(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
// If the app is running outside of the debugger then report the exception using
|
||||
// the browser's exception mechanism. On IE this will display it a yellow alert
|
||||
// icon in the status bar and Firefox will display a script error.
|
||||
if (!System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
|
||||
// NOTE: This will allow the application to continue running after an exception has been thrown
|
||||
// but not handled.
|
||||
// For production applications this error handling should be replaced with something that will
|
||||
// report the error to the website and stop the application.
|
||||
e.Handled = true;
|
||||
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
|
||||
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
|
||||
|
||||
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,134 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9993A245-1690-433A-A0D5-01A4365A43E4}</ProjectGuid>
|
||||
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CompassProgramming</RootNamespace>
|
||||
<AssemblyName>CompassProgramming</AssemblyName>
|
||||
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
|
||||
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
|
||||
<SilverlightApplication>true</SilverlightApplication>
|
||||
<SupportedCultures>
|
||||
</SupportedCultures>
|
||||
<XapOutputs>true</XapOutputs>
|
||||
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
|
||||
<XapFilename>CompassProgramming.xap</XapFilename>
|
||||
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
|
||||
<SilverlightAppEntry>CompassProgramming.App</SilverlightAppEntry>
|
||||
<TestPageFileName>CompassProgrammingTestPage.html</TestPageFileName>
|
||||
<CreateTestPage>true</CreateTestPage>
|
||||
<ValidateXaml>true</ValidateXaml>
|
||||
<EnableOutOfBrowser>false</EnableOutOfBrowser>
|
||||
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
|
||||
<UsePlatformExtensions>false</UsePlatformExtensions>
|
||||
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
|
||||
<LinkedServerProject>
|
||||
</LinkedServerProject>
|
||||
|
||||
|
||||
|
||||
|
||||
</PropertyGroup>
|
||||
<!-- This property group is only here to support building this project using the
|
||||
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
|
||||
to set the TargetFrameworkVersion to v3.5 -->
|
||||
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>Bin\Release</OutputPath>
|
||||
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System.Windows" />
|
||||
<Reference Include="system" />
|
||||
<Reference Include="System.Core">
|
||||
<HintPath>$(TargetFrameworkDirectory)System.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Windows.Browser" />
|
||||
<Reference Include="Telerik.Windows.Controls">
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Docking">
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.Docking.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Navigation">
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.Navigation.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App_SL.xaml.cs">
|
||||
<DependentUpon>App_SL.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Example.xaml.cs">
|
||||
<DependentUpon>Example.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaneType.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App_SL.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="Example.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="MainPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AppManifest.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Readme.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.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>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties />
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
|
@ -0,0 +1,128 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.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>{44277E36-3466-4B5C-9B12-EF38ED7FB344}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CompassProgramming</RootNamespace>
|
||||
<AssemblyName>CompassProgramming</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
||||
|
||||
|
||||
|
||||
</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</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</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls">
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Docking">
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.Docking.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Navigation">
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.Navigation.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Data">
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="Example.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Example.xaml.cs">
|
||||
<DependentUpon>Example.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="PaneType.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Readme.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.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>
|
||||
-->
|
||||
</Project>
|
|
@ -0,0 +1,37 @@
|
|||
<UserControl x:Class="CompassProgramming.Example"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="350" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<SolidColorBrush x:Key="GreenBrush" Color="#FF8EBC00" />
|
||||
<SolidColorBrush x:Key="PurpleBrush" Color="#FF8A42C2" />
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<telerik:RadDocking PreviewShowCompass="RadDocking_PreviewShowCompass">
|
||||
<telerik:RadSplitContainer>
|
||||
<telerik:RadPaneGroup>
|
||||
<telerik:RadPane Header="Green Pane 1">
|
||||
<Grid Background="{StaticResource GreenBrush}" />
|
||||
</telerik:RadPane>
|
||||
<telerik:RadPane Header="Green Pane 2">
|
||||
<Grid Background="{StaticResource GreenBrush}" />
|
||||
</telerik:RadPane>
|
||||
</telerik:RadPaneGroup>
|
||||
</telerik:RadSplitContainer>
|
||||
<telerik:RadSplitContainer InitialPosition="DockedRight">
|
||||
<telerik:RadPaneGroup>
|
||||
<telerik:RadPane Header="Purple Pane 3">
|
||||
<Grid Background="{StaticResource PurpleBrush}" />
|
||||
</telerik:RadPane>
|
||||
<telerik:RadPane Header="Purple Pane 4">
|
||||
<Grid Background="{StaticResource PurpleBrush}" />
|
||||
</telerik:RadPane>
|
||||
</telerik:RadPaneGroup>
|
||||
</telerik:RadSplitContainer>
|
||||
</telerik:RadDocking>
|
||||
</Grid>
|
||||
</UserControl>
|
|
@ -0,0 +1,130 @@
|
|||
using System.Linq;
|
||||
using System.Windows.Controls;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Controls.Docking;
|
||||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for Example.xaml
|
||||
/// </summary>
|
||||
public partial class Example : UserControl
|
||||
{
|
||||
public Example()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private static bool CompassNeedsToShow(Telerik.Windows.Controls.Docking.Compass compass)
|
||||
{
|
||||
return compass.IsLeftIndicatorVisible || compass.IsTopIndicatorVisible || compass.IsRightIndicatorVisible || compass.IsBottomIndicatorVisible || compass.IsCenterIndicatorVisible;
|
||||
}
|
||||
|
||||
private void RadDocking_PreviewShowCompass(object sender, Telerik.Windows.Controls.Docking.PreviewShowCompassEventArgs e)
|
||||
{
|
||||
if (e.TargetGroup != null)
|
||||
{
|
||||
e.Compass.IsCenterIndicatorVisible = CanDockIn(e.DraggedElement, e.TargetGroup, DockPosition.Center);
|
||||
e.Compass.IsLeftIndicatorVisible = CanDockIn(e.DraggedElement, e.TargetGroup, DockPosition.Left);
|
||||
e.Compass.IsTopIndicatorVisible = CanDockIn(e.DraggedElement, e.TargetGroup, DockPosition.Top);
|
||||
e.Compass.IsRightIndicatorVisible = CanDockIn(e.DraggedElement, e.TargetGroup, DockPosition.Right);
|
||||
e.Compass.IsBottomIndicatorVisible = CanDockIn(e.DraggedElement, e.TargetGroup, DockPosition.Bottom);
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Compass.IsCenterIndicatorVisible = CanDock(e.DraggedElement, DockPosition.Center);
|
||||
e.Compass.IsLeftIndicatorVisible = CanDock(e.DraggedElement, DockPosition.Left);
|
||||
e.Compass.IsTopIndicatorVisible = CanDock(e.DraggedElement, DockPosition.Top);
|
||||
e.Compass.IsRightIndicatorVisible = CanDock(e.DraggedElement, DockPosition.Right);
|
||||
e.Compass.IsBottomIndicatorVisible = CanDock(e.DraggedElement, DockPosition.Bottom);
|
||||
}
|
||||
e.Canceled = !(CompassNeedsToShow(e.Compass));
|
||||
}
|
||||
|
||||
private PaneType GetPaneType(RadPane pane)
|
||||
{
|
||||
Grid c = pane.Content as Grid;
|
||||
if (c != null)
|
||||
{
|
||||
if (c.Background.Equals(this.Resources["GreenBrush"]))
|
||||
{
|
||||
return PaneType.Green;
|
||||
}
|
||||
else
|
||||
{
|
||||
return PaneType.Purple;
|
||||
}
|
||||
}
|
||||
|
||||
return PaneType.Purple;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the specific Pane's Top, Bottom, Left and Right compasses should be shown for the Dragged Pane
|
||||
/// </summary>
|
||||
private bool CanDockIn(RadPane paneToDock, RadPane paneInTargetGroup, DockPosition position)
|
||||
{
|
||||
PaneType paneToDockType = GetPaneType(paneToDock);
|
||||
PaneType paneInTargetGroupType = GetPaneType(paneInTargetGroup);
|
||||
|
||||
switch (paneToDockType)
|
||||
{
|
||||
case PaneType.Green:
|
||||
switch (paneInTargetGroupType)
|
||||
{
|
||||
case PaneType.Green:
|
||||
// The Top, Bottom, Left, Right and Center compasses will be shown when dragging a Green Pane over a Green Pane
|
||||
//return true;
|
||||
|
||||
// The Center compass only will be shown when dragging a Green Pane over a Green Pane
|
||||
return position != DockPosition.Top && position != DockPosition.Bottom && position != DockPosition.Left && position != DockPosition.Right;
|
||||
case PaneType.Purple:
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case PaneType.Purple:
|
||||
switch (paneInTargetGroupType)
|
||||
{
|
||||
case PaneType.Green:
|
||||
return false;
|
||||
case PaneType.Purple:
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the Docking's Top, Bottom, Left and Right compasses should be shown for the Dragged Pane
|
||||
/// </summary>
|
||||
private bool CanDock(RadPane paneToDock, DockPosition position)
|
||||
{
|
||||
PaneType paneToDockType = GetPaneType(paneToDock);
|
||||
|
||||
switch (paneToDockType)
|
||||
{
|
||||
case PaneType.Green:
|
||||
return true;
|
||||
case PaneType.Purple:
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool CanDockIn(object dragged, ISplitItem target, DockPosition position)
|
||||
{
|
||||
// If there is a pane that cannot be dropped in any of the targeted panes.
|
||||
var splitContainer = dragged as RadSplitContainer;
|
||||
return !splitContainer.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)));
|
||||
}
|
||||
|
||||
private bool CanDock(object dragged, DockPosition position)
|
||||
{
|
||||
var splitContainer = dragged as RadSplitContainer;
|
||||
return !splitContainer.EnumeratePanes().Any((RadPane p) => !CanDock(p, position));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<UserControl x:Class="CompassProgramming.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:CompassProgramming"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="400" >
|
||||
|
||||
<Grid x:Name="LayoutRoot" Background="White">
|
||||
<local:Example/>
|
||||
</Grid>
|
||||
</UserControl>
|
|
@ -0,0 +1,13 @@
|
|||
using System.Windows.Browser;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
public partial class MainPage : UserControl
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<Window x:Class="CompassProgramming.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:CompassProgramming"
|
||||
Title="Compass Programming" Height="350" Width="800">
|
||||
<Grid>
|
||||
<local:Example/>
|
||||
</Grid>
|
||||
</Window>
|
|
@ -0,0 +1,15 @@
|
|||
using System.Windows;
|
||||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
namespace CompassProgramming
|
||||
{
|
||||
public enum PaneType
|
||||
{
|
||||
Green,
|
||||
Purple
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
>
|
||||
<Deployment.Parts>
|
||||
</Deployment.Parts>
|
||||
</Deployment>
|
|
@ -0,0 +1,35 @@
|
|||
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("CompassProgramming")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("CompassProgramming")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9993a245-1690-433a-a0d5-01a4365a43e4")]
|
||||
|
||||
// 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 Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34003
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompassProgramming.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CompassProgramming.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34003
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompassProgramming.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
|
@ -0,0 +1,8 @@
|
|||
This example demosntrates how to customize which compasses are shown when dragging different RadPanes in the control.
|
||||
|
||||
When dragging a "Green" RadPane only the center compass over other "Green" RadPanes is show and the all of the root compasses.
|
||||
When dragging a "Purple" RadPane all of the compasses (right, left, top, bottom and center) over other "Purple" RadPanes are shown and none of the root compasses.
|
||||
|
||||
More details could be found in our online help:
|
||||
For WPF - http://www.telerik.com/help/wpf/raddocking-how-to-implement-conditional-docking.html
|
||||
For Silverlight - http://www.telerik.com/help/silverlight/raddocking-how-to-implement-conditional-docking.html
|
|
@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioDocking_SL", "V
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomDockingPanesFactory_SL", "CustomDockingPanesFactory\CustomDockingPanesFactory_SL.csproj", "{767FF867-FC06-4C4C-8F85-FC377F0CD65E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CompassProgramming_SL", "CompassProgramming\CompassProgramming_SL.csproj", "{9993A245-1690-433A-A0D5-01A4365A43E4}"
|
||||
EndProject
|
||||
Global
|
||||
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -146,6 +148,20 @@ Global
|
|||
{767FF867-FC06-4C4C-8F85-FC377F0CD65E}.ReleaseTrial.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{767FF867-FC06-4C4C-8F85-FC377F0CD65E}.ReleaseTrial|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{767FF867-FC06-4C4C-8F85-FC377F0CD65E}.ReleaseTrial|Any CPU.Build.0 = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Debug.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Debug.NoXaml|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Release.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Release.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseNoCA|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseNoCA|Any CPU.Build.0 = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseTrial.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseTrial.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseTrial|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9993A245-1690-433A-A0D5-01A4365A43E4}.ReleaseTrial|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -31,6 +31,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VisualStudioDocking_WPF", "
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomDockingPanesFactory_WPF", "CustomDockingPanesFactory\CustomDockingPanesFactory_WPF.csproj", "{CB98966E-E78A-49D7-A716-06B65F6E60BA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CompassProgramming_WPF", "CompassProgramming\CompassProgramming_WPF.csproj", "{44277E36-3466-4B5C-9B12-EF38ED7FB344}"
|
||||
EndProject
|
||||
Global
|
||||
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -383,6 +385,44 @@ Global
|
|||
{CB98966E-E78A-49D7-A716-06B65F6E60BA}.ReleaseTrial451.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{CB98966E-E78A-49D7-A716-06B65F6E60BA}.ReleaseTrial451|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CB98966E-E78A-49D7-A716-06B65F6E60BA}.ReleaseTrial451|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug.NoXaml|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug45.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug45.NoXaml|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug45|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug45|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug451.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug451.NoXaml|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug451|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Debug451|Any CPU.Build.0 = Debug|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release45.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release45.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release45|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release45|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release451.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release451.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release451|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.Release451|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseNoCA|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseNoCA|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial45.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial45.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial45|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial45|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial451.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial451.NoXaml|Any CPU.Build.0 = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial451|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{44277E36-3466-4B5C-9B12-EF38ED7FB344}.ReleaseTrial451|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomUIRadImageEditor_SL",
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomWatermarkTool_SL", "CustomWatermarkTool\CustomWatermarkTool_SL.csproj", "{3BCF1662-9140-4B67-8B9A-E1A19C4A126E}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Localization_SL", "Localization\Localization_SL.csproj", "{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}"
|
||||
EndProject
|
||||
Global
|
||||
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -38,6 +40,10 @@ Global
|
|||
{3BCF1662-9140-4B67-8B9A-E1A19C4A126E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3BCF1662-9140-4B67-8B9A-E1A19C4A126E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3BCF1662-9140-4B67-8B9A-E1A19C4A126E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomUIRadImageEditor_WPF"
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomWatermarkTool_WPF", "CustomWatermarkTool\CustomWatermarkTool_WPF.csproj", "{2F533CE8-56B2-4C6B-B65B-8BA8A72064D5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Localization_WPF", "Localization\Localization_WPF.csproj", "{C7C7A087-981C-4A63-B957-092EB0A10B70}"
|
||||
EndProject
|
||||
Global
|
||||
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -26,6 +28,10 @@ Global
|
|||
{2F533CE8-56B2-4C6B-B65B-8BA8A72064D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2F533CE8-56B2-4C6B-B65B-8BA8A72064D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2F533CE8-56B2-4C6B-B65B-8BA8A72064D5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C7C7A087-981C-4A63-B957-092EB0A10B70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C7C7A087-981C-4A63-B957-092EB0A10B70}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C7C7A087-981C-4A63-B957-092EB0A10B70}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C7C7A087-981C-4A63-B957-092EB0A10B70}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<Application x:Class="Localization.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Localization
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="Localization.App"
|
||||
>
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -0,0 +1,68 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Localization
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
|
||||
public App()
|
||||
{
|
||||
this.Startup += this.Application_Startup;
|
||||
this.Exit += this.Application_Exit;
|
||||
this.UnhandledException += this.Application_UnhandledException;
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Application_Startup(object sender, StartupEventArgs e)
|
||||
{
|
||||
this.RootVisual = new MainPage();
|
||||
}
|
||||
|
||||
private void Application_Exit(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
// If the app is running outside of the debugger then report the exception using
|
||||
// the browser's exception mechanism. On IE this will display it a yellow alert
|
||||
// icon in the status bar and Firefox will display a script error.
|
||||
if (!System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
|
||||
// NOTE: This will allow the application to continue running after an exception has been thrown
|
||||
// but not handled.
|
||||
// For production applications this error handling should be replaced with something that will
|
||||
// report the error to the website and stop the application.
|
||||
e.Handled = true;
|
||||
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
|
||||
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
|
||||
|
||||
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
namespace Localization
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
|
||||
using Telerik.Windows.Controls;
|
||||
|
||||
public class ImageExampleHelper
|
||||
{
|
||||
private static string SampleImageFolder = "SampleImages/";
|
||||
|
||||
public static void LoadSampleImage(RadImageEditorUI imageEditorUI, string image)
|
||||
{
|
||||
using (Stream stream = Application.GetResourceStream(GetResourceUri(SampleImageFolder + image)).Stream)
|
||||
{
|
||||
imageEditorUI.Image = new Telerik.Windows.Media.Imaging.RadBitmap(stream);
|
||||
imageEditorUI.ApplyTemplate();
|
||||
imageEditorUI.ImageEditor.ScaleFactor = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static Uri GetResourceUri(string resource)
|
||||
{
|
||||
AssemblyName assemblyName = new AssemblyName(typeof(ImageExampleHelper).Assembly.FullName);
|
||||
string resourcePath = "/" + assemblyName.Name + ";component/" + resource;
|
||||
Uri resourceUri = new Uri(resourcePath, UriKind.Relative);
|
||||
|
||||
return resourceUri;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{E7A12858-F101-4F37-B2FE-F3AB4FC8E9BE}</ProjectGuid>
|
||||
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Localization</RootNamespace>
|
||||
<AssemblyName>Localization</AssemblyName>
|
||||
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
|
||||
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
|
||||
<SilverlightApplication>true</SilverlightApplication>
|
||||
<SupportedCultures>
|
||||
</SupportedCultures>
|
||||
<XapOutputs>true</XapOutputs>
|
||||
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
|
||||
<XapFilename>Localization.xap</XapFilename>
|
||||
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
|
||||
<SilverlightAppEntry>Localization.App</SilverlightAppEntry>
|
||||
<TestPageFileName>LocalizationTestPage.html</TestPageFileName>
|
||||
<CreateTestPage>true</CreateTestPage>
|
||||
<ValidateXaml>true</ValidateXaml>
|
||||
<EnableOutOfBrowser>false</EnableOutOfBrowser>
|
||||
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
|
||||
<UsePlatformExtensions>false</UsePlatformExtensions>
|
||||
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
|
||||
<LinkedServerProject>
|
||||
</LinkedServerProject>
|
||||
|
||||
|
||||
|
||||
|
||||
</PropertyGroup>
|
||||
<!-- This property group is only here to support building this project using the
|
||||
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
|
||||
to set the TargetFrameworkVersion to v3.5 -->
|
||||
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>Bin\Release</OutputPath>
|
||||
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System.Windows" />
|
||||
<Reference Include="system" />
|
||||
<Reference Include="System.Core">
|
||||
<HintPath>$(TargetFrameworkDirectory)System.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Windows.Browser" />
|
||||
<Reference Include="Telerik.Windows.Controls, Version=2013.3.1204.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.ImageEditor, Version=2013.3.1204.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.ImageEditor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Input, Version=2013.3.1204.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKSLDIR)\Binaries\Silverlight\Telerik.Windows.Controls.Input.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App_SL.xaml.cs">
|
||||
<DependentUpon>App_SL.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ImageExampleHelper.cs" />
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RadImageEditorResources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>RadImageEditorResources.resx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App_SL.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="MainPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AppManifest.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="SampleImages\RadImageEditor.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RadImageEditorResources.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>RadImageEditorResources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.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>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties />
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
|
@ -0,0 +1,114 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.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>{C7C7A087-981C-4A63-B957-092EB0A10B70}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Localization</RootNamespace>
|
||||
<AssemblyName>Localization</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
||||
|
||||
|
||||
|
||||
</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</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</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls, Version=2013.3.1204.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.ImageEditor, Version=2013.3.1204.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.ImageEditor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Telerik.Windows.Controls.Input, Version=2013.3.1204.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(TELERIKWPFDIR)\Binaries\WPF40\Telerik.Windows.Controls.Input.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Compile Include="RadImageEditorResources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>RadImageEditorResources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ImageExampleHelper.cs" />
|
||||
<Compile Include="MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="SampleImages\RadImageEditor.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RadImageEditorResources.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>RadImageEditorResources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.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>
|
||||
-->
|
||||
</Project>
|
|
@ -0,0 +1,90 @@
|
|||
<UserControl x:Class="Localization.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
xmlns:tools="clr-namespace:Telerik.Windows.Media.Imaging.Tools;assembly=Telerik.Windows.Controls.ImageEditor"
|
||||
xmlns:commands="clr-namespace:Telerik.Windows.Media.Imaging.ImageEditorCommands.RoutedCommands;assembly=Telerik.Windows.Controls.ImageEditor">
|
||||
|
||||
<Grid x:Name="LayoutRoot" Background="White">
|
||||
<telerik:RadImageEditorUI x:Name="ImageEditorUI" telerik:Analytics.Name="uiEditor">
|
||||
<telerik:RadImageEditorUI.ImageToolsSections>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Transform">
|
||||
<telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_Resize"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:ResizeTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
|
||||
<telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_CanvasResize"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:CanvasResizeTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
|
||||
<telerik:ImageToolItem ImageKey="Rotate90CW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate90" Command="commands:ImageEditorRoutedCommands.Rotate90Clockwise" />
|
||||
<telerik:ImageToolItem ImageKey="Rotate180CW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate180" Command="commands:ImageEditorRoutedCommands.Rotate180" />
|
||||
<telerik:ImageToolItem ImageKey="Rotate90CCW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate270" Command="commands:ImageEditorRoutedCommands.Rotate90Counterclockwise" />
|
||||
<telerik:ImageToolItem ImageKey="RoundCorners" telerik:LocalizationManager.ResourceKey="ImageEditor_RoundCorners" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:RoundCornersTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="FlipHorizontal" telerik:LocalizationManager.ResourceKey="ImageEditor_FlipHorizontal" Command="commands:ImageEditorRoutedCommands.FlipHorizontal" />
|
||||
<telerik:ImageToolItem ImageKey="FlipVertical" telerik:LocalizationManager.ResourceKey="ImageEditor_FlipVertical" Command="commands:ImageEditorRoutedCommands.FlipVertical" />
|
||||
<telerik:ImageToolItem ImageKey="Crop" telerik:LocalizationManager.ResourceKey="ImageEditor_Crop" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:CropTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="DrawText" telerik:LocalizationManager.ResourceKey="ImageEditor_DrawText" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:DrawTextTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Adjust" >
|
||||
<telerik:ImageToolItem ImageKey="HueShift" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_HueShift"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:HueShiftTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Saturation" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Saturation"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:SaturationTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Contrast" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_ContrastAdjust"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool" >
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:ContrastTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Invert" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_InvertColors"
|
||||
Command="commands:ImageEditorRoutedCommands.InvertColors" />
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Effects">
|
||||
<telerik:ImageToolItem ImageKey="Sharpen" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Sharpen"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:SharpenTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Blur" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Blur"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:BlurTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
</telerik:RadImageEditorUI.ImageToolsSections>
|
||||
</telerik:RadImageEditorUI>
|
||||
</Grid>
|
||||
</UserControl>
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Media.Imaging.Tools;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Localization
|
||||
{
|
||||
public partial class MainPage : UserControl
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
LocalizationManager.Manager = new LocalizationManager()
|
||||
{
|
||||
ResourceManager = RadImageEditorResources.ResourceManager
|
||||
};
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
ImageExampleHelper.LoadSampleImage(this.ImageEditorUI, "RadImageEditor.png");
|
||||
this.ImageEditorUI.ImageEditor.ExecuteTool(new ResizeTool());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
<Window x:Class="Localization.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
xmlns:tools="clr-namespace:Telerik.Windows.Media.Imaging.Tools;assembly=Telerik.Windows.Controls.ImageEditor"
|
||||
xmlns:commands="clr-namespace:Telerik.Windows.Media.Imaging.ImageEditorCommands.RoutedCommands;assembly=Telerik.Windows.Controls.ImageEditor"
|
||||
Title="Rad Image Editor">
|
||||
|
||||
<Grid x:Name="LayoutRoot" Background="White">
|
||||
<telerik:RadImageEditorUI x:Name="ImageEditorUI" telerik:Analytics.Name="uiEditor">
|
||||
<telerik:RadImageEditorUI.ImageToolsSections>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Transform">
|
||||
<telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_Resize"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:ResizeTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
|
||||
<telerik:ImageToolItem ImageKey="Resize" telerik:LocalizationManager.ResourceKey="ImageEditor_CanvasResize"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:CanvasResizeTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
|
||||
<telerik:ImageToolItem ImageKey="Rotate90CW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate90" Command="commands:ImageEditorRoutedCommands.Rotate90Clockwise" />
|
||||
<telerik:ImageToolItem ImageKey="Rotate180CW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate180" Command="commands:ImageEditorRoutedCommands.Rotate180" />
|
||||
<telerik:ImageToolItem ImageKey="Rotate90CCW" telerik:LocalizationManager.ResourceKey="ImageEditor_Rotate270" Command="commands:ImageEditorRoutedCommands.Rotate90Counterclockwise" />
|
||||
<telerik:ImageToolItem ImageKey="RoundCorners" telerik:LocalizationManager.ResourceKey="ImageEditor_RoundCorners" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:RoundCornersTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="FlipHorizontal" telerik:LocalizationManager.ResourceKey="ImageEditor_FlipHorizontal" Command="commands:ImageEditorRoutedCommands.FlipHorizontal" />
|
||||
<telerik:ImageToolItem ImageKey="FlipVertical" telerik:LocalizationManager.ResourceKey="ImageEditor_FlipVertical" Command="commands:ImageEditorRoutedCommands.FlipVertical" />
|
||||
<telerik:ImageToolItem ImageKey="Crop" telerik:LocalizationManager.ResourceKey="ImageEditor_Crop" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:CropTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="DrawText" telerik:LocalizationManager.ResourceKey="ImageEditor_DrawText" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:DrawTextTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Adjust" >
|
||||
<telerik:ImageToolItem ImageKey="HueShift" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_HueShift"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:HueShiftTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Saturation" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Saturation"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:SaturationTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Contrast" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_ContrastAdjust"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool" >
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:ContrastTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Invert" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_InvertColors"
|
||||
Command="commands:ImageEditorRoutedCommands.InvertColors" />
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
<telerik:ImageToolsSection telerik:LocalizationManager.ResourceKey="ImageEditor_Effects">
|
||||
<telerik:ImageToolItem ImageKey="Sharpen" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Sharpen"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:SharpenTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
<telerik:ImageToolItem ImageKey="Blur" telerik:LocalizationManager.ResourceKey="ImageEditor_Effect_Blur"
|
||||
Command="commands:ImageEditorRoutedCommands.ExecuteTool">
|
||||
<telerik:ImageToolItem.CommandParameter>
|
||||
<tools:BlurTool />
|
||||
</telerik:ImageToolItem.CommandParameter>
|
||||
</telerik:ImageToolItem>
|
||||
</telerik:ImageToolsSection>
|
||||
|
||||
</telerik:RadImageEditorUI.ImageToolsSections>
|
||||
</telerik:RadImageEditorUI>
|
||||
</Grid>
|
||||
</Window>
|
|
@ -0,0 +1,26 @@
|
|||
using System.Windows;
|
||||
using Telerik.Windows.Controls;
|
||||
using Telerik.Windows.Media.Imaging.Tools;
|
||||
|
||||
|
||||
namespace Localization
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
LocalizationManager.Manager = new LocalizationManager()
|
||||
{
|
||||
ResourceManager = RadImageEditorResources.ResourceManager
|
||||
};
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
ImageExampleHelper.LoadSampleImage(this.ImageEditorUI, "RadImageEditor.png");
|
||||
this.ImageEditorUI.ImageEditor.ExecuteTool(new ResizeTool());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
>
|
||||
<Deployment.Parts>
|
||||
</Deployment.Parts>
|
||||
</Deployment>
|
|
@ -0,0 +1,35 @@
|
|||
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("Localization")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Localization")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("e7a12858-f101-4f37-b2fe-f3ab4fc8e9be")]
|
||||
|
||||
// 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 Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,558 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34003
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Localization {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class RadImageEditorResources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal RadImageEditorResources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Localization.RadImageEditorResources", typeof(RadImageEditorResources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cancel.
|
||||
/// </summary>
|
||||
public static string Cancel {
|
||||
get {
|
||||
return ResourceManager.GetString("Cancel", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close.
|
||||
/// </summary>
|
||||
public static string Close {
|
||||
get {
|
||||
return ResourceManager.GetString("Close", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Adjust.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Adjust {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Adjust", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Amount.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Amount {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Amount", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Auto.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Auto {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Auto", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Background:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Background {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Background", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Border Color:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_BorderColor {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_BorderColor", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Border Thickness:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_BorderThickness {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_BorderThickness", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Canvas Resize.
|
||||
/// </summary>
|
||||
public static string ImageEditor_CanvasResize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_CanvasResize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Canvas Size.
|
||||
/// </summary>
|
||||
public static string ImageEditor_CanvasSize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_CanvasSize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Crop.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Crop {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Crop", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Draw Text.
|
||||
/// </summary>
|
||||
public static string ImageEditor_DrawText {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_DrawText", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Your text here....
|
||||
/// </summary>
|
||||
public static string ImageEditor_DrawText_YourTextHere {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_DrawText_YourTextHere", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Blur.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_Blur {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_Blur", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Brightness.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_Brightness {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_Brightness", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Contrast.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_ContrastAdjust {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_ContrastAdjust", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Hue Shift.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_HueShift {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_HueShift", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Invert Colors.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_InvertColors {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_InvertColors", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saturation.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_Saturation {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_Saturation", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sharpen.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effect_Sharpen {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effect_Sharpen", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Effects.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Effects {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Effects", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Flip Horizontal.
|
||||
/// </summary>
|
||||
public static string ImageEditor_FlipHorizontal {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_FlipHorizontal", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Flip Vertical.
|
||||
/// </summary>
|
||||
public static string ImageEditor_FlipVertical {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_FlipVertical", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Font Size.
|
||||
/// </summary>
|
||||
public static string ImageEditor_FontSize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_FontSize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Height:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Height {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Height", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Horizontal Position.
|
||||
/// </summary>
|
||||
public static string ImageEditor_HorizontalPosition {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_HorizontalPosition", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Image Alignment.
|
||||
/// </summary>
|
||||
public static string ImageEditor_ImageAlignment {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_ImageAlignment", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Image Preview.
|
||||
/// </summary>
|
||||
public static string ImageEditor_ImagePreview {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_ImagePreview", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Image Size.
|
||||
/// </summary>
|
||||
public static string ImageEditor_ImageSize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_ImageSize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Open.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Open {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Open", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Options.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Options {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Options", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Preserve Aspect Ratio.
|
||||
/// </summary>
|
||||
public static string ImageEditor_PreserveAspectRatio {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_PreserveAspectRatio", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Radius:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Radius {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Radius", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Redo.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Redo {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Redo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Relative Size.
|
||||
/// </summary>
|
||||
public static string ImageEditor_RelativeSize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_RelativeSize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Resize.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Resize {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Resize", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Rotate 180°.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Rotate180 {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Rotate180", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Rotate 270°.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Rotate270 {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Rotate270", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Rotate 90°.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Rotate90 {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Rotate90", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Rotation.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Rotation {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Rotation", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Round Corners.
|
||||
/// </summary>
|
||||
public static string ImageEditor_RoundCorners {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_RoundCorners", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Save.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Save {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Save", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Text.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Text {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Text", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Text Color.
|
||||
/// </summary>
|
||||
public static string ImageEditor_TextColor {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_TextColor", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The file cannot be opened..
|
||||
/// </summary>
|
||||
public static string ImageEditor_TheFileCannotBeOpened {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_TheFileCannotBeOpened", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The file cannot be opened. It might be locked by another application..
|
||||
/// </summary>
|
||||
public static string ImageEditor_TheFileIsLocked {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_TheFileIsLocked", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Transform.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Transform {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Transform", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Unable to save the file..
|
||||
/// </summary>
|
||||
public static string ImageEditor_UnableToSaveFile {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_UnableToSaveFile", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Undo.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Undo {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Undo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Unsupported file format..
|
||||
/// </summary>
|
||||
public static string ImageEditor_UnsupportedFileFormat {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_UnsupportedFileFormat", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Vertical Position.
|
||||
/// </summary>
|
||||
public static string ImageEditor_VerticalPosition {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_VerticalPosition", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Width:.
|
||||
/// </summary>
|
||||
public static string ImageEditor_Width {
|
||||
get {
|
||||
return ResourceManager.GetString("ImageEditor_Width", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to OK.
|
||||
/// </summary>
|
||||
public static string Ok {
|
||||
get {
|
||||
return ResourceManager.GetString("Ok", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset.
|
||||
/// </summary>
|
||||
public static string Reset {
|
||||
get {
|
||||
return ResourceManager.GetString("Reset", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Reset All.
|
||||
/// </summary>
|
||||
public static string ResetAll {
|
||||
get {
|
||||
return ResourceManager.GetString("ResetAll", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,285 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Close" xml:space="preserve">
|
||||
<value>Close</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Adjust" xml:space="preserve">
|
||||
<value>Adjust</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Amount" xml:space="preserve">
|
||||
<value>Amount</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Auto" xml:space="preserve">
|
||||
<value>Auto</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Background" xml:space="preserve">
|
||||
<value>Background:</value>
|
||||
</data>
|
||||
<data name="ImageEditor_BorderColor" xml:space="preserve">
|
||||
<value>Border Color:</value>
|
||||
</data>
|
||||
<data name="ImageEditor_BorderThickness" xml:space="preserve">
|
||||
<value>Border Thickness:</value>
|
||||
</data>
|
||||
<data name="ImageEditor_CanvasResize" xml:space="preserve">
|
||||
<value>Canvas Resize</value>
|
||||
</data>
|
||||
<data name="ImageEditor_CanvasSize" xml:space="preserve">
|
||||
<value>Canvas Size</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Crop" xml:space="preserve">
|
||||
<value>Crop</value>
|
||||
</data>
|
||||
<data name="ImageEditor_DrawText" xml:space="preserve">
|
||||
<value>Draw Text</value>
|
||||
</data>
|
||||
<data name="ImageEditor_DrawText_YourTextHere" xml:space="preserve">
|
||||
<value>Your text here...</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effects" xml:space="preserve">
|
||||
<value>Effects</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_Blur" xml:space="preserve">
|
||||
<value>Blur</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_Brightness" xml:space="preserve">
|
||||
<value>Brightness</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_ContrastAdjust" xml:space="preserve">
|
||||
<value>Contrast</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_HueShift" xml:space="preserve">
|
||||
<value>Hue Shift</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_InvertColors" xml:space="preserve">
|
||||
<value>Invert Colors</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_Saturation" xml:space="preserve">
|
||||
<value>Saturation</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Effect_Sharpen" xml:space="preserve">
|
||||
<value>Sharpen</value>
|
||||
</data>
|
||||
<data name="ImageEditor_FlipHorizontal" xml:space="preserve">
|
||||
<value>Flip Horizontal</value>
|
||||
</data>
|
||||
<data name="ImageEditor_FlipVertical" xml:space="preserve">
|
||||
<value>Flip Vertical</value>
|
||||
</data>
|
||||
<data name="ImageEditor_FontSize" xml:space="preserve">
|
||||
<value>Font Size</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Height" xml:space="preserve">
|
||||
<value>Height:</value>
|
||||
</data>
|
||||
<data name="ImageEditor_HorizontalPosition" xml:space="preserve">
|
||||
<value>Horizontal Position</value>
|
||||
</data>
|
||||
<data name="ImageEditor_ImageAlignment" xml:space="preserve">
|
||||
<value>Image Alignment</value>
|
||||
</data>
|
||||
<data name="ImageEditor_ImagePreview" xml:space="preserve">
|
||||
<value>Image Preview</value>
|
||||
</data>
|
||||
<data name="ImageEditor_ImageSize" xml:space="preserve">
|
||||
<value>Image Size</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Open" xml:space="preserve">
|
||||
<value>Open</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Options" xml:space="preserve">
|
||||
<value>Options</value>
|
||||
</data>
|
||||
<data name="ImageEditor_PreserveAspectRatio" xml:space="preserve">
|
||||
<value>Preserve Aspect Ratio</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Radius" xml:space="preserve">
|
||||
<value>Radius:</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Redo" xml:space="preserve">
|
||||
<value>Redo</value>
|
||||
</data>
|
||||
<data name="ImageEditor_RelativeSize" xml:space="preserve">
|
||||
<value>Relative Size</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Resize" xml:space="preserve">
|
||||
<value>Resize</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Rotate180" xml:space="preserve">
|
||||
<value>Rotate 180°</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Rotate270" xml:space="preserve">
|
||||
<value>Rotate 270°</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Rotate90" xml:space="preserve">
|
||||
<value>Rotate 90°</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Rotation" xml:space="preserve">
|
||||
<value>Rotation</value>
|
||||
</data>
|
||||
<data name="ImageEditor_RoundCorners" xml:space="preserve">
|
||||
<value>Round Corners</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Save" xml:space="preserve">
|
||||
<value>Save</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Text" xml:space="preserve">
|
||||
<value>Text</value>
|
||||
</data>
|
||||
<data name="ImageEditor_TextColor" xml:space="preserve">
|
||||
<value>Text Color</value>
|
||||
</data>
|
||||
<data name="ImageEditor_TheFileCannotBeOpened" xml:space="preserve">
|
||||
<value>The file cannot be opened.</value>
|
||||
</data>
|
||||
<data name="ImageEditor_TheFileIsLocked" xml:space="preserve">
|
||||
<value>The file cannot be opened. It might be locked by another application.</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Transform" xml:space="preserve">
|
||||
<value>Transform</value>
|
||||
</data>
|
||||
<data name="ImageEditor_UnableToSaveFile" xml:space="preserve">
|
||||
<value>Unable to save the file.</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Undo" xml:space="preserve">
|
||||
<value>Undo</value>
|
||||
</data>
|
||||
<data name="ImageEditor_UnsupportedFileFormat" xml:space="preserve">
|
||||
<value>Unsupported file format.</value>
|
||||
</data>
|
||||
<data name="ImageEditor_VerticalPosition" xml:space="preserve">
|
||||
<value>Vertical Position</value>
|
||||
</data>
|
||||
<data name="ImageEditor_Width" xml:space="preserve">
|
||||
<value>Width:</value>
|
||||
</data>
|
||||
<data name="Ok" xml:space="preserve">
|
||||
<value>OK</value>
|
||||
</data>
|
||||
<data name="Reset" xml:space="preserve">
|
||||
<value>Reset</value>
|
||||
</data>
|
||||
<data name="ResetAll" xml:space="preserve">
|
||||
<value>Reset All</value>
|
||||
</data>
|
||||
<data name="Cancel" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
</root>
|
|
@ -0,0 +1 @@
|
|||
The example shows how RadImageEditor along with the predefined UI of the control can be localized.
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 802 KiB |
|
@ -47,7 +47,7 @@ namespace PdfViewerCustomSaveCommand.Commands
|
|||
str.Flush();
|
||||
str.Seek(0, SeekOrigin.Begin);
|
||||
stream.Flush();
|
||||
PdfDocumentSource source = new PdfDocumentSource(str, FormatProviderSettings.ReadAllAtOnce);
|
||||
PdfDocumentSource source = new PdfDocumentSource(str, FormatProviderSettings.ReadOnDemand);
|
||||
source.Loaded += (s, e) =>
|
||||
{
|
||||
str.Close();
|
||||
|
|
Загрузка…
Ссылка в новой задаче