Telerik Forums
UI for WPF Forum
1 answer
80 views

As we have seen Telerik Image Editor,It is working same as we required,but we want two additional functionalites in it.

 

1:- We want to record the changes that we have performed on a particular image so that we can save these steps to regenerate image .

 

2:- We want Image layering functionlity,So that we can add a layer(Background Image and Frame on our original Image) and also want to change position of my original Image.

 

Please have a look of attached  image

Ivailo Karamanolev
Telerik team
 answered on 12 Apr 2012
3 answers
115 views
Hi,

I am using Visual Studio 2008 SP1 for development and i want to check sample applications of WPF on my machine.
I downloaded "RadControlsForWpfSetup_2012_1_0215.exe" and installed it. But i am not able to build the application samples available with this exe.
Could you please let me know from where i can get the setup which will build on Visual Studio 2008 SP1?
Yordanka
Telerik team
 answered on 12 Apr 2012
1 answer
74 views
KeyTips and Keyboard Access via KeyTips appear to work fine in the RibbonView demos, but none of them work in the RadRichTextBox demos that use RadRichTextBoxRibbonUI.

I can't get it to work in any of my attempts either.

Is there any way to get this to work? 
Kammen
Telerik team
 answered on 12 Apr 2012
1 answer
774 views
Hi,

in my form, I created a FocusVisualStyle for my control. For my TextBox it work but for Telerik RadDatePicker it doesn't work :(
I want to know how I can change teh FocusVisualStyle of Telerik controls to have the same than the standard controls.

PS: You have to keep in mind that all my forms reside in a DLL which is called by a WinFrom application ;)

Here is part of my xaml:

    <telerik:RadWindow.Resources>
        <ResourceDictionary>
            <ControlTemplate x:Key="FocusTemplate" >
                <Rectangle Margin="-3" Stroke="Orange" StrokeThickness="2" RadiusX="2" RadiusY="2" StrokeDashArray="2,1">
                    <Rectangle.Triggers>
                        <EventTrigger RoutedEvent="Rectangle.Loaded">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation To="3" Duration="0:0:1" RepeatBehavior="Forever" Storyboard.TargetProperty="StrokeDashOffset" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </Rectangle.Triggers>
                </Rectangle>
            </ControlTemplate>


            <Style x:Key="FocusStyle" TargetType="{x:Type Control}">
                <Setter Property="Template" Value="{StaticResource FocusTemplate}"/>
            </Style>

            <Style TargetType="TextBox">
                <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
            </Style>

            <Style TargetType="telerik:RadDatePicker">
                <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
            </Style>

            <helper:BoolToVisibility x:Key="boolToVisibility" />
            <helper:BoolToVisibilityInverter x:Key="boolToVisibilityInverter" />
            <helper:BoolInverter x:Key="boolInverter" />
           
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="BillingDetails-Fr-Res.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-CustomStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
           
        </ResourceDictionary>
    </telerik:RadWindow.Resources>

<telerik:RadDatePicker Grid.Column="3" Grid.Row="0" Margin="5 5 0 0" HorizontalAlignment="Left" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource boolInverter}}" SelectedValue="{Binding ElementName=Me, Path=Visit.VisitDate, Mode=TwoWay}" />                       
Dani
Telerik team
 answered on 12 Apr 2012
2 answers
181 views
Hello,

I'm having trouble understanding the DeleteBehavior, BackspaceBehavior, and DeleteSelectedBehavior properties in annotations.  They do not seem to be working how I would expect them to.

I would like to have a custom annotation that works almost exactly like a read-only annotation range, but I would like to be able to select and delete the entire annotation range, including the text, from the UI.

I assumed that I would be able to customize this behavior by setting the DeleteBehavior, BackspaceBehavior, and DeleteSelectedBehavior, but it doesn't seem to work regardless of what settings I specify in those overridden properties.

Is it even possible to do what I am asking?

Thanks,

Frank
Frank
Top achievements
Rank 1
 answered on 12 Apr 2012
4 answers
121 views
I have implemented the use of the 2D chart (bar, line, splinearea, splineseries) in software and have no problems setting the graphing color fill for each series in the charts data set.  I was hoping that the 3D chart used the same methodology but this does not appear to be the case.  I need to be able to set each series to a user chosen color.  It should not be this hard but I can't find any information on how to set up each series.  It appears that the chart just picks each color automatically without giving the ability to have it manually set.  Please help! 

The way that I set the color with the 2D charts is as follows:
 lineSeries.Definition.Appearance.Stroke = new SolidColorBrush(Colors.Blue);
 lineSeries.Definition.Appearance.Fill = new SolidColorBrush(Colors.Blue);

If I change the lineSeries type to Line3DSeriesDefinition then the default aqua color that comes up with the examples is used even when the color Blue is set as defined above.

Thanks for any help that can be provided!

James
James
Top achievements
Rank 1
 answered on 12 Apr 2012
