
| <Window x:Class="frmMain" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| Title="dareSOFT OST2PST Conversion Utility" Height="300" Width="402" MinWidth="402" MinHeight="300" xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"> |
| <Grid> |
| <my:RadCarousel Name="rcMenu" AutoGenerateDataPresenters="True" HorizontalAlignment="Stretch" Cursor="Arrow"> |
| <my:RadCarousel.BitmapEffectInput> |
| <BitmapEffectInput /> |
| </my:RadCarousel.BitmapEffectInput> |
| <my:RadCarousel.BitmapEffect> |
| <BlurBitmapEffect /> |
| </my:RadCarousel.BitmapEffect> |
| <Style TargetType="{my:Type telerik:CarouselDataRecordPresenter}"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <ControlTemplate TargetType="{my:Type telerik:CarouselDataRecordPresenter}"> |
| <Grid IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="30" /> |
| <RowDefinition Height="100" /> |
| <RowDefinition Height="Auto" /> |
| </Grid.RowDefinitions> |
| <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" > |
| <Label Content="{Binding Path=Fields[Text].Value}" FontSize="12" Foreground="#ff8FB3FF"/> |
| </StackPanel> |
| <Rectangle Grid.Row="1" RadiusX="3" RadiusY="3" Width="110" Height="80"> |
| <Rectangle.Fill> |
| <ImageBrush x:Name="brush" ImageSource="{Binding Path=Fields[Picture].Value}"/> |
| </Rectangle.Fill> |
| </Rectangle> |
| <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center"> |
| <Label Content="{Binding Path=Fields[Text].Value}" FontSize="12" Foreground="#ff8FB3FF"/> |
| </StackPanel> |
| </Grid> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </my:RadCarousel> |
| </Grid> |
| </Window> |


Hi,
I have downloaded a demo/trial of WPF Controls (which look very promising btw). Unfortunately, an issue with my setup of Visual Studio prevents me from using the controls or even making a WPF app, without Telerik Controls.
If I use Expression Blend 2, can I use these controls in Blend? Eg can I drag them from a toolbox in Blend to the canvas?
Thanks
| <LocalFramework:UDFValueConverter x:Key="UDFValueConverter" /> |
| <Style x:Key="ComboStyleUDFMultipleSelect" TargetType="{x:Type ComboBox}"> |
| <Setter Property="ItemTemplate"> |
| <Setter.Value> |
| <DataTemplate> |
| <StackPanel Orientation="Horizontal"> |
| <CheckBox x:Name="chkSelected" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/> |
| <TextBlock Text="{Binding Path=Value}" TextWrapping="Wrap" x:Name="txtListValue" Margin="2,0,0,0"/> |
| </StackPanel> |
| </DataTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| <ControlTemplate x:Key="NormalTemplate" TargetType="telerikGridView:GridViewCell"> |
| <Border BorderThickness="{TemplateBinding BorderThickness}" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| Background="LightGreen" > |
| <TextBlock Text="{Binding Converter={StaticResource UDFValueConverter}}" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" /> |
| </Border> |
| </ControlTemplate> |
| <ControlTemplate x:Key="EditTemplate" TargetType="telerikGridView:GridViewCell"> |
| <Border BorderThickness="{TemplateBinding BorderThickness}" |
| BorderBrush="{TemplateBinding BorderBrush}" |
| Background="{TemplateBinding Background}"> |
| <DataTemplate> |
| <StackPanel x:Name="sp_Value" Orientation="Vertical" > |
| <toolkit:DatePicker x:Name="dpValue" Visibility="Collapsed" SelectedDateFormat="Short" /> |
| <TextBox x:Name="txtValue" Visibility="Collapsed" /> |
| <ComboBox x:Name="cboValue" Visibility="Collapsed" DisplayMemberPath="Value" SelectedItem="{Binding CityInfo, Mode=TwoWay}" ItemsSource="{Binding UDFListValues, Source={StaticResource CMXLookUPsDS}}"></ComboBox> |
| <CheckBox x:Name="chkValue" Visibility="Collapsed"></CheckBox> |
| </StackPanel> |
| <DataTemplate.Triggers> |
| <DataTrigger Binding="{Binding Path=UDF.UDFDataType.Name}" Value="System.String"> |
| <Setter TargetName="txtValue" Property="Visibility" Value="Visible"></Setter> |
| </DataTrigger> |
| <MultiDataTrigger> |
| <MultiDataTrigger.Conditions> |
| <Condition Binding="{Binding Path=UDF.UDFDataType.Name}" Value="System.Collections.ArrayList" /> |
| <Condition Binding="{Binding Path=UDF.MultpleSelect}" Value="true" /> |
| </MultiDataTrigger.Conditions> |
| <Setter TargetName="cboValue" Property="Visibility" Value="Visible" /> |
| <Setter TargetName="cboValue" Property="Style" Value="{StaticResource ComboStyleUDFMultipleSelect}" /> |
| </MultiDataTrigger> |
| <MultiDataTrigger> |
| <MultiDataTrigger.Conditions> |
| <Condition Binding="{Binding Path=UDF.UDFDataType.Name}" Value="System.Collections.ArrayList" /> |
| <Condition Binding="{Binding Path=UDF.MultpleSelect}" Value="false" /> |
| </MultiDataTrigger.Conditions> |
| <Setter TargetName="cboValue" Property="Visibility" Value="Visible"></Setter> |
| </MultiDataTrigger> |
| <DataTrigger Binding="{Binding Path=UDF.UDFDataType.Name}" Value="System.Boolean"> |
| <Setter TargetName="chkValue" Property="Visibility" Value="Visible"></Setter> |
| </DataTrigger> |
| <DataTrigger Binding="{Binding Path=UDF.UDFDataType.Name}" Value="System.DateTime"> |
| <Setter TargetName="dpValue" Property="Visibility" Value="Visible"></Setter> |
| </DataTrigger> |
| </DataTemplate.Triggers> |
| </DataTemplate> |
| </Border> |
| </ControlTemplate>
<Style x:Key="UDFCellViewStyle" TargetType="telerikGridView:GridViewCell">
<Style.Triggers>
<Trigger Value="False" Property="IsInEditMode">
<Setter Property="telerik:GridViewCell.Template" Value="{StaticResource NormalTemplate}"/>
</Trigger>
<Trigger Value="True" Property="IsInEditMode">
<Setter Property="telerik:GridViewCell.Template" Value="{StaticResource EditTemplate}"/>
</Trigger>
</Style.Triggers>
</Style>
|