File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ private void UpdateTemplate()
115115
116116 public CompareSlider ( )
117117 {
118- if ( Application . Current . Resources [ "HorizontalTemplate " ] is ControlTemplate horizontalTemplate )
118+ if ( Application . Current . Resources [ "ComapreSliderHorizontalTemplate " ] is ControlTemplate horizontalTemplate )
119119 HorizontalTemplate = horizontalTemplate ;
120120
121- if ( Application . Current . Resources [ "VerticalTemplate " ] is ControlTemplate verticalTemplate )
121+ if ( Application . Current . Resources [ "CompareSliderVerticalTemplate " ] is ControlTemplate verticalTemplate )
122122 VerticalTemplate = verticalTemplate ;
123123 }
124124
Original file line number Diff line number Diff line change 44 xmlns : local =" using:DevWinUI" >
55
66 <Style TargetType =" local:CompareSlider" >
7- <Setter Property =" Template" Value =" {StaticResource HorizontalTemplate }" />
7+ <Setter Property =" Template" Value =" {StaticResource ComapreSliderHorizontalTemplate }" />
88 <Setter Property =" BorderThickness" Value =" 1" />
99 <Setter Property =" BorderBrush" Value =" {ThemeResource ControlElevationBorderBrush}" />
1010 <Setter Property =" CornerRadius" Value =" {ThemeResource ControlCornerRadius}" />
115115 </Setter >
116116 </Style >
117117
118- <ControlTemplate x : Key =" HorizontalTemplate "
118+ <ControlTemplate x : Key =" ComapreSliderHorizontalTemplate "
119119 TargetType =" local:CompareSlider" >
120120 <Grid Padding =" 16,0,16,0" >
121121 <Grid HorizontalAlignment =" Center"
160160 </Grid >
161161 </ControlTemplate >
162162
163- <ControlTemplate x : Key =" VerticalTemplate "
163+ <ControlTemplate x : Key =" CompareSliderVerticalTemplate "
164164 TargetType =" local:CompareSlider" >
165165 <Grid Padding =" 0,16,0,16"
166166 HorizontalAlignment =" Center"
You can’t perform that action at this time.
0 commit comments