|
1 | 1 | <!--
|
| 2 | + Copyright (c) Microsoft. All rights reserved. |
| 3 | + This code is licensed under the MIT License (MIT). |
| 4 | + THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 5 | + INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 6 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 7 | + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| 8 | + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 9 | + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH |
| 10 | + THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. |
| 11 | + |
2 | 12 | This Source Code Form is subject to the terms of the MIT License.
|
3 | 13 | If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
4 | 14 | Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
5 | 15 | All Rights Reserved.
|
6 |
| - |
7 |
| - Based on Microsoft XAML for Win UI |
8 |
| - Copyright (c) Microsoft Corporation. All Rights Reserved. |
9 | 16 | -->
|
10 | 17 |
|
11 | 18 | <ResourceDictionary
|
12 | 19 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
13 | 20 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
14 |
| - xmlns:controls="clr-namespace:System.Windows.Controls;assembly=PresentationFramework" |
15 | 21 | xmlns:system="clr-namespace:System;assembly=System.Runtime">
|
16 | 22 |
|
17 | 23 | <!--
|
|
567 | 573 |
|
568 | 574 | <!-- <ContentPresenter Content="{TemplateBinding Content}" /> -->
|
569 | 575 |
|
570 |
| - <controls:SymbolIcon |
| 576 | + <SymbolIcon |
571 | 577 | x:Name="SortIcon"
|
572 | 578 | Grid.Column="1"
|
573 | 579 | HorizontalAlignment="Center"
|
|
663 | 669 | BorderThickness="{TemplateBinding BorderThickness}"
|
664 | 670 | CornerRadius="{TemplateBinding Border.CornerRadius}"
|
665 | 671 | SnapsToDevicePixels="True">
|
666 |
| - <ScrollViewer x:Name="DG_ScrollViewer" Focusable="False"> |
667 |
| - <ScrollViewer.Template> |
| 672 | + <PassiveScrollViewer x:Name="DG_ScrollViewer" Focusable="False"> |
| 673 | + <PassiveScrollViewer.Template> |
668 | 674 | <ControlTemplate TargetType="{x:Type ScrollViewer}">
|
669 | 675 | <Grid>
|
670 | 676 | <Grid.ColumnDefinitions>
|
|
726 | 732 | </Grid>
|
727 | 733 | </Grid>
|
728 | 734 | </ControlTemplate>
|
729 |
| - </ScrollViewer.Template> |
| 735 | + </PassiveScrollViewer.Template> |
730 | 736 | <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
731 |
| - </ScrollViewer> |
| 737 | + </PassiveScrollViewer> |
732 | 738 | <VisualStateManager.VisualStateGroups>
|
733 | 739 | <VisualStateGroup x:Name="CommonStates">
|
734 | 740 | <VisualState x:Name="Disabled">
|
|
752 | 758 | </Style.Triggers>
|
753 | 759 | </Style>
|
754 | 760 |
|
755 |
| - <controls:FallbackBrushConverter x:Key="FallbackBrushConverter" /> |
| 761 | + <FallbackBrushConverter x:Key="FallbackBrushConverter" /> |
756 | 762 |
|
757 | 763 | <Color x:Key="FallbackColor">#FFFF0000</Color>
|
758 | 764 |
|
|
809 | 815 | BorderThickness="{TemplateBinding BorderThickness}"
|
810 | 816 | CornerRadius="{TemplateBinding Border.CornerRadius}">
|
811 | 817 | <Grid>
|
812 |
| - <controls:SymbolIcon |
| 818 | + <SymbolIcon |
813 | 819 | x:Name="ControlIcon"
|
814 | 820 | Margin="0"
|
815 | 821 | HorizontalAlignment="Center"
|
|
818 | 824 | FontWeight="Bold"
|
819 | 825 | Symbol="Checkmark48"
|
820 | 826 | Visibility="Collapsed">
|
821 |
| - <controls:SymbolIcon.Foreground> |
| 827 | + <SymbolIcon.Foreground> |
822 | 828 | <SolidColorBrush Color="{DynamicResource TextOnAccentFillColorPrimary}" />
|
823 |
| - </controls:SymbolIcon.Foreground> |
824 |
| - </controls:SymbolIcon> |
| 829 | + </SymbolIcon.Foreground> |
| 830 | + </SymbolIcon> |
825 | 831 | </Grid>
|
826 | 832 | </Border>
|
827 | 833 | </BulletDecorator.Bullet>
|
|
907 | 913 | <Style
|
908 | 914 | x:Key="DefaultUiDataGridStyle"
|
909 | 915 | BasedOn="{StaticResource DefaultDataGridStyle}"
|
910 |
| - TargetType="{x:Type controls:DataGrid}"> |
| 916 | + TargetType="{x:Type DataGrid}"> |
911 | 917 | <Setter Property="CheckBoxColumnEditingElementStyle" Value="{StaticResource DataGridCheckBoxEditingElementDefaultStyle}" />
|
912 | 918 | <Setter Property="CheckBoxColumnElementStyle" Value="{StaticResource DataGridCheckBoxElementDefaultStyle}" />
|
913 | 919 | </Style>
|
914 | 920 |
|
915 | 921 | <Style BasedOn="{StaticResource DefaultDataGridColumnHeadersPresenterStyle}" TargetType="{x:Type DataGridColumnHeadersPresenter}" />
|
916 | 922 | <!--<Style BasedOn="{StaticResource DefaultDataGridStyle}" TargetType="{x:Type DataGrid}" />-->
|
917 |
| - <Style BasedOn="{StaticResource DefaultUiDataGridStyle}" TargetType="{x:Type controls:DataGrid}" /> |
| 923 | + <Style BasedOn="{StaticResource DefaultUiDataGridStyle}" TargetType="{x:Type DataGrid}" /> |
918 | 924 |
|
919 | 925 | </ResourceDictionary>
|
0 commit comments