Telerik Forums
UI for WPF Forum
5 answers
715 views
Hello,

I have vector Icon like that :
<ControlTemplate x:Key="AboutImage">
  <Viewbox Stretch="Uniform">
    <Canvas Width="512" Height="512">
      <Rectangle Canvas.Left="0" Canvas.Top="0" Width="512" Height="512" Fill="{TemplateBinding Background}"/>
      <Path Data="..."  Fill="{TemplateBinding Foreground}"/>
    </Canvas>
  </Viewbox>
</ControlTemplate>

How can I use this with RadRibbonButton ?

Thank you

Ilya
Top achievements
Rank 1
 answered on 28 Aug 2013
0 answers
114 views
Hi Telerik Support,
     After viewing demos, I chose variant with Virtualization, because I need to add some properties dynamically (for example, GroupName). So I have Dictionary<string, object> with PropertyName and Value in ViewModel, which is  bound to RadPropertyGrid.Item. Please, advise how to do this using MVVM patern?

Regards,
Anatoliy

Anatoliy
Top achievements
Rank 2
 asked on 28 Aug 2013
1 answer
230 views
when i am double click on the my rad window top of header its when to resize model i need to stop this  i need Maximized window
here is my code

                    xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
                    navigation:RadWindowInteropHelper.AllowTransparency="False"
                   
                   
                   telerik:Theming.Theme="Vista" Header=""              
                   MinHeight="600" MinWidth="800"   Loaded="Main_Loaded" ResizeMode="NoResize"
                   CanClose="False" CanMove="False"  BorderThickness="1" WindowStartupLocation="CenterScreen"
                   IsRestricted="False" RestoreMinimizedLocation="False"
                   Style="{DynamicResource AppFontSize}" WindowState="Maximized" SizeToContent="False"
Kalin
Telerik team
 answered on 28 Aug 2013
3 answers
95 views
Hi,

I am creating a Silverlight project with the intent to be linked from WPF project as well. Here is the issue I am facing described in StackOverflow question 

<telerik:Tile TileType="Single" Width="Auto" Background="#FF559B55" Name="tile1" 
                                      FontWeight="Bold" FontFamily="Verdana">


                                <Button Content = {Binding Path=MyRVal} Click="btClick" Foreground="Black">
                                   </Button>         

</telerik:Tile>
This works fine in Silverlight project, but the button does not show in WPF. I noticed this only happens when there is Binding instead of static, does WPF not handle this?
I know this might not be Telerik issue, but I wanted to ask and maybe get suggestions of how to have a Button or other control (with Binding) within a Tile working both in Silverlight and WPF.

Thanks
Maya
Telerik team
 answered on 28 Aug 2013
3 answers
209 views
Hi,

My RadGridView doesn't refresh completely after scrolling through the columns, some of the cells still shows old cell values after scrolling. This happens if I scroll fast from left to right and right to left. My grid is UI virtualized. What's causing this issue?

Thanks,
Karthik
Vera
Telerik team
 answered on 28 Aug 2013
1 answer
188 views
Hi, 

i'm using the RadMaskedTextInput with NotifyOnValidationError and it works great. Currently it displays the message beside the textbox, but i need to show the error message below the textbox, how can i achieve this?
Pavel R. Pavlov
Telerik team
 answered on 27 Aug 2013
1 answer
110 views
Hi,

I am developing a application for a customer using telerik comoponents - so we tought we can use telerik GridView at the beginning it was ok but after i applied the windows8 theme the performnace is dead.

Here are a few hints which kills the performance:
* When the grid gets the FrameworkElement.Unloaded event it consumes too much time accessing hashCode
Please check the function "private void OnUnloaded(object sender, RoutedEventArgs e)" inside GridViewDataControl.cs line 202
The problem is that we have a nested loop where we iterate through a IDictionary<object, IEnumerable<IDisposable>> - please add the possibility to disable this behaviour (I see its only enabled when WPF is used) - i am good if the GC takes care of.

