Telerik Forums
UI for WPF Forum
6 answers
249 views
I started by copying the sample code available for radtimeline themes through the WPF Controls Example app. However, whenever I display the radtimeline using expression_dark theme, you can see that there are white sections of the timeline (shown in the image attachment) when instead I was expecting a shade of grey.

I tried this using both "UI for WPF Q1 2014" as well as "UI for WPF Q2 2014"
I don't see what I am missing here.


            <telerik:RadTimeline x:Name="RadTimeline1"
                                 Height="230"
                                 VerticalAlignment="Top"
                                 Margin="6"
                                 PeriodStart="{Binding StartDate, Mode=TwoWay}"
                                 PeriodEnd="{Binding EndDate, Mode=TwoWay}"
                                 StartPath="Date"
                                 DurationPath="Duration"
                                 IsSelectionEnabled="True"
                                 SelectionMode="Extended"
                                 ItemsSource="{Binding Data}"
telerik:StyleManager.Theme="Expression_Dark"
>
                <telerik:RadTimeline.Intervals>
                    <telerik:YearInterval />
                    <telerik:MonthInterval />
                    <telerik:WeekInterval />
                    <telerik:DayInterval />
                </telerik:RadTimeline.Intervals>
            </telerik:RadTimeline>
Martin Ivanov
Telerik team
 answered on 29 Oct 2014
5 answers
291 views
I'm trying to set up a project using the Office2013 XAML theme files directly, with the intention of altering a copy of the theme files directly to fit our requirements.

So I have a project in which I include all the XAML files found under "UI for WPF Q2 2014\Themes.Implicit\WPF40\Office2013\Themes". These are set to a resource build action, using MSBuild:MarkupCompile, in the same manner as the Theme solution found in the same directory are the XAML files were taken from. I then reference this assembly in my project, and merge the Office2013 resource dictionaries from my custom assembly.

When I try to open a dialog with a RadColorEditor, I get the error message 
    Cannot set unknown member 'Telerik.Windows.Controls.MaskedInput.PreviewInputTextBox.IsReadOnly'

If I change my project to reference the UI for WPF Q2 2014\Binaries.NoXaml\WPF45\Telerik.Windows.Themes.Office2013.dll assembly, and change the merge lines to use the same dictionaries but from that assembly, it all works fine.

This suggests that the raw XAML files are not entirely correct? Or am I missing something?

Cheers
Jason
Evgenia
Telerik team
 answered on 28 Oct 2014
8 answers
422 views
Hello,
I am using RadDiagram and I am adding RadDiagramShape objects on the fly programatically. I use a simple DataTemplate which I want to use with created objects.And for each created shape, I want to set specific image and text which is defined in DataTemplate.
The problem I have is how to get FrameworkElement to pass with FindName.
Image imageInTemplate = (Image)Box.ContentTemplate.FindName("PartImageName", myContentPresenter);
What is the content presenter for the RadDiagramShape?
Here is the code snippet I use:

 

  <Window.Resources>
    <DataTemplate x:Key="SubItemTemplate"
      <Grid
        <Grid.ColumnDefinitions
        <ColumnDefinition Width="40*" /> 
        <ColumnDefinition Width="60*" /> 
        </Grid.ColumnDefinitions>
      <Image Margin="0" Grid.Column="0" x:Name="PartImageName" Stretch="Uniform" /> 
      <TextBlock Grid.Column="1" Text="Part ID" x:Name="PartID" /> 
      </Grid>
    </DataTemplate>
    </Window.Resources>
<telerik:RadDiagram Margin="2,2,2,2" x:Name="stateDiagram"
</telerik:RadDiagram>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
  RadDiagramShape StateBox = new RadDiagramShape()
  {
    Width = 100,
    Height = 100,
    Geometry = ShapeFactory.GetShapeGeometry(CommonShapeType.RectangleShape),
    ContentTemplate = (DataTemplate)this.FindResource("SubItemTemplate"),
  };
  //now change dynamically the picture and the text of the StateBox:
  ContentPresenter myContentPresenter = FindVisualChild<ContentPresenter>(StateBox,0); 
  Image imageInTemplate = (Image)Box.ContentTemplate.FindName("PartImageName", myContentPresenter);
  imageInTemplate.Source = new Uri(strFilePath, UriKind.Absolute);
  TextBlock textBlockInTemplate = (TextBlock)Box.ContentTemplate.FindName("PartID", myContentPresenter);
  textBlockInTemplate.Text = "some part id";
  stateDiagram.AddShape(StateBox);
}