8 answers
203 views
I need to know how to set the background color of the charting area of a 3D chart.  For the 2D chart I create a MarkedZone object and apply a solidcolorbrush as follows:
 MarkedZone bgZone = new MarkedZone();
 bgZone.Background = new SolidColorBrush(Colors.Aqua);
 this.radChart1.DefaultView.ChartArea.Annotations.Clear();
 this.radChart1.DefaultView.ChartArea.Annotations.Add(bgZone);

This does not work for the 3D chart!  How would I make this work for the 3D chart or is it even possible.

Thanks,

James


James
Top achievements
Rank 1
 answered on 12 Apr 2012
5 answers
300 views
Hi,

I have made a DayTemplateSelector - allowing me to style the calendar (highlighting different dates with colors..).
This works fine with all the different themes except the "Expression_Dark" theme (the dates are not highlighted with my color)
See attached images...(with and without "Expression_Dark" theme)
1. Any ideas why this theme is different from the others?

2. How can I decrease the height/width on the areas that show day/weeknumber?
They take up way too much space...(I have marked the areas with green color on image: RadCalendar - DayTemplateSelector 2.png)

<Controls:RadCalendar x:Name="TommedatoKalender" 
                                          Rows="3" Columns="4"
                                          SelectionMode="Extended"                                                  
                                          ViewsHeaderVisibility="Visible"
                                          DisplayDate="{Binding DisplayDate}">                                        
  
                                        <Controls:RadCalendar.DayTemplateSelector>
                                            <selector:KalenderDagSelector>
                                                <selector:KalenderDagSelector.DefaultTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Text="{Binding Text}" Height="18" Width="18" TextAlignment="Center"/>
                                                    </DataTemplate>
                                                    </selector:KalenderDagSelector.DefaultTemplate>
  
                                                   <selector:KalenderDagSelector.TommeDagTemplate>
                                                    <DataTemplate>
                                                        <Border BorderThickness="1" 
                                                        BorderBrush="{DynamicResource HighlightDayColor}" 
                                                        CornerRadius="12" 
                                                         HorizontalAlignment="Center" VerticalAlignment="Center"      Background="{DynamicResource HighlightDayColor}">
                                                            <Grid>
                                                                <!-- Rounded mask (stretches to fill Grid) -->
                                                                <Border Name="mask" Background="{DynamicResource HighlightDayColor}" CornerRadius="7"/>
                                                                <!-- Main content container -->
                                                                <StackPanel>
                                                                    <!-- Use a VisualBrush of 'mask' as the opacity mask -->
                                                                    <StackPanel.OpacityMask>
                                                                        <VisualBrush Visual="{Binding ElementName=mask}"/>
                                                                    </StackPanel.OpacityMask>
                                                                    <!-- Content -->
                                                                    <TextBlock Text="{Binding Text}" Background="{DynamicResource HighlightDayColor}" Height="18" Width="18" TextAlignment="Center" />
                                                                </StackPanel>
                                                            </Grid>
                                                        </Border>
                                                    </DataTemplate>
                                                </selector:KalenderDagSelector.TommeDagTemplate>
  
                                            </selector:KalenderDagSelector>
                                        </Controls:RadCalendar.DayTemplateSelector>
  
                                    </Controls:RadCalendar>
Terje Johansen
Top achievements
Rank 1
 answered on 12 Apr 2012
7 answers
236 views
In a current project, we've used the TreeListView to display hierachical data (sreenshot attached).

What we want to do is to expand all lines of a specific level.
For example (see screenshot) :
 > when the user clicks on button "1", all "level 1" lines should expand
 > when the user clicks on button "2", all "level 1 and 2" lines should expand
etc.

We've succeeded doing this scenario with a Style Selector (already used for background coloration) :

<styleSelectors:ConditionalStyleSelector.Level1Style>
     <Style TargetType="telerik:TreeListViewRow">
          <Setter Property="Background" Value="#6699FF" />
          <Setter Property="IsExpanded" Value="{Binding Path=IsExpandedLevel1, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Mode=TwoWay}" />
     </Style>
</styleSelectors:ConditionalStyleSelector.Level1Style>

However, when the user collapses one "level 2" line (for example) all "level 2" lines are collasped.
So we've changed the binding mode to "OneWay" :

<Setter Property="IsExpanded" Value="{Binding Path=IsExpandedLevel1, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Mode=OneWay}" /> 

However, with mode "OneWay" it doesn't work ...

Any idea ? Or sample code to do this ?
Vera
Telerik team
 answered on 12 Apr 2012
3 answers
357 views
Hi,

I hit the captioned issue that Drop Down of RadComboBox is Going to the Top Left Corner of the Screen.
It's does not happen all the time, but sometimes it does happen.

Is there any way to solve this?

Thanks
Ric Yik
Konstantina
Telerik team
 answered on 12 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?