* Inside ClearIctdSubscriptions (GridViewDataControl) you call containskey on a map and than access it with a indexer this means we search twice - why do you guys do not use TryGetValue there?
And again stop calling dispose there on each element which consumes to much time if we want to switch fast between views

How to reproduce it
1) Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows8Theme();
2) Create a custom object and populate the grid with 10 items (yes thats enough to see the lag)


Nedyalko Nikolov
Telerik team
 answered on 27 Aug 2013
3 answers
358 views
Hi there,

I'm trying to assign resources to appointments in the code behind. When I assign them, the appointment displays the correct resource when I edit the appointment, however the appointment itself is displayed in the blank resource column.

Here is the XAML:
<telerik:RadScheduleView x:Name="ScheduleView" SnapAppointments="True">
    <telerik:RadScheduleView.ResourceTypesSource>
        <telerik:ResourceTypeCollection>
            <telerik:ResourceType DisplayName="Room" Name="Room">
                <telerik:Resource DisplayName="Room 1" ResourceName="Room 1" ResourceType="Room"/>
                <telerik:Resource DisplayName="Room 2" ResourceName="Room 2" ResourceType="Room"/>
            </telerik:ResourceType>
        </telerik:ResourceTypeCollection>               
    </telerik:RadScheduleView.ResourceTypesSource>
    <telerik:RadScheduleView.GroupDescriptionsSource>
        <telerik:GroupDescriptionCollection>
            <telerik:ResourceGroupDescription ResourceType="Room" ShowNullGroup="True"/>
        </telerik:GroupDescriptionCollection>
    </telerik:RadScheduleView.GroupDescriptionsSource>
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:DayViewDefinition DayStartTime="7:00" DayEndTime="19:00" MajorTickLength="1h" MinorTickLength="10min"/>
        <telerik:WeekViewDefinition DayStartTime="7:00" DayEndTime="19:00"/>
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

And here is the code behind:
private ObservableCollection<Appointment> appointments;
void ExamRoomScheduler_Loaded(object sender, RoutedEventArgs e)
{           
    appointments = new ObservableCollection<Appointment>();
    ScheduleView.AppointmentsSource = appointments;
 
    ExamRoomAppointment temp;
 
    temp = new ExamRoomAppointment("Test", DateTime.Now, DateTime.Now.AddMinutes(20), "Room 1");
    appointments.Add(temp);           
    temp.Resources.Add(new Resource() { ResourceType = "Room", ResourceName = "Room 1", DisplayName = "Room 1" });
}

ExamRoomAppointment inherits from Appointment.

I must be doing something wrong here but I can't seem to figure it out!

Thanks,
Anthony
Kalin
Telerik team
 answered on 27 Aug 2013
1 answer
98 views
I followed the instruction here: http://www.telerik.com/help/wpf/445c6c91-a5d2-4b2f-aa20-d238f1c4ad03.html to edit the style of my tabs.

I am editing a copy the RadTabControl template.  When I create a copy of the template using 'Edit a copy' The new copy has all of the settings in it but the tab doesn't respond to the mouse. Even if I 'Edit a Copy', and make no changes, just save and build the project, the tab stops responding to Mouse over and Normal state. They stay stuck in the Normal state even though the tabs do work and can be selected in the application.

As far as I understand, if I make a copy and make no changes, then it should behave the same as the other tabs using the default template. This is not the case

I am using Q3 2013 and Blend 5.

Thanks,

Bruce
Pavel R. Pavlov
Telerik team
 answered on 27 Aug 2013
1 answer
191 views
When a document is exported from RichTextBox into XAML it cannot be displayed in FlowDocumentReader control.

I looked at the exported XAML and the root element is <t:RadDocument>. This cannot be displayed in FlowDocumentReader control. I tried enclosing this within <FlowDocument> element but that did not help...

Anyway, how do I display XAML document exported by RichTextBox in FlowDocumentReader control? Or can this XAML genarated by RichTextBox only be displayed by the Telerik RadRichTextBox control?
Deyan
Telerik team
 answered on 27 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?