Merge pull request #330 from telerik/hhristov/data-form-update
RadDataForm EntityProvider is now initialized immediately
This commit is contained in:
Коммит
5feceb7210
|
@ -1,421 +1,422 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<PlatformFolder>$(Platform)</PlatformFolder>
|
||||
<OutputPath>bin\$(PlatformFolder)\$(Configuration)\</OutputPath>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{02174A60-4907-449E-818C-A25A39C0B3DC}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Telerik.UI.Xaml.Controls.Data</RootNamespace>
|
||||
<AssemblyName>Telerik.UI.Xaml.Controls.Data.UWP</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
||||
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>$(OutputPath)\Telerik.UI.Xaml.Controls.Data.XML</DocumentationFile>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Common\ContainerGeneration\HexItemModelGenerator.cs" />
|
||||
<Compile Include="DataForm\View\Editors\DataFormComboBoxItem.cs" />
|
||||
<Compile Include="DataForm\View\Editors\SegmentedControlCustomEditor.cs" />
|
||||
<Compile Include="DataForm\View\Editors\SliderCustomEditor.cs" />
|
||||
<Compile Include="ListView\Data\ListViewDataView.cs" />
|
||||
<Compile Include="ListView\View\Controls\ListViewLoadDataUICommand.cs" />
|
||||
<Compile Include="ListView\View\RadListView.Data.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\GroupHeaderTapCommand.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\ItemHoldCommand.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\ItemHoldContext.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="DataBoundListBox\AutomationPeers\RadDataBoundListBoxAutomationPeer.cs" />
|
||||
<Compile Include="DataBoundListBox\AutomationPeers\RadDataBoundListBoxItemAutomationPeer.cs" />
|
||||
<Compile Include="DataForm\AutomationPeers\RadDataFormAutomationPeer.cs" />
|
||||
<Compile Include="HexView\AutomationPeers\RadHexViewAutomationPeer.cs" />
|
||||
<Compile Include="ListView\AutomationPeers\RadListViewAutomationPeer.cs" />
|
||||
<Compile Include="ListView\AutomationPeers\RadListViewItemAutomationPeer.cs" />
|
||||
<Compile Include="VirtualizingDataControl\RenderInfo\StaggeredRenderInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="Themes\DataForm.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\Generic.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\Listbox.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesDark.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesHighContrast.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesLight.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Core.UWP\Core.UWP.csproj">
|
||||
<Project>{1652093c-b541-48c9-bcb6-bbe7ce7c7ffe}</Project>
|
||||
<Name>Core.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Data.UWP\Data.UWP.csproj">
|
||||
<Project>{453edd2c-5b29-4d4e-b4da-578d0bdca06f}</Project>
|
||||
<Name>Data.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Input\Input.UWP\Input.UWP.csproj">
|
||||
<Project>{5db497cd-b469-42a8-ae39-41b8465710a6}</Project>
|
||||
<Name>Input.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Primitives\Primitives.UWP\Primitives.UWP.csproj">
|
||||
<Project>{bf14f352-f1b9-4cde-854b-0339259a4cfd}</Project>
|
||||
<Name>Primitives.UWP</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>Telerik.UI.Xaml.Controls.Data</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\GeneratedItemModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IAnimated.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IArrangeChild.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IGeneratedContainer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\ItemGeneratorBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\ItemModelGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Controls\DataControlBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Controls\TemplateProviderControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\DataCurrencyService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\DelegateUpdate.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Enums\EmptyContentDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Enums\HeaderFooterDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\IListSourceProvider.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\IPullToRefreshListener.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\OffsetToAngleConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\OffsetToOpacityConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\PullToRefreshGestureRecognizer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\SwipeEaseFunction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\CheckedItemsCollection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\CheckedItemsCollectionOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\IsCheckModeActiveChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\IsCheckModeActiveChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckedStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckedStateChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\RadDataBoundListBox.CheckBoxes.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\RadDataBoundListBox.CheckBoxes.WP.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\Controls\PullToRefreshIndicatorControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\DataBoundListBoxListSourceItemFactory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\IncrementalLoadingIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\ItemReorderControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\ItemReorderStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\RadDataBoundListBox.ItemReorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListBoxItemTapEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListFooterIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListHeaderIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBox.PullToRefresh.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBoxItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBoxItem.WP.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\SelectionChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataControlsLocalizationManager.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\DataFormModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\IDataFormView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\CommitMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\ValidationMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommandId.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommandService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommitCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\DataFormCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\ITransactionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\Layout\DataFormLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\Layout\StackDataFormLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\TransactionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\ValidateCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EditorIconVisibilityConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EnumToItemsSourceConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EnumToIndexConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\IsEnabledEditorConvetrer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\EditorFactory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\AutoCompleteEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\BooleanEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormAutoCompleteTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormDateTimePickerButton.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormNumericTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\ITypeEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\CustomEditors\CustomEditorBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\CustomEditors\ToggleSwitchCustomEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\DateEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorGeneration\EntityEditorGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorGeneration\IEntityPropertyEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorIconDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EntityPropertyControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EnumEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\ErrorsControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\LabelControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\ListEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\NumericEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\PositiveMessageControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\TimeEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\StringEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\RadDataForm.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\ContainerGeneration\HexViewItemUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\HexPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\HexViewItemTapEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\ImageConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\AngledHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\FlatLooseHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\FlatTightHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\HexLayoutDefinitionBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\AngledHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\FlatLooseHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\FlatTightHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\HexLayoutStrategyBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\RadHexView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\AddRemoveLayoutResult.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\BaseLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\CompactLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\ExpandCollapseEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\GroupInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\ItemInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutDoubleUtil.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutRenderInfoState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\OutlineLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\GeneratedLengthContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IGenerateLayoutLength.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IndexStorage.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IRenderInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IRenderInfoState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\StackedGeneratedLengthContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\StaggeredRenderInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\StackedCompactLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\StaggeredLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\IncrementalLoadingStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\ItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\LayoutStrategyBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\LayoutStrategyComparer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\PlaceholderStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\SlotStrategyExecutionOrders.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StackedItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StaggeredItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StaggeredLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\TabularGroupInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\WrapLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\BaseLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\EmptyContentGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\FooterGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\HeaderGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\ItemGenerationContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\GridLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\IListView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\IOrientedParentView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ISupportItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.HeaderFooter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ListViewModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\StackLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\UpdateFlags.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\WrapLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\CheckBoxPosition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\FrozenGroupsPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ItemCheckBoxControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewEmptyContentControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.IDragDropElement.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToRotateDegreesConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\CheckBoxListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\GridLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\StaggeredLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewGroupHeaderDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewItemSwipeDirection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.ItemCheckBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ChildrenListViewPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ChildrenListViewPanel.DragDrop.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\GroupHeaderContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewAutoDataLoadingControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewCurrencyControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewGroupHeader.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewLoadDataControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewLoadDataControlBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewRootPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\PullToRefreshIndicator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewItemUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.Reorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToSizeConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToVerticalAlignmentConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToHorizontalAlignmentConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Currency.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\CurrencyListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\EmptyContentListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\HeaderFooterListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\ListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\OverlayAdornerListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\ScrollableAdornerListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\PullToRefreshScrollMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToScrollModeConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\LayoutDefinitionBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewBusyOverlayControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\StackLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\WrapLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Manipulation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.PullToRefreshService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Reorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Selection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.SwipeAction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ListViewReorderMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ReorderListViewItemHitTestStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ReorderOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\AnimationType.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckBoxContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckBoxGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckModeActiveChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\IItemCheckBoxService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\ListViewItemCheckBoxService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\CommandId.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\CommandService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\DragAction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemActionTapCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemActionTapContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemReorderCompleteCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemReorderCompleteContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemDragStartingCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemDragStartingContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeContextBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipingContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipingCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeActionCompleteCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeActionCompleteContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemTapCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemTapContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ListViewCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ListViewUserCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\LoadMoreDataCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\LoadMoreDataContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\RefreshRequestedCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\DragDrop\ListViewDragBehavior.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\DragDrop\ListViewItemHittestStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewAnimationService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewCurrencyService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewUpdateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewVisualStateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\SelectedItemCollection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\BringIntoViewOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\AsyncBalanceMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\BalanceOperationType.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\ItemAnimationMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\ItemState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\ItemAnimationEndedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\ItemStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\UpdateDataItemEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControl.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControlItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\ScrollOffsetContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\ScrollUpdateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\SingleItemAnimationContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControl.Scrolling.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControl.UIVirtualization.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControlCollection.Updates.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\CollectionChangeItemReorderMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\DynamicGridVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\DynamicGridVirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\StackVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\StackVirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\VirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\VirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapLineAlignment.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapVirtualizationStrategyDefinition.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ListViewModel.Data.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PRIResource Include="$(MSBuildThisFileDirectory)Resources\Neutral.resw" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadDataBoundListBox.Icon.png" />
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadDataForm.Icon.png" />
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadListView.Icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadHexView.Icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="$(MSBuildThisFileDirectory)ListView\Resources\reorder-handle-dark.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)ListView\Resources\reorder-handle-light.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\..\BuildTools\Win8PublicKey.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<Import Project="..\..\..\BuildTools\CopyBinaries.targets" />
|
||||
<Target Name="XamlGeneratedCodeWarningRemoved" AfterTargets="MarkupCompilePass2">
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do echo #pragma warning disable 1591 > %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do type %%f >> %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do echo #pragma warning restore 1591 >> %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do move /y %%f.temp %%f" />
|
||||
<Message Text="Xaml Generated Code Warnings Removed: @(_GeneratedCodeFiles)" />
|
||||
</Target>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<PlatformFolder>$(Platform)</PlatformFolder>
|
||||
<OutputPath>bin\$(PlatformFolder)\$(Configuration)\</OutputPath>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{02174A60-4907-449E-818C-A25A39C0B3DC}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Telerik.UI.Xaml.Controls.Data</RootNamespace>
|
||||
<AssemblyName>Telerik.UI.Xaml.Controls.Data.UWP</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
||||
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>$(OutputPath)\Telerik.UI.Xaml.Controls.Data.XML</DocumentationFile>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
|
||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Common\ContainerGeneration\HexItemModelGenerator.cs" />
|
||||
<Compile Include="DataForm\View\Editors\DataFormComboBoxItem.cs" />
|
||||
<Compile Include="DataForm\View\Editors\IEditor.cs" />
|
||||
<Compile Include="DataForm\View\Editors\SegmentedControlCustomEditor.cs" />
|
||||
<Compile Include="DataForm\View\Editors\SliderCustomEditor.cs" />
|
||||
<Compile Include="ListView\Data\ListViewDataView.cs" />
|
||||
<Compile Include="ListView\View\Controls\ListViewLoadDataUICommand.cs" />
|
||||
<Compile Include="ListView\View\RadListView.Data.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\GroupHeaderTapCommand.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\ItemHoldCommand.cs" />
|
||||
<Compile Include="ListView\View\Services\Commands\ItemHoldContext.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="DataBoundListBox\AutomationPeers\RadDataBoundListBoxAutomationPeer.cs" />
|
||||
<Compile Include="DataBoundListBox\AutomationPeers\RadDataBoundListBoxItemAutomationPeer.cs" />
|
||||
<Compile Include="DataForm\AutomationPeers\RadDataFormAutomationPeer.cs" />
|
||||
<Compile Include="HexView\AutomationPeers\RadHexViewAutomationPeer.cs" />
|
||||
<Compile Include="ListView\AutomationPeers\RadListViewAutomationPeer.cs" />
|
||||
<Compile Include="ListView\AutomationPeers\RadListViewItemAutomationPeer.cs" />
|
||||
<Compile Include="VirtualizingDataControl\RenderInfo\StaggeredRenderInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="Themes\DataForm.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\Generic.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\Listbox.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesDark.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesHighContrast.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="Themes\ThemeResourcesLight.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Core.UWP\Core.UWP.csproj">
|
||||
<Project>{1652093c-b541-48c9-bcb6-bbe7ce7c7ffe}</Project>
|
||||
<Name>Core.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Data.UWP\Data.UWP.csproj">
|
||||
<Project>{453edd2c-5b29-4d4e-b4da-578d0bdca06f}</Project>
|
||||
<Name>Data.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Input\Input.UWP\Input.UWP.csproj">
|
||||
<Project>{5db497cd-b469-42a8-ae39-41b8465710a6}</Project>
|
||||
<Name>Input.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Primitives\Primitives.UWP\Primitives.UWP.csproj">
|
||||
<Project>{bf14f352-f1b9-4cde-854b-0339259a4cfd}</Project>
|
||||
<Name>Primitives.UWP</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>Telerik.UI.Xaml.Controls.Data</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\GeneratedItemModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IAnimated.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IArrangeChild.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IGeneratedContainer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\ItemGeneratorBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\ItemModelGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\ContainerGeneration\IUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Controls\DataControlBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Controls\TemplateProviderControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\DataCurrencyService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\DelegateUpdate.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Enums\EmptyContentDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\Enums\HeaderFooterDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\IListSourceProvider.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\IPullToRefreshListener.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\OffsetToAngleConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\OffsetToOpacityConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\PullToRefreshGestureRecognizer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Common\PullToRefresh\SwipeEaseFunction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\CheckedItemsCollection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\CheckedItemsCollectionOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\IsCheckModeActiveChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\IsCheckModeActiveChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckedStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\ItemCheckedStateChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\RadDataBoundListBox.CheckBoxes.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\CheckBoxesSupport\RadDataBoundListBox.CheckBoxes.WP.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\Controls\PullToRefreshIndicatorControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\DataBoundListBoxListSourceItemFactory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\IncrementalLoadingIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\ItemReorderControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\ItemReorderStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ItemReorderSupport\RadDataBoundListBox.ItemReorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListBoxItemTapEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListFooterIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\ListHeaderIndicatorItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBox.PullToRefresh.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBoxItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\RadDataBoundListBoxItem.WP.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataBoundListBox\SelectionChangingEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataControlsLocalizationManager.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\DataFormModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\IDataFormView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\CommitMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Model\ValidationMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommandId.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommandService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\CommitCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\DataFormCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\ITransactionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\Layout\DataFormLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\Layout\StackDataFormLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\TransactionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\Services\ValidateCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EditorIconVisibilityConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EnumToItemsSourceConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\EnumToIndexConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Converters\IsEnabledEditorConvetrer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\EditorFactory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\AutoCompleteEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\BooleanEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormAutoCompleteTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormDateTimePickerButton.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormNumericTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\DataFormTextBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\Controls\ITypeEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\CustomEditors\CustomEditorBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\CustomEditors\ToggleSwitchCustomEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\DateEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorGeneration\EntityEditorGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorGeneration\IEntityPropertyEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EditorIconDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EntityPropertyControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\EnumEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\ErrorsControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\LabelControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\ListEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\NumericEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\PositiveMessageControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\TimeEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\Editors\StringEditor.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)DataForm\View\RadDataForm.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\ContainerGeneration\HexViewItemUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\HexPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\HexViewItemTapEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\ImageConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\AngledHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\FlatLooseHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\FlatTightHexLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Definitions\HexLayoutDefinitionBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\AngledHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\FlatLooseHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\FlatTightHexLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\Layout\Strategies\HexLayoutStrategyBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HexView\RadHexView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\AddRemoveLayoutResult.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\BaseLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\CompactLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\ExpandCollapseEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\GroupInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\ItemInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutDoubleUtil.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\LayoutRenderInfoState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\OutlineLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\GeneratedLengthContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IGenerateLayoutLength.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IndexStorage.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IRenderInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\IRenderInfoState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\StackedGeneratedLengthContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\RenderInfo\StaggeredRenderInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\StackedCompactLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\StaggeredLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\IncrementalLoadingStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\ItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\LayoutStrategyBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\LayoutStrategyComparer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\PlaceholderStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\SlotStrategyExecutionOrders.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StackedItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StaggeredItemsLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\Strategies\StaggeredLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\TabularGroupInfo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Layout\WrapLayout.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\BaseLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\EmptyContentGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\FooterGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\HeaderGeneratedModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ContainerGeneration\ItemGenerationContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\GridLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\IListView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\IOrientedParentView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ISupportItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.HeaderFooter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\LayoutController.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ListViewModel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\StackLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\UpdateFlags.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\WrapLayoutStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\CheckBoxPosition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\FrozenGroupsPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ItemCheckBoxControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewEmptyContentControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.IDragDropElement.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToRotateDegreesConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\CheckBoxListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\GridLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\StaggeredLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewGroupHeaderDisplayMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewItemSwipeDirection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.ItemCheckBox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ChildrenListViewPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ChildrenListViewPanel.DragDrop.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\GroupHeaderContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewAutoDataLoadingControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewCurrencyControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewGroupHeader.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewLoadDataControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewLoadDataControlBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewRootPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\PullToRefreshIndicator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewItemUIContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\ListViewPanel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Controls\RadListViewItem.Reorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToSizeConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToVerticalAlignmentConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToHorizontalAlignmentConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Currency.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\CurrencyListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\EmptyContentListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\HeaderFooterListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\ListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\OverlayAdornerListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Layers\ScrollableAdornerListViewLayer.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\PullToRefreshScrollMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Converters\OrientationToScrollModeConverter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\LayoutDefinitionBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\ListViewBusyOverlayControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\StackLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\LayoutDefinitions\WrapLayoutDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Manipulation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.PullToRefreshService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Reorder.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.Selection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\RadListView.SwipeAction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ListViewReorderMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ReorderListViewItemHitTestStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Reorder\ReorderOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\AnimationType.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckBoxContainerGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckBoxGenerator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\CheckModeActiveChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\IItemCheckBoxService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\CheckBoxSelection\ListViewItemCheckBoxService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\CommandId.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\CommandService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\DragAction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemActionTapCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemActionTapContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemReorderCompleteCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemReorderCompleteContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemDragStartingCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemDragStartingContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeContextBase.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipingContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipingCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeActionCompleteCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemSwipeActionCompleteContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemTapCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ItemTapContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ListViewCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\ListViewUserCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\LoadMoreDataCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\LoadMoreDataContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Commands\RefreshRequestedCommand.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\DragDrop\ListViewDragBehavior.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\DragDrop\ListViewItemHittestStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewAnimationService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewCurrencyService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewUpdateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\ListViewVisualStateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\ListViewSelectionService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\View\Services\Selection\SelectedItemCollection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\BringIntoViewOperation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\AsyncBalanceMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\BalanceOperationType.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\ItemAnimationMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Enumerations\ItemState.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\ItemAnimationEndedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\ItemStateChangedEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\Events\UpdateDataItemEventArgs.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControl.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControl.ItemAnimation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\RadVirtualizingDataControlItem.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\ScrollOffsetContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\ScrollUpdateService.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\SingleItemAnimationContext.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControl.Scrolling.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControl.UIVirtualization.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VirtualizingDataControlCollection.Updates.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\CollectionChangeItemReorderMode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\DynamicGridVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\DynamicGridVirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\StackVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\StackVirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\VirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\VirtualizationStrategyDefinition.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapLineAlignment.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapVirtualizationStrategy.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)VirtualizingDataControl\VStrategies\WrapVirtualizationStrategyDefinition.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)ListView\Model\ListViewModel.Data.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PRIResource Include="$(MSBuildThisFileDirectory)Resources\Neutral.resw" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadDataBoundListBox.Icon.png" />
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadDataForm.Icon.png" />
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadListView.Icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)ToolboxIcons\Telerik.UI.Xaml.Controls.Data.RadHexView.Icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="$(MSBuildThisFileDirectory)ListView\Resources\reorder-handle-dark.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)ListView\Resources\reorder-handle-light.png">
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\..\BuildTools\Win8PublicKey.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<Import Project="..\..\..\BuildTools\CopyBinaries.targets" />
|
||||
<Target Name="XamlGeneratedCodeWarningRemoved" AfterTargets="MarkupCompilePass2">
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do echo #pragma warning disable 1591 > %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do type %%f >> %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do echo #pragma warning restore 1591 >> %%f.temp" />
|
||||
<Exec Command="for %%f in (@(_GeneratedCodeFiles)) do move /y %%f.temp %%f" />
|
||||
<Message Text="Xaml Generated Code Warnings Removed: @(_GeneratedCodeFiles)" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -1,177 +1,194 @@
|
|||
using System.Linq;
|
||||
using Telerik.Data.Core;
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm.View;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
internal partial class DataFormModel
|
||||
{
|
||||
private Entity entity;
|
||||
|
||||
private EntityEditorGenerator containerGenerator;
|
||||
|
||||
internal DataFormModel(IDataFormView view)
|
||||
{
|
||||
this.View = view;
|
||||
this.containerGenerator = new EntityEditorGenerator(view);
|
||||
}
|
||||
|
||||
internal IDataFormView View { get; set; }
|
||||
internal EntityProvider entityProvider { get; set; }
|
||||
|
||||
internal EditorFactory EditorFactory
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.containerGenerator.EditorFactory;
|
||||
}
|
||||
}
|
||||
|
||||
internal ITransactionService TransactionService
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.View.TransactionService;
|
||||
}
|
||||
}
|
||||
|
||||
internal Entity Entity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnEntityChanged(value, this.entity);
|
||||
this.entity = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnEditorFactoryChanged(EditorFactory factory)
|
||||
{
|
||||
this.entity.IsReadOnly = factory.RestrictEditableControls;
|
||||
this.containerGenerator.EditorFactory = factory;
|
||||
|
||||
if (this.entity != null)
|
||||
{
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnEntityChanged(Entity entity, Entity oldEntity)
|
||||
{
|
||||
if (entity != null && entity.Validator != null)
|
||||
{
|
||||
entity.Validator.ErrorsChanged += this.Validator_ErrorsChanged;
|
||||
}
|
||||
|
||||
if (oldEntity != null && oldEntity.Validator != null)
|
||||
{
|
||||
oldEntity.Validator.ErrorsChanged -= this.Validator_ErrorsChanged;
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnCommitModeChanged(CommitMode mode, CommitMode previousMode)
|
||||
{
|
||||
this.containerGenerator.OnCommitModeChanged(mode, previousMode);
|
||||
}
|
||||
|
||||
internal void OnItemChanged(object newItem)
|
||||
{
|
||||
if (this.entityProvider == null)
|
||||
{
|
||||
this.CreateDefaultEntityProvider();
|
||||
}
|
||||
|
||||
this.entityProvider.OnItemChanged(newItem);
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.Entity = this.entityProvider.GenerateEntity();
|
||||
this.Entity.IsReadOnly = this.View.IsReadOnly;
|
||||
this.BuildEditors();
|
||||
}
|
||||
|
||||
internal void OnIsReadOnlyChanged(bool oldValue, bool newValue)
|
||||
{
|
||||
if (this.Entity != null)
|
||||
{
|
||||
this.Entity.IsReadOnly = newValue;
|
||||
this.containerGenerator.EditorFactory.RestrictEditableControls = newValue;
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnIterationModeChanged(PropertyIteratorMode iterationMode)
|
||||
{
|
||||
this.entityProvider.IteratorMode = iterationMode;
|
||||
}
|
||||
|
||||
internal void OnEntityProviderChanged(EntityProvider provider)
|
||||
{
|
||||
this.entityProvider = provider;
|
||||
}
|
||||
|
||||
internal void RefreshLayout()
|
||||
{
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
|
||||
private void Validator_ErrorsChanged(object sender, System.ComponentModel.DataErrorsChangedEventArgs e)
|
||||
{
|
||||
this.TransactionService.ErrorsChanged(sender, e.PropertyName);
|
||||
}
|
||||
|
||||
private void CreateDefaultEntityProvider()
|
||||
{
|
||||
this.entityProvider = new RuntimeEntityProvider();
|
||||
}
|
||||
|
||||
private void BuildEditors()
|
||||
{
|
||||
var properties = this.entity.Properties.OrderBy((property) => property.Index);
|
||||
|
||||
foreach (var entityProperty in properties)
|
||||
{
|
||||
object groupContainer = null;
|
||||
|
||||
if (entityProperty.GroupKey != null)
|
||||
{
|
||||
groupContainer = this.GetOrCreateGroupContainer(entityProperty.GroupKey);
|
||||
}
|
||||
|
||||
var editor = this.containerGenerator.CreateContainer(entityProperty);
|
||||
|
||||
if (editor != null)
|
||||
{
|
||||
this.containerGenerator.PrepareContainer(editor, entityProperty);
|
||||
|
||||
if (entityProperty.GroupKey == null)
|
||||
{
|
||||
this.View.AddEditor(editor);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.containerGenerator.AddViewToGroupContainer(groupContainer, editor);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private object GetOrCreateGroupContainer(string groupKey)
|
||||
{
|
||||
var container = this.containerGenerator.GetGroupContainer(groupKey);
|
||||
|
||||
if (container == null)
|
||||
{
|
||||
container = this.containerGenerator.CreateGroupContainer(groupKey);
|
||||
this.containerGenerator.PrepareGroupContainer(container, groupKey);
|
||||
}
|
||||
|
||||
return container;
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Telerik.Data.Core;
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm.View;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
internal partial class DataFormModel
|
||||
{
|
||||
private Entity entity;
|
||||
private EntityEditorGenerator containerGenerator;
|
||||
private Dictionary<EntityProperty, EntityPropertyControl> propertyToEditor = new Dictionary<EntityProperty, EntityPropertyControl>();
|
||||
|
||||
internal DataFormModel(IDataFormView view)
|
||||
{
|
||||
this.View = view;
|
||||
this.containerGenerator = new EntityEditorGenerator(view);
|
||||
}
|
||||
|
||||
internal IDataFormView View { get; set; }
|
||||
internal EntityProvider entityProvider { get; set; }
|
||||
|
||||
internal EditorFactory EditorFactory
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.containerGenerator.EditorFactory;
|
||||
}
|
||||
}
|
||||
|
||||
internal ITransactionService TransactionService
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.View.TransactionService;
|
||||
}
|
||||
}
|
||||
|
||||
internal Entity Entity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.OnEntityChanged(value, this.entity);
|
||||
this.entity = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnEditorFactoryChanged(EditorFactory factory)
|
||||
{
|
||||
this.entity.IsReadOnly = factory.RestrictEditableControls;
|
||||
this.containerGenerator.EditorFactory = factory;
|
||||
|
||||
if (this.entity != null)
|
||||
{
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnEntityChanged(Entity entity, Entity oldEntity)
|
||||
{
|
||||
if (entity != null && entity.Validator != null)
|
||||
{
|
||||
entity.Validator.ErrorsChanged += this.Validator_ErrorsChanged;
|
||||
}
|
||||
|
||||
if (oldEntity != null && oldEntity.Validator != null)
|
||||
{
|
||||
oldEntity.Validator.ErrorsChanged -= this.Validator_ErrorsChanged;
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnCommitModeChanged(CommitMode mode, CommitMode previousMode)
|
||||
{
|
||||
this.containerGenerator.OnCommitModeChanged(mode, previousMode);
|
||||
}
|
||||
|
||||
internal void OnItemChanged(object newItem)
|
||||
{
|
||||
if (this.entityProvider == null)
|
||||
{
|
||||
this.CreateDefaultEntityProvider();
|
||||
}
|
||||
|
||||
if (this.entityProvider.Context != newItem)
|
||||
{
|
||||
this.entityProvider.OnItemChanged(newItem);
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.Entity = this.entityProvider.GenerateEntity();
|
||||
this.Entity.IsReadOnly = this.View.IsReadOnly;
|
||||
}
|
||||
|
||||
this.BuildEditors();
|
||||
}
|
||||
|
||||
internal void OnIsReadOnlyChanged(bool oldValue, bool newValue)
|
||||
{
|
||||
if (this.Entity != null)
|
||||
{
|
||||
this.Entity.IsReadOnly = newValue;
|
||||
this.containerGenerator.EditorFactory.RestrictEditableControls = newValue;
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
}
|
||||
|
||||
internal void OnIterationModeChanged(PropertyIteratorMode iterationMode)
|
||||
{
|
||||
this.entityProvider.IteratorMode = iterationMode;
|
||||
}
|
||||
|
||||
internal void OnEntityProviderChanged(EntityProvider provider)
|
||||
{
|
||||
this.entityProvider = provider;
|
||||
}
|
||||
|
||||
internal void RefreshLayout()
|
||||
{
|
||||
this.containerGenerator.RemoveAll();
|
||||
this.BuildEditors();
|
||||
}
|
||||
|
||||
internal object GetEditorCurrentValue(EntityProperty entityProperty)
|
||||
{
|
||||
EntityPropertyControl control;
|
||||
this.propertyToEditor.TryGetValue(entityProperty, out control);
|
||||
return control?.GetCurrentValue();
|
||||
}
|
||||
|
||||
private void Validator_ErrorsChanged(object sender, System.ComponentModel.DataErrorsChangedEventArgs e)
|
||||
{
|
||||
this.TransactionService.ErrorsChanged(sender, e.PropertyName);
|
||||
}
|
||||
|
||||
private void CreateDefaultEntityProvider()
|
||||
{
|
||||
this.entityProvider = new RuntimeEntityProvider();
|
||||
}
|
||||
|
||||
private void BuildEditors()
|
||||
{
|
||||
if (this.View.IsTemplateApplied)
|
||||
{
|
||||
this.propertyToEditor.Clear();
|
||||
|
||||
var properties = this.entity.Properties.OrderBy((property) => property.Index);
|
||||
|
||||
foreach (var entityProperty in properties)
|
||||
{
|
||||
object groupContainer = null;
|
||||
if (entityProperty.GroupKey != null)
|
||||
{
|
||||
groupContainer = this.GetOrCreateGroupContainer(entityProperty.GroupKey);
|
||||
}
|
||||
|
||||
var editor = this.containerGenerator.CreateContainer(entityProperty);
|
||||
if (editor != null)
|
||||
{
|
||||
this.propertyToEditor.Add(entityProperty, editor);
|
||||
this.containerGenerator.PrepareContainer(editor, entityProperty);
|
||||
|
||||
if (entityProperty.GroupKey == null)
|
||||
{
|
||||
this.View.AddEditor(editor);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.containerGenerator.AddViewToGroupContainer(groupContainer, editor);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private object GetOrCreateGroupContainer(string groupKey)
|
||||
{
|
||||
var container = this.containerGenerator.GetGroupContainer(groupKey);
|
||||
|
||||
if (container == null)
|
||||
{
|
||||
container = this.containerGenerator.CreateGroupContainer(groupKey);
|
||||
this.containerGenerator.PrepareGroupContainer(container, groupKey);
|
||||
}
|
||||
|
||||
return container;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,6 +11,7 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
CommandService CommandService { get; }
|
||||
ITransactionService TransactionService { get; }
|
||||
|
||||
bool IsTemplateApplied { get; }
|
||||
bool IsReadOnly { get; }
|
||||
|
||||
void AddEditor(object element);
|
||||
|
|
|
@ -1,110 +1,115 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an AutoCompleteEditor control.
|
||||
/// </summary>
|
||||
public class AutoCompleteEditor : RadAutoCompleteBox, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(AutoCompleteEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(AutoCompleteEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(AutoCompleteEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(AutoCompleteEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AutoCompleteEditor"/> class.
|
||||
/// </summary>
|
||||
public AutoCompleteEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(AutoCompleteEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(AutoCompleteEditor.TextProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(AutoCompleteEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(AutoCompleteEditor.WatermarkProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(AutoCompleteEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("ValueOptions");
|
||||
this.SetBinding(AutoCompleteEditor.ItemsSourceProperty, b4);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an AutoCompleteEditor control.
|
||||
/// </summary>
|
||||
public class AutoCompleteEditor : RadAutoCompleteBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(AutoCompleteEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(AutoCompleteEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(AutoCompleteEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(AutoCompleteEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AutoCompleteEditor"/> class.
|
||||
/// </summary>
|
||||
public AutoCompleteEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(AutoCompleteEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Text;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(AutoCompleteEditor.TextProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(AutoCompleteEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(AutoCompleteEditor.WatermarkProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(AutoCompleteEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("ValueOptions");
|
||||
this.SetBinding(AutoCompleteEditor.ItemsSourceProperty, b4);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
/// <summary>
|
||||
/// Represents a BooleanEditor control.
|
||||
/// </summary>
|
||||
public class BooleanEditor : CheckBox, ITypeEditor
|
||||
public class BooleanEditor : CheckBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="CheckedStateBackgroundBrush"/> dependency property.
|
||||
|
@ -38,6 +38,11 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
{
|
||||
this.SetValue(CheckedStateBackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.IsChecked;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -53,6 +58,6 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(BooleanEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,171 +1,182 @@
|
|||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Shapes;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a ToggleSwitchCustomEditor control.
|
||||
/// </summary>
|
||||
public class ToggleSwitchCustomEditor : CustomEditorBase<ToggleSwitch>
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackgroundBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundBrushProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackgroundBrush), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnSelectedBackgroundBrushChanged));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="OffStateBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty PointerOverBackgroundBrushProperty =
|
||||
DependencyProperty.Register(nameof(PointerOverBackgroundBrush), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnPointerOverBackgroundBrushPropertyChanged));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="OffStateBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty OffStateBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(OffStateBackground), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnOffStateBackgroundPropertyChanged));
|
||||
|
||||
private const string SwitchKnobBoundsPartName = "SwitchKnobBounds";
|
||||
private const string SwitchKnobOffPartName = "SwitchKnobOff";
|
||||
private const string OuterBorderPartName = "OuterBorder";
|
||||
private Rectangle switchKnobRect;
|
||||
private Ellipse switchKnobOffEllipse;
|
||||
private Rectangle outerBorderRect;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ToggleSwitchCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public ToggleSwitchCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(ToggleSwitchCustomEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush SelectedBackgroundBrush
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(SelectedBackgroundBrushProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(SelectedBackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the ellipse of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush OffStateBackground
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(OffStateBackgroundProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(OffStateBackgroundProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the ellipse of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush PointerOverBackgroundBrush
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(PointerOverBackgroundBrushProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(PointerOverBackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the <see cref="M:OnApplyTemplate" /> method has been called and the template is already successfully applied.
|
||||
/// </summary>
|
||||
protected override void OnTemplateApplied()
|
||||
{
|
||||
base.OnTemplateApplied();
|
||||
|
||||
if (this.EditorControl != null)
|
||||
{
|
||||
this.EditorControl.Loaded += this.OnToggleSwitchEditorLoaded;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnPointerEntered(PointerRoutedEventArgs e)
|
||||
{
|
||||
base.OnPointerEntered(e);
|
||||
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.PointerOverBackgroundBrush;
|
||||
this.switchKnobRect.Stroke = this.PointerOverBackgroundBrush;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnPointerExited(PointerRoutedEventArgs e)
|
||||
{
|
||||
base.OnPointerExited(e);
|
||||
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.SelectedBackgroundBrush;
|
||||
this.switchKnobRect.Stroke = this.SelectedBackgroundBrush;
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnSelectedBackgroundBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private static void OnOffStateBackgroundPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private static void OnPointerOverBackgroundBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private void OnToggleSwitchEditorLoaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.switchKnobRect = ElementTreeHelper.FindVisualDescendant<Rectangle>(this.EditorControl, a => a.GetType() == typeof(Rectangle) && ((Rectangle)a).Name == SwitchKnobBoundsPartName);
|
||||
this.switchKnobOffEllipse = ElementTreeHelper.FindVisualDescendant<Ellipse>(this.EditorControl, a => a.GetType() == typeof(Ellipse) && ((Ellipse)a).Name == SwitchKnobOffPartName);
|
||||
this.outerBorderRect = ElementTreeHelper.FindVisualDescendant<Rectangle>(this.EditorControl, a => a.GetType() == typeof(Rectangle) && ((Rectangle)a).Name == OuterBorderPartName);
|
||||
|
||||
this.UpdateSwitchBrushes();
|
||||
this.EditorControl.Loaded -= this.OnToggleSwitchEditorLoaded;
|
||||
}
|
||||
|
||||
private void UpdateSwitchBrushes()
|
||||
{
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.SelectedBackgroundBrush;
|
||||
}
|
||||
|
||||
if (this.switchKnobOffEllipse != null)
|
||||
{
|
||||
this.switchKnobOffEllipse.Fill = this.OffStateBackground;
|
||||
this.outerBorderRect.Stroke = this.OffStateBackground;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Shapes;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a ToggleSwitchCustomEditor control.
|
||||
/// </summary>
|
||||
public class ToggleSwitchCustomEditor : CustomEditorBase<ToggleSwitch>, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackgroundBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundBrushProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackgroundBrush), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnSelectedBackgroundBrushChanged));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="OffStateBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty PointerOverBackgroundBrushProperty =
|
||||
DependencyProperty.Register(nameof(PointerOverBackgroundBrush), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnPointerOverBackgroundBrushPropertyChanged));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="OffStateBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty OffStateBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(OffStateBackground), typeof(Brush), typeof(ToggleSwitchCustomEditor), new PropertyMetadata(null, OnOffStateBackgroundPropertyChanged));
|
||||
|
||||
private const string SwitchKnobBoundsPartName = "SwitchKnobBounds";
|
||||
private const string SwitchKnobOffPartName = "SwitchKnobOff";
|
||||
private const string OuterBorderPartName = "OuterBorder";
|
||||
private Rectangle switchKnobRect;
|
||||
private Ellipse switchKnobOffEllipse;
|
||||
private Rectangle outerBorderRect;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ToggleSwitchCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public ToggleSwitchCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(ToggleSwitchCustomEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush SelectedBackgroundBrush
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(SelectedBackgroundBrushProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(SelectedBackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the ellipse of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush OffStateBackground
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(OffStateBackgroundProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(OffStateBackgroundProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the ellipse of the ToggleSwitch knob.
|
||||
/// </summary>
|
||||
public Brush PointerOverBackgroundBrush
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(PointerOverBackgroundBrushProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(PointerOverBackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
var editor = this.EditorControl;
|
||||
if (editor != null)
|
||||
{
|
||||
return editor.IsOn;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the <see cref="M:OnApplyTemplate" /> method has been called and the template is already successfully applied.
|
||||
/// </summary>
|
||||
protected override void OnTemplateApplied()
|
||||
{
|
||||
base.OnTemplateApplied();
|
||||
|
||||
if (this.EditorControl != null)
|
||||
{
|
||||
this.EditorControl.Loaded += this.OnToggleSwitchEditorLoaded;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnPointerEntered(PointerRoutedEventArgs e)
|
||||
{
|
||||
base.OnPointerEntered(e);
|
||||
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.PointerOverBackgroundBrush;
|
||||
this.switchKnobRect.Stroke = this.PointerOverBackgroundBrush;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnPointerExited(PointerRoutedEventArgs e)
|
||||
{
|
||||
base.OnPointerExited(e);
|
||||
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.SelectedBackgroundBrush;
|
||||
this.switchKnobRect.Stroke = this.SelectedBackgroundBrush;
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnSelectedBackgroundBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private static void OnOffStateBackgroundPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private static void OnPointerOverBackgroundBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var toggleSwitchEditor = d as ToggleSwitchCustomEditor;
|
||||
toggleSwitchEditor.UpdateSwitchBrushes();
|
||||
}
|
||||
|
||||
private void OnToggleSwitchEditorLoaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.switchKnobRect = ElementTreeHelper.FindVisualDescendant<Rectangle>(this.EditorControl, a => a.GetType() == typeof(Rectangle) && ((Rectangle)a).Name == SwitchKnobBoundsPartName);
|
||||
this.switchKnobOffEllipse = ElementTreeHelper.FindVisualDescendant<Ellipse>(this.EditorControl, a => a.GetType() == typeof(Ellipse) && ((Ellipse)a).Name == SwitchKnobOffPartName);
|
||||
this.outerBorderRect = ElementTreeHelper.FindVisualDescendant<Rectangle>(this.EditorControl, a => a.GetType() == typeof(Rectangle) && ((Rectangle)a).Name == OuterBorderPartName);
|
||||
|
||||
this.UpdateSwitchBrushes();
|
||||
this.EditorControl.Loaded -= this.OnToggleSwitchEditorLoaded;
|
||||
}
|
||||
|
||||
private void UpdateSwitchBrushes()
|
||||
{
|
||||
if (this.switchKnobRect != null)
|
||||
{
|
||||
this.switchKnobRect.Fill = this.SelectedBackgroundBrush;
|
||||
}
|
||||
|
||||
if (this.switchKnobOffEllipse != null)
|
||||
{
|
||||
this.switchKnobOffEllipse.Fill = this.OffStateBackground;
|
||||
this.outerBorderRect.Stroke = this.OffStateBackground;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,154 +1,159 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Telerik.UI.Xaml.Controls.Input.DateTimePickers;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a DateEditor control.
|
||||
/// </summary>
|
||||
public class DateEditor : RadDatePicker, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(DateEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(DateEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HighlightFillBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HighlightFillBrushProperty =
|
||||
DependencyProperty.Register(nameof(HighlightFillBrush), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackground), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedForeground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedForegroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedForeground), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DateEditor"/> class.
|
||||
/// </summary>
|
||||
public DateEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(DateEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="CheckBox"/> when the control is checked.
|
||||
/// </summary>
|
||||
public Brush HighlightFillBrush
|
||||
{
|
||||
get { return (Brush)GetValue(HighlightFillBrushProperty); }
|
||||
set { this.SetValue(HighlightFillBrushProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedBackground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedBackgroundProperty); }
|
||||
set { this.SetValue(SelectedBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Foreground of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedForeground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedForegroundProperty); }
|
||||
set { this.SetValue(SelectedForegroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new Windows.UI.Xaml.PropertyPath("PropertyValue");
|
||||
this.SetBinding(DateEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(DateEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(DateEditor.EmptyContentProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(DateEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Telerik.UI.Xaml.Controls.Input.DateTimePickers;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a DateEditor control.
|
||||
/// </summary>
|
||||
public class DateEditor : RadDatePicker, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(DateEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(DateEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HighlightFillBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HighlightFillBrushProperty =
|
||||
DependencyProperty.Register(nameof(HighlightFillBrush), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackground), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedForeground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedForegroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedForeground), typeof(Brush), typeof(DateEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DateEditor"/> class.
|
||||
/// </summary>
|
||||
public DateEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(DateEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="CheckBox"/> when the control is checked.
|
||||
/// </summary>
|
||||
public Brush HighlightFillBrush
|
||||
{
|
||||
get { return (Brush)GetValue(HighlightFillBrushProperty); }
|
||||
set { this.SetValue(HighlightFillBrushProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedBackground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedBackgroundProperty); }
|
||||
set { this.SetValue(SelectedBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Foreground of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedForeground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedForegroundProperty); }
|
||||
set { this.SetValue(SelectedForegroundProperty, value); }
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new Windows.UI.Xaml.PropertyPath("PropertyValue");
|
||||
this.SetBinding(DateEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(DateEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(DateEditor.EmptyContentProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(DateEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -28,7 +28,7 @@ namespace Telerik.UI.Xaml.Controls.Data.DataForm.View
|
|||
|
||||
internal EditorFactory EditorFactory { get; set; }
|
||||
|
||||
public object CreateContainer(EntityProperty entityProperty)
|
||||
public EntityPropertyControl CreateContainer(EntityProperty entityProperty)
|
||||
{
|
||||
var element = this.EditorFactory.CreateEditor(entityProperty);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using Telerik.Data.Core;
|
||||
using System;
|
||||
using Telerik.Data.Core;
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
@ -69,8 +70,8 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
/// Identifies the <see cref="PositiveMessageViewColumn"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty PositiveMessageViewColumnProperty =
|
||||
DependencyProperty.Register(nameof(PositiveMessageViewColumn), typeof(int), typeof(EntityPropertyControl), new PropertyMetadata(0, PositiveMessageViewColumnChanged));
|
||||
|
||||
DependencyProperty.Register(nameof(PositiveMessageViewColumn), typeof(int), typeof(EntityPropertyControl), new PropertyMetadata(0, PositiveMessageViewColumnChanged));
|
||||
|
||||
internal Grid container;
|
||||
private EntityProperty property;
|
||||
|
||||
|
@ -89,8 +90,8 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
{
|
||||
get { return (int)GetValue(RowCountProperty); }
|
||||
set { this.SetValue(RowCountProperty, value); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets number of columns in the control.
|
||||
/// </summary>
|
||||
|
@ -143,8 +144,8 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
{
|
||||
get { return (int)GetValue(ErrorViewRowProperty); }
|
||||
set { this.SetValue(ErrorViewRowProperty, value); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the column index where the error is visualized.
|
||||
/// </summary>
|
||||
|
@ -218,6 +219,17 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
{
|
||||
this.container.Children.Add(view);
|
||||
}
|
||||
}
|
||||
|
||||
internal object GetCurrentValue()
|
||||
{
|
||||
var editor = this.View as IEditor;
|
||||
if (editor != null)
|
||||
{
|
||||
return editor.GetCurrentValue();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
@ -270,8 +282,8 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
{
|
||||
editor.PositiveMessageView.SetValue(Grid.ColumnProperty, e.NewValue);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static void OnRowCountChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var editor = d as EntityPropertyControl;
|
||||
|
|
|
@ -1,60 +1,65 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an EnumEditor control.
|
||||
/// </summary>
|
||||
public class EnumEditor : ComboBox, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumEditor"/> class.
|
||||
/// </summary>
|
||||
public EnumEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(EnumEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(EnumEditor.SelectedItemProperty, b);
|
||||
Binding b1 = new Binding();
|
||||
b1.Converter = new EnumToItemsSourceConverter();
|
||||
b1.Path = new PropertyPath("PropertyType");
|
||||
this.SetBinding(EnumEditor.ItemsSourceProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(EnumEditor.PlaceholderTextProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(EnumEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("PropertyValue");
|
||||
b4.Converter = new EnumToIndexConverter();
|
||||
this.SetBinding(EnumEditor.SelectedIndexProperty, b4);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates or identifies the element that is used to display the given item.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// The element that is used to display the given item.
|
||||
/// </returns>
|
||||
protected override DependencyObject GetContainerForItemOverride()
|
||||
{
|
||||
return new DataFormComboBoxItem();
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an EnumEditor control.
|
||||
/// </summary>
|
||||
public class EnumEditor : ComboBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumEditor"/> class.
|
||||
/// </summary>
|
||||
public EnumEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(EnumEditor);
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.SelectedItem;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(EnumEditor.SelectedItemProperty, b);
|
||||
Binding b1 = new Binding();
|
||||
b1.Converter = new EnumToItemsSourceConverter();
|
||||
b1.Path = new PropertyPath("PropertyType");
|
||||
this.SetBinding(EnumEditor.ItemsSourceProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(EnumEditor.PlaceholderTextProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(EnumEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("PropertyValue");
|
||||
b4.Converter = new EnumToIndexConverter();
|
||||
this.SetBinding(EnumEditor.SelectedIndexProperty, b4);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates or identifies the element that is used to display the given item.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// The element that is used to display the given item.
|
||||
/// </returns>
|
||||
protected override DependencyObject GetContainerForItemOverride()
|
||||
{
|
||||
return new DataFormComboBoxItem();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
internal interface IEditor
|
||||
{
|
||||
object GetCurrentValue();
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
/// <summary>
|
||||
/// Represents a ListEditor control.
|
||||
/// </summary>
|
||||
public class ListEditor : ComboBox, ITypeEditor
|
||||
public class ListEditor : ComboBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ListEditor"/> class.
|
||||
|
@ -18,6 +18,11 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
this.DefaultStyleKey = typeof(ListEditor);
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.SelectedItem;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
|
@ -50,6 +55,6 @@ namespace Telerik.UI.Xaml.Controls.Data
|
|||
protected override DependencyObject GetContainerForItemOverride()
|
||||
{
|
||||
return new DataFormComboBoxItem();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,147 +1,152 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a NumericEditor control.
|
||||
/// </summary>
|
||||
public class NumericEditor : RadNumericBox, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(NumericEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(NumericEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ButtonsBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ButtonsBackgroundProperty =
|
||||
DependencyProperty.Register("ButtonsBackground", typeof(Brush), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ButtonsPointerOverBackgroundBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ButtonsPointerOverBackgroundBrushProperty =
|
||||
DependencyProperty.Register("ButtonsPointerOverBackgroundBrush", typeof(Brush), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NumericEditor"/> class.
|
||||
/// </summary>
|
||||
public NumericEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(NumericEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the background of the up and down buttons of the <see cref="NumericEditor"/>.
|
||||
/// </summary>
|
||||
public Brush ButtonsBackground
|
||||
{
|
||||
get { return (Brush)GetValue(ButtonsBackgroundProperty); }
|
||||
set { this.SetValue(ButtonsBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the background of the up and down buttons of the <see cref="NumericEditor"/> when the buttons are pressed.
|
||||
/// </summary>
|
||||
public Brush ButtonsPointerOverBackgroundBrush
|
||||
{
|
||||
get { return (Brush)GetValue(ButtonsPointerOverBackgroundBrushProperty); }
|
||||
set { this.SetValue(ButtonsPointerOverBackgroundBrushProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(NumericEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(NumericEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(NumericEditor.WatermarkProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(NumericEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding rangeB = new Binding();
|
||||
rangeB.Path = new PropertyPath("Range.Min");
|
||||
rangeB.FallbackValue = double.MinValue;
|
||||
this.SetBinding(NumericEditor.MinimumProperty, rangeB);
|
||||
|
||||
rangeB = new Binding();
|
||||
rangeB.Path = new PropertyPath("Range.Max");
|
||||
rangeB.FallbackValue = double.MaxValue;
|
||||
this.SetBinding(NumericEditor.MaximumProperty, rangeB);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a NumericEditor control.
|
||||
/// </summary>
|
||||
public class NumericEditor : RadNumericBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(NumericEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(NumericEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ButtonsBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ButtonsBackgroundProperty =
|
||||
DependencyProperty.Register("ButtonsBackground", typeof(Brush), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ButtonsPointerOverBackgroundBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ButtonsPointerOverBackgroundBrushProperty =
|
||||
DependencyProperty.Register("ButtonsPointerOverBackgroundBrush", typeof(Brush), typeof(NumericEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NumericEditor"/> class.
|
||||
/// </summary>
|
||||
public NumericEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(NumericEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the background of the up and down buttons of the <see cref="NumericEditor"/>.
|
||||
/// </summary>
|
||||
public Brush ButtonsBackground
|
||||
{
|
||||
get { return (Brush)GetValue(ButtonsBackgroundProperty); }
|
||||
set { this.SetValue(ButtonsBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the background of the up and down buttons of the <see cref="NumericEditor"/> when the buttons are pressed.
|
||||
/// </summary>
|
||||
public Brush ButtonsPointerOverBackgroundBrush
|
||||
{
|
||||
get { return (Brush)GetValue(ButtonsPointerOverBackgroundBrushProperty); }
|
||||
set { this.SetValue(ButtonsPointerOverBackgroundBrushProperty, value); }
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(NumericEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(NumericEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(NumericEditor.WatermarkProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(NumericEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding rangeB = new Binding();
|
||||
rangeB.Path = new PropertyPath("Range.Min");
|
||||
rangeB.FallbackValue = double.MinValue;
|
||||
this.SetBinding(NumericEditor.MinimumProperty, rangeB);
|
||||
|
||||
rangeB = new Binding();
|
||||
rangeB.Path = new PropertyPath("Range.Max");
|
||||
rangeB.FallbackValue = double.MaxValue;
|
||||
this.SetBinding(NumericEditor.MaximumProperty, rangeB);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,41 +1,46 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a SegmentedCustomEditor control.
|
||||
/// </summary>
|
||||
public class SegmentedCustomEditor : RadSegmentedControl, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SegmentedCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public SegmentedCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(SegmentedCustomEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("ValueOptions");
|
||||
this.SetBinding(SegmentedCustomEditor.ItemsSourceProperty, b1);
|
||||
|
||||
Binding b2 = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b2.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(SegmentedCustomEditor.SelectedItemProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(SegmentedCustomEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a SegmentedCustomEditor control.
|
||||
/// </summary>
|
||||
public class SegmentedCustomEditor : RadSegmentedControl, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SegmentedCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public SegmentedCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(SegmentedCustomEditor);
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.SelectedItem;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("ValueOptions");
|
||||
this.SetBinding(SegmentedCustomEditor.ItemsSourceProperty, b1);
|
||||
|
||||
Binding b2 = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b2.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(SegmentedCustomEditor.SelectedItemProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(SegmentedCustomEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +1,76 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a SliderCustomEditor control.
|
||||
/// </summary>
|
||||
public class SliderCustomEditor : Slider, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ThumbBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ThumbBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(ThumbBackground), typeof(Brush), typeof(SliderCustomEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SliderCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public SliderCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(SliderCustomEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the Horizontal and Vertical <see cref="Thumb"/>s that are used to change the value of the <see cref="Slider"/> control.
|
||||
/// </summary>
|
||||
public Brush ThumbBackground
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(ThumbBackgroundProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ThumbBackgroundProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Range.Min");
|
||||
this.SetBinding(SliderCustomEditor.MinimumProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Range.Max");
|
||||
this.SetBinding(SliderCustomEditor.MaximumProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(SliderCustomEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("Range.Step");
|
||||
this.SetBinding(SliderCustomEditor.StepFrequencyProperty, b4);
|
||||
|
||||
Binding b5 = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b5.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(SliderCustomEditor.ValueProperty, b5);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a SliderCustomEditor control.
|
||||
/// </summary>
|
||||
public class SliderCustomEditor : Slider, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ThumbBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ThumbBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(ThumbBackground), typeof(Brush), typeof(SliderCustomEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SliderCustomEditor"/> class.
|
||||
/// </summary>
|
||||
public SliderCustomEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(SliderCustomEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the Horizontal and Vertical <see cref="Thumb"/>s that are used to change the value of the <see cref="Slider"/> control.
|
||||
/// </summary>
|
||||
public Brush ThumbBackground
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Brush)GetValue(ThumbBackgroundProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SetValue(ThumbBackgroundProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Range.Min");
|
||||
this.SetBinding(SliderCustomEditor.MinimumProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Range.Max");
|
||||
this.SetBinding(SliderCustomEditor.MaximumProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(SliderCustomEditor.IsEnabledProperty, b3);
|
||||
|
||||
Binding b4 = new Binding();
|
||||
b4.Path = new PropertyPath("Range.Step");
|
||||
this.SetBinding(SliderCustomEditor.StepFrequencyProperty, b4);
|
||||
|
||||
Binding b5 = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b5.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(SliderCustomEditor.ValueProperty, b5);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,106 +1,111 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a StringEditor control.
|
||||
/// </summary>
|
||||
public class StringEditor : TextBox, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(StringEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(StringEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(StringEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(StringEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StringEditor"/> class.
|
||||
/// </summary>
|
||||
public StringEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(StringEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(StringEditor.TextProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(StringEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(StringEditor.PlaceholderTextProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(StringEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a StringEditor control.
|
||||
/// </summary>
|
||||
public class StringEditor : TextBox, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(StringEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(StringEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(StringEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(StringEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StringEditor"/> class.
|
||||
/// </summary>
|
||||
public StringEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(StringEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Text;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(StringEditor.TextProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(StringEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(StringEditor.PlaceholderTextProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(StringEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,154 +1,159 @@
|
|||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Telerik.UI.Xaml.Controls.Input.DateTimePickers;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a TimeEditor control.
|
||||
/// </summary>
|
||||
public class TimeEditor : RadTimePicker, ITypeEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(TimeEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(TimeEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HighlightFillBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HighlightFillBrushProperty =
|
||||
DependencyProperty.Register(nameof(HighlightFillBrush), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackground), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedForeground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedForegroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedForeground), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TimeEditor"/> class.
|
||||
/// </summary>
|
||||
public TimeEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(TimeEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="CheckBox"/> when the control is checked.
|
||||
/// </summary>
|
||||
public Brush HighlightFillBrush
|
||||
{
|
||||
get { return (Brush)GetValue(HighlightFillBrushProperty); }
|
||||
set { this.SetValue(HighlightFillBrushProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedBackground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedBackgroundProperty); }
|
||||
set { this.SetValue(SelectedBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Foreground of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedForeground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedForegroundProperty); }
|
||||
set { this.SetValue(SelectedForegroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(TimeEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(TimeEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(TimeEditor.EmptyContentProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(TimeEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
||||
using Telerik.UI.Xaml.Controls.Data.DataForm;
|
||||
using Telerik.UI.Xaml.Controls.Input;
|
||||
using Telerik.UI.Xaml.Controls.Input.DateTimePickers;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace Telerik.UI.Xaml.Controls.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a TimeEditor control.
|
||||
/// </summary>
|
||||
public class TimeEditor : RadTimePicker, ITypeEditor, IEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="IconDisplayMode"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty IconDisplayModeProperty =
|
||||
DependencyProperty.Register(nameof(IconDisplayMode), typeof(EditorIconDisplayMode), typeof(TimeEditor), new PropertyMetadata(EditorIconDisplayMode.None));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="ErrorIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty ErrorIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(ErrorIconStyle), typeof(Style), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HasErrors"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HasErrorsProperty =
|
||||
DependencyProperty.Register(nameof(HasErrors), typeof(bool), typeof(TimeEditor), new PropertyMetadata(false));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="LabelIconStyle"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty LabelIconStyleProperty =
|
||||
DependencyProperty.Register(nameof(LabelIconStyle), typeof(Style), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="HighlightFillBrush"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty HighlightFillBrushProperty =
|
||||
DependencyProperty.Register(nameof(HighlightFillBrush), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedBackground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedBackgroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedBackground), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the <see cref="SelectedForeground"/> dependency property.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty SelectedForegroundProperty =
|
||||
DependencyProperty.Register(nameof(SelectedForeground), typeof(Brush), typeof(TimeEditor), new PropertyMetadata(null));
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TimeEditor"/> class.
|
||||
/// </summary>
|
||||
public TimeEditor()
|
||||
{
|
||||
this.DefaultStyleKey = typeof(TimeEditor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the control has errors.
|
||||
/// </summary>
|
||||
public bool HasErrors
|
||||
{
|
||||
get { return (bool)GetValue(HasErrorsProperty); }
|
||||
set { this.SetValue(HasErrorsProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the label icon of the editor.
|
||||
/// </summary>
|
||||
public Style LabelIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(LabelIconStyleProperty); }
|
||||
set { this.SetValue(LabelIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the style for the error icon of the editor.
|
||||
/// </summary>
|
||||
public Style ErrorIconStyle
|
||||
{
|
||||
get { return (Style)GetValue(ErrorIconStyleProperty); }
|
||||
set { this.SetValue(ErrorIconStyleProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display mode of the icon for the editor.
|
||||
/// </summary>
|
||||
public EditorIconDisplayMode IconDisplayMode
|
||||
{
|
||||
get { return (EditorIconDisplayMode)GetValue(IconDisplayModeProperty); }
|
||||
set { this.SetValue(IconDisplayModeProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="CheckBox"/> when the control is checked.
|
||||
/// </summary>
|
||||
public Brush HighlightFillBrush
|
||||
{
|
||||
get { return (Brush)GetValue(HighlightFillBrushProperty); }
|
||||
set { this.SetValue(HighlightFillBrushProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Background of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedBackground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedBackgroundProperty); }
|
||||
set { this.SetValue(SelectedBackgroundProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Foreground of the rectangle area of the <see cref="DateTimeListItem"/> when the item is selected.
|
||||
/// </summary>
|
||||
public Brush SelectedForeground
|
||||
{
|
||||
get { return (Brush)GetValue(SelectedForegroundProperty); }
|
||||
set { this.SetValue(SelectedForegroundProperty, value); }
|
||||
}
|
||||
|
||||
object IEditor.GetCurrentValue()
|
||||
{
|
||||
return this.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used for generating bindings for the <see cref="ITypeEditor"/> properties.
|
||||
/// </summary>
|
||||
public void BindEditor()
|
||||
{
|
||||
Binding b = new Binding() { Mode = BindingMode.TwoWay };
|
||||
b.Path = new PropertyPath("PropertyValue");
|
||||
this.SetBinding(TimeEditor.ValueProperty, b);
|
||||
|
||||
Binding b1 = new Binding();
|
||||
b1.Path = new PropertyPath("Errors.Count");
|
||||
b1.Converter = new EditorIconVisibilityConverter();
|
||||
b1.ConverterParameter = "HasErrors";
|
||||
this.SetBinding(TimeEditor.HasErrorsProperty, b1);
|
||||
|
||||
Binding b2 = new Binding();
|
||||
b2.Path = new PropertyPath("Watermark");
|
||||
this.SetBinding(TimeEditor.EmptyContentProperty, b2);
|
||||
|
||||
Binding b3 = new Binding();
|
||||
b3.Converter = new IsEnabledEditorConvetrer();
|
||||
b3.Path = new PropertyPath(string.Empty);
|
||||
this.SetBinding(TimeEditor.IsEnabledProperty, b3);
|
||||
}
|
||||
}
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче