Telerik Forums
UI for WPF Forum
1 answer
301 views
Hi,

It's the first time I'm using Implicit Styles and NoXaml so I'm sure I'm doing something wrong and I hope someone can help me. 

I have a Prism project. At main WPF application project, I have added references for all dll I need in all modules. Currently, I've added the following ones:
Telerik.Windows.Controls;
Telerik.Windows.Controls.Charts;
Telerik.Windows.Controls.Data;
Telerik.Windows.Controls.Input;
Telerik.Windows.Controls.Navigation;
Telerik.Windows.Controls.ScheduleView;
Telerik.Windows.Data;

At this project, at App.xaml I've merged the following xaml files (the xaml files Telerik WPF extensions added at Themes folder
<ResourceDictionary.MergedDictionaries>
                 
                <!-- Telerik.Windows.Controls is used by all assemblies -->
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.xaml" />
 
                <!--<ResourceDictionary Source="Themes\Windows8Touch\System.Windows.xaml" />-->
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.Input.xaml" />
 
                <!-- Requires: System.Windows.xaml -->
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.Navigation.xaml" />
 
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.Chart.xaml" />
 
                <!-- Requires: Telerik.Windows.Controls.Input -->
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.Data.xaml" />
                
                <!-- Requires: System.Windows, Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation -->
                <ResourceDictionary Source="Themes\Windows8Touch\Telerik.Windows.Controls.ScheduleView.xaml" />
                 
            </ResourceDictionary.MergedDictionaries>


Now, I have one module (in a separated project) that has references to:
Telerik.Windows.Controls;
Telerik.Windows.Controls.Data;
Telerik.Windows.Controls.Input;
Telerik.Windows.Controls.Navigation;
Telerik.Windows.Data;

One of the Views in this module contains a RadDataform but it's DataFields are not visible when View appears at UI. I've tried to use DataFormDataField control alone with no success. Am I missing something?

Thanks.



Ivan Ivanov
Telerik team
 answered on 17 Sep 2013
1 answer
276 views
I'v setup applied a custom style to a RadAutoCompleteBox in order to change its visual design. I would also like to customize its RadAutoCompleteBoxItems (e.g. change the RemoveButton). How can this be achieved?

I found a RadAutoCompleteBoxItemStyle in the built-in Themes but it seems like this style is set globally. Which property of the RadAutoCompleteBox can I use to override this default style?

Thanks for your help
Matthias
Masha
Telerik team
 answered on 17 Sep 2013
1 answer
108 views

Hi all of you,

I'm using this control under trial license. I'm trying to do a very simple binding but it doesn't work at all:

xaml header:

Here you can see the reference to one of my RESX files (I've got one for English and another one for Spanish where every key is named alike.
Names of resources files:

MasterGIT.resx and MasterGIT.en.resx

This line uses one RESX under criteria language:

     ResxExtension.DefaultResxName="GIT_CuadroMando.MasterGIT" Language="{UICulture}"

 

 

<Window

        ResxExtension.DefaultResxName="GIT_CuadroMando.MasterGIT" Language="{UICulture}"

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="GestorDocumental"

 

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="Window_Loaded"

    xmlns:local="clr-namespace:GIT_CuadroMando"

    xmlns:commands="clr-namespace:Telerik.Windows.Media.Imaging.ImageEditorCommands.RoutedCommands;assembly=Telerik.Windows.Controls.ImageEditor"       

    xmlns:tools="clr-namespace:Telerik.Windows.Media.Imaging.Tools;assembly=Telerik.Windows.Controls.ImageEditor"

    Title="{Resx TitleGestorDocumental}" Height="701" Width="1000" ResizeMode="CanResize" WindowStyle="ToolWindow">

 

 

<telerik:RadImageEditorUI x:Name="BodyWorkAndPaintingTool" Grid.ColumnSpan="4" Margin="10,49,33,10" Grid.Row="1" Grid.RowSpan="4">

          <telerik:RadImageEditorUI.ImageToolsSections>

              <telerik:ImageToolsSection Header="{Resx Disenador_Blur}"  >

 

                  <telerik:ImageToolItem ImageKey="Resize" Text="Resize" Command="commands:ImageEditorRoutedCommands.ExecuteTool">

                      <telerik:ImageToolItem.CommandParameter>

                          <tools:ResizeTool x:Name="resizeTool"/>

                      </telerik:ImageToolItem.CommandParameter>

                  </telerik:ImageToolItem>

 

                  <telerik:ImageToolItem ImageKey="Resize" Text="Canvas resize" Command="commands:ImageEditorRoutedCommands.ExecuteTool">

                      <telerik:ImageToolItem.CommandParameter>

                          <tools:CanvasResizeTool/>

                      </telerik:ImageToolItem.CommandParameter>

                  </telerik:ImageToolItem>

 

 
code-behind:

Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)

 

        CultureManager.UICulture = Thread.CurrentThread.CurrentCulture

'        Thread.CurrentThread.CurrentUICulture = New CultureInfo("es")

 

    End Sub

 

Petya
Telerik team
 answered on 17 Sep 2013
11 answers
330 views
private void diagram_ConnectionManipulationCompleted(object sender, ManipulationRoutedEventArgs e)
{
     Here, e.Connector may be null. Why?!
}

Some times, when I drag a connection from a node and then release it before attaching to another connector, the ConnectionManipulationCompleted event is fired with its Connector set to null. It happens maybe 1 out of 10 tries, but after it has occurred it seems to happen more often until I press ESC or perform some other reset operation.