Thank you very much.
Mikhail.

 

 

 

Zarko
Telerik team
 answered on 28 Oct 2014
1 answer
156 views

I’m having trouble getting the automatic spell checker to work inside a radgridview column.

Here is a simplified version of my grid:

<telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Path=Calls, Mode=TwoWay}" AutoGenerateColumns="False"
 GroupRenderMode="Flat"  
        SelectedItem="{Binding Path=SelectedCall, Mode=TwoWay}" CanUserInsertRows="True" CanUserDeleteRows="True"
        IsFilteringAllowed="False"
        RowIndicatorVisibility="Collapsed"
        ShowGroupPanel="False"
        ValidatesOnDataErrors="InViewMode"
        AlternationCount="2" Name="CallsGrid"
        telerik:RadGridViewSpellCheckHelper.IsSpellCheckingEnabled="True">
<telerik:RadGridView.Columns>
 <telerik:GridViewDataColumn Header="Notes" telerik:RadGridViewSpellCheckHelper.IsSpellCheckingEnabled="True"
  DataMemberBinding="{Binding CallNotes, Mode=TwoWay}" MinWidth="100" Width="*" >
        </telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>

The spell checker comes up after I move out of the notes field and works as expected, however after the spell checker is done and has the correct notes string, it does NOT update the field with the corrected string.

I have noticed the same behavior in the online demos for WPF spellchecker (Spell Checking RadGridView) the manual triggering of spell checking column works however the automatic spell checking column does not update the field with the correct values.

What am I doing wrong?
Aylin
Telerik team
 answered on 28 Oct 2014
4 answers
248 views
Hi All,

We are facing some design issues in our project after upgrading to .Net framework 4.5.1 in VS2013. We use WPF with teleric controls and we can see some UI alignment issues and slow rendering of the charts. The same setup is working fine with .Net 4.0 framework.


Can you please let us know if there are any Known issues Telerik Controls with 4.5.1 framework? Or can you suggest any solution for this?


Your quick help is much appreciated.
Yana
Telerik team
 answered on 28 Oct 2014
3 answers
171 views
The maximized tile height seems to be the height of the sum of the Minimized row heights. In this case I need the maximized tile height to be the height of the TileView container. Is there any way to set the maximized height independent of the MinuminizedRowHeight * TileCount
Pavel R. Pavlov
Telerik team
 answered on 28 Oct 2014
1 answer
161 views
Hi
We have UI for WPF 2014 Q2-SP1 and are experiencing issues with adding controls to our UI.

If we create a project WITHOUT implicit styles we get all the required components in the VS2013 toolbox and can drag and drop these components into our UI.
We would like to use the new VisualStudio 2013 Themes so need to use implicit styles and this is where to problem arises.

If we create a project WITH implicit styles we get the Telerik UI for WPF 2014 Q2 group in the tooblox but there are no draggable components in here only components with <> in front of them.

We have tried creating a simple RadButton control in a grid by manually adding to the XAML but we get the following error in the console:
The type 'telerik:RadButton' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

We might not be understanding the Telerik instructions on using implicit styling but we assume you should still have toolbox controls.
We have reset the toolbox with the Telerik tools as well but the components when using implicit styling just doesn't appear or work manually.
Any help would be greatly appreciated :)


Yana
Telerik team
 answered on 28 Oct 2014
5 answers
230 views
Hi, 

This is my scenario: I have a Diagram and I do  Diagram.BringIntoView(new Point(0,0), zoom, false), but when I do Diagram.AutoFit(new Thickness(0, 0, 0, 0), false), my Diagram back to the original position (without zoom) as if the function BringIntoView() doesn't work. I need that the Diagram will be in center and with zoom. 

Thanks, 

Maite.
Pavel R. Pavlov
Telerik team
 answered on 28 Oct 2014
1 answer
143 views
I need to create an apps with UI similar with Telerik UI  - 2013 Demo App style complete with side panel. Any tutorial or samples?
Yana
Telerik team
 answered on 28 Oct 2014
5 answers
298 views
I'm using RadWindow as main window of a wpf application. Switching theme of all other controls at runtime using implicit styling approach works great. But i can't switch theme of main window?!? Is there any way to get this working?
Kalin
Telerik team
 answered on 28 Oct 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?