Hi Team,
I moved from WPF Toolkit to Telerik
But here I am facing some issues with few tools
IntegerUpDown, DecimalUpDown, DoubleUpDown, WatermarkComboBox
I am pasting my previous properties which I am looking here in Telerik
Kindly help me in this.
a) IntegerUpDown
<xctk:IntegerUpDown
MinWidth="90"
MaxWidth="{Binding ElementName=sv1,
Path=ActualWidth}"
Margin="1"
HorizontalAlignment="Stretch"
classes:DynamicContainerStyle.BaseStyle="{DynamicResource {x:Type xctk:IntegerUpDown}}"
AutomationProperties.AutomationId="ManfShelfLife"
FormatString="N0"
Increment="1"
Maximum="3650"
Minimum="0"
Visibility="{Binding RelativeSource={RelativeSource AncestorType=UserControl},
Path=DataContext.IsPerishable,
Converter={StaticResource BooleanToVisibilityConverter}}"
Value="{Binding Path=ShelfLife,
Mode=TwoWay,
ValidatesOnDataErrors=True,
UpdateSourceTrigger=PropertyChanged}">
b) DecimalUpDown
<xctk:DecimalUpDown
MaxWidth="100"
DefaultValue="0"
DisplayDefaultValueOnEmptyText="True"
Increment="0.1"
Maximum="{Binding DecimalMaxValue}"
Minimum="{Binding DecimalMinValue}"
Text="{Binding Qty,
ValidatesOnDataErrors=True,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" />
c) DoubleUpDown
<xctk:DoubleUpDown
Width="{Binding RelativeSource={RelativeSource AncestorType=DataGridTemplateColumn},
Path=MaxWidth}"
HorizontalAlignment="Stretch"
Increment="0.1"
Maximum="200000"
Minimum="0"
IsEnabled="{Binding DataContext.IsMaterialInactive,
RelativeSource={RelativeSource AncestorType=UserControl},
Converter={StaticResource InverseBooleanConverter}}"
Text="{Binding RelativeSource={RelativeSource AncestorType=DataGridRow},
Path=DataContext.MinValue,
UpdateSourceTrigger=PropertyChanged,
ValidatesOnDataErrors=True,
Mode=TwoWay}" />
d) WatermarkComboBox
<xctk:WatermarkComboBox
Margin="0,15,0,0"
HorizontalAlignment="Stretch"
BorderBrush="Black"
ItemsSource="{Binding SelectedTemplate.TemplateWorkflows}"
SelectedItem="{Binding SelectedWorkflow}"
Style="{DynamicResource WatermarkComboBoxStyle}">
<xctk:WatermarkComboBox.Watermark>
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="12"
Text="- Please Select -"
TextAlignment="Center" />
</xctk:WatermarkComboBox.Watermark>
<xctk:WatermarkComboBox.ItemTemplate>
<DataTemplate>
<ListBoxItem Content="{Binding Name}" ToolTip="{Binding Description}" />
</DataTemplate>
</xctk:WatermarkComboBox.ItemTemplate>
</xctk:WatermarkComboBox>
How to give Style in telerik, ResourceKeys are not there I am getting errors
Providing code which I want to get in Telerik
<Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type themes:ResourceKeys}, ResourceId=SpinnerButtonStyleKey}" TargetType="RepeatButton">
<Setter Property="Background" Value="{DynamicResource {x:Static themes:ResourceKeys.ButtonNormalBackgroundKey}}" />
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static themes:ResourceKeys.ButtonNormalOuterBorderKey}}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="2,2" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Grid>
<xctk:ButtonChrome
x:Name="Chrome"
Background="Transparent"
BorderBrush="{StaticResource Black25Brush}"
CornerRadius="{DynamicResource {x:Static themes:ResourceKeys.SpinButtonCornerRadiusKey}}"
RenderEnabled="{TemplateBinding IsEnabled}"
RenderMouseOver="{TemplateBinding IsMouseOver}"
RenderNormal="True"
RenderPressed="{TemplateBinding IsPressed}"
SnapsToDevicePixels="true" />
<ContentPresenter
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Regards,
Yogendra