How should I interpret this? Is it a bug or is this a valid state?

UPDATE:
This event is usually not fired when I do the above. Only when it does indeed fire, this weird state is seen. I believe this event is erroneously called from within your code. Also, e.ManipulationStatus is set to ManipulationStatus.Moved. Obviously, I did not move a connection...
Kristoffer
Top achievements
Rank 1
 answered on 17 Sep 2013
1 answer
91 views
Hello, I want to be able to modify the size of the area in which tile view control expands or is maximized. How can I do this?
Tina Stancheva
Telerik team
 answered on 17 Sep 2013
0 answers
117 views
Hi sir

In a radgridView that has been many level of hierarchial (Auto hierarchial), How we could remove the group panel from RadGrid(in all levels)?

Thanks
Hossein
Top achievements
Rank 1
 asked on 16 Sep 2013
4 answers
547 views
In all the built in .net WPF controls, you may override the default style, and specify your own custom template.  In my usage, it allows me to view a Textbox as a Label, have a button clicked to switch the mode to Edit mode, and switch the style to change the control back to a TextBox.

When I attempt to do the same thing for the Telerik - RadAutoCompleteTextbox, with this style, I get the following error (view mode)

<Style x:Key="RadAutoCompleteBoxViewMode" TargetType="{x:Type telerik:RadAutoCompleteBox}">
        <Setter Property="OverridesDefaultStyle" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:RadAutoCompleteBox}">
                    <Label Content="{Binding SearchText, RelativeSource={RelativeSource AncestorType=telerik:RadAutoCompleteBox}}" Style="{StaticResource FormFieldReadOnly}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.RadAutoCompleteBox.InitializeBoxesItemsControl() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\AutoCompleteBox\RadAutoCompleteBox.cs:line 1067

Is there something I'm missing?  Is there another way to accomplish this goal ?  Should not the concept of lookless controls be supported?  

thanks!
James
Top achievements
Rank 1
 answered on 16 Sep 2013
2 answers
318 views
I've been using the "WPFDialogManagement" controls for popup message windows previously and they allow for command like this: 

dialogWait = dialogManager.CreateWaitDialog("We're good to go. This message will self destruct in 3 seconds...", DialogMode.Ok);
dialogWait.Show(() => Thread.Sleep(3000));

This pops up the message and then auto closes after 3 seconds if the "ok" button isn't pressed.

Is it possible to get a similar behavior with the RadWindow.Alert or by another means?

Thanks...


Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
2 answers
113 views
hi ya,

Framework 4.5. VS 2012 Ultimate Update 3.

Telerik WPF 2013 Q1 NET 45

I embedded that control in a Window in my WPF desktop project and sometimes everything is stuck and I need to close my IDE throught Task Manager.

xaml:
<Window x:Class="Calculadoreta" ResizeMode="NoResize"
         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
         KeyDown="Window_KeyDown"
    Title="Calculadora" Height="350" Width="443"><Grid x:Name="Calculadora">
    <Grid.Background>
        <LinearGradientBrush EndPoint="0.985,0.415" StartPoint="0.053,0.415">
            <GradientStop Color="#FF99B4D1" Offset="0"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
    </Grid.Background>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
    <telerik:RadCalculator Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="115,25,117,29"/>
</Grid>
</Window>

code-behind:


Public Class Calculadoreta
 
    Private Sub Window_KeyDown(sender As Object, e As KeyEventArgs)
 
        If Key.Escape Then
 
            Me.DialogResult = True
            Me.Close()
 
        End If
 
 
    End Sub
End Class

Sometimes I can see this error:


"Error argument 9 NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
"Reference not established like object instance"

Thanks in advance,
Enric
Top achievements
Rank 1
 answered on 16 Sep 2013
3 answers
515 views
Hello,

I'm using the combobox in this example inside a grid as a celledittemplate:

http://www.telerik.com/community/forums/silverlight/combobox/multiselect-option-in-combo-box.aspx

I'm now stuck because I want to bind the comma separated values to the column dataitem, it is a string type.
I'm kind of new to wpf binding and I've tried a lot of things to get this done, but cannot achieve my goal.
please help.

Here's the column definition, Choices is the property I need to bind the results of the checked items.

<telerik:GridViewDataColumn Header="Choices"   
   DataMemberBinding="{Binding Choices, Mode=TwoWay}">  
   <telerik:GridViewDataColumn.CellEditTemplate> 
      <DataTemplate> 
         <telerik:RadComboBox x:Name="ChoicesCombo" 
            Loaded="OnChoicesComboBoxLoaded" SelectedIndex="0"   
            SelectedValue="{Binding Choices, Mode=TwoWay}" > 
            <telerik:RadComboBox.ItemTemplate> 
               <DataTemplate> 
                  <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}"   
                     Content="{Binding Text}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.ItemTemplate> 
            <telerik:RadComboBox.SelectionBoxTemplate> 
               <DataTemplate> 
                  <TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ValueConverter}}" /> 
               </DataTemplate> 
            </telerik:RadComboBox.SelectionBoxTemplate> 
         </telerik:RadComboBox> 
      </DataTemplate> 
   </telerik:GridViewDataColumn.CellEditTemplate> 
</telerik:GridViewDataColumn> 
Chango
Top achievements
Rank 1
 answered on 16 Sep 2013
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?