Telerik Forums
UI for WPF Forum
2 answers
171 views

Hi,
I am facing problem in scaling with runtime text defined on telerik diagram.

I am attaching a sample project as well, it has associated font [EnterCommand].

Problem is scaling inconsistency done for runtime text definition.

You can also see video here [https://www.screencast.com/t/2iR20HifiOXz]

 

You can download sample project here [http://ge.tt/6SWf2Du2]

Enviornment: Windows 10, 125 % scaling recommended.

Let me know if any thing missing.

Thanks.

Petar Mladenov
Telerik team
 answered on 30 Jan 2019
4 answers
181 views

Hello

I want to use RadDocking in my application, but I have a problem with its animation. The opening of an element is smooth. However, closing it behaves strangely. It goes first smoothly, but then you see a short flicker and it disappears halfway. How do I make the closing process as smooth as opening?

Regards,
Alex

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
7 answers
158 views

Hi, I'm using the Breadcrumb tool to display a folder path in a WPF MVVM app.

It all seems to work apart from whent he form is initially loaded...

The UI/form is a usercontrol that constructs it's ViewModel via the extended property

prism:ViewModelLocator.AutoWireViewModel="True"

(I'm using the Prism framework)

The BreadCrumb is bound to a couple of properties in the ViewModel..

      <telerik:RadBreadcrumb Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" x:Name="FolderPath"
                             ItemsSource="{Binding ImportSourceRoot.Children}"
                             HeaderMemberPath="Header"
                             HierarchicalItemsSource="Children"
                             HierarchicalMemberPath="Header"
                             HorizontalAlignment="Stretch"
                             IsLinearMode="False"
                             Path="{Binding ImportPath, Mode=TwoWay}"
                             TextModePath="Path"
                             IsTextModeEnabled="True"
                             VerticalAlignment="Top"
                             />

The ImportSourceRoot property is a nested set of classes with the properties: Children (Observable list of more classes), Path (Folder name or drive letter, 'C:' for example) and Header (similar to Path but also annotated for the drop down).

ImportPath is simply a string property backed by a private variable.

As I said it all seems to work once started, navigation works via drop downs or typing, a pasting a path in works.  The issue is when the form loads.

I initialise the ImportPath.  It seems to start ok in that the displayed 'crumbed' path looks like the initial path, but the actual text path contains the path concatenated on itself.  For example, "C:\temp\data" becomes "C:\temp\data\C:\temp\data" ?

I've monitored the string variable on start up and it gets read then written back in steps ....

"C:\temp\data\C:" -> "C:\temp\data\C:\temp" -> "C:\temp\data\C:\temp\data"

Any ideas?

It's not fatal but is annoying!

Thanks

 

Gregor

 

 

 

T

 

Vladimir
Top achievements
Rank 1
 answered on 30 Jan 2019
1 answer
403 views

Hello,

How can i bind visibility property of a textbox to  a selecteditem of AutocompleteBox (with NullToVisibilityConverter) in Wpf? This code dont work.

......

.....

 <telerik:RadButton Grid.Column="1"
                                                   HorizontalAlignment="Right"
                                                   Visibility="{Binding Path=SelectedItem, ElementName=RadAutoCompleteBox1, Converter={StaticResource NullToVisibilityConverter}}"
                                                   Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}, Path=DataContext.Add}"
                                                   CommandParameter="{Binding Path=.}">
                                    <Image Source="{framework:ApplicationImage ImageX}" Height="16" Width="16"/>
                                </telerik:RadButton>

....

....

 

 <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate >
                            <telerik:RadAutoCompleteBox DisplayMemberPath="Name"
                                                        TextSearchMode="Contains"
                                                        SearchText="{Binding Path=Name, Mode=TwoWay}"
                                                        AutoCompleteMode="Suggest"
                                                        SelectionMode="Single"        
                                                        VerticalAlignment="Center"
                                                        BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate="{StaticResource
RadAutoCompleteBoxNoResultsContentTemplate}"
                                                        NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource="{Binding Path=DataContext.Project.Names,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">

                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="LostFocus">
<i:InvokeCommandAction 
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType=UserControl},
Path=DataContext.NewNameEnteredCommand}"
                                                                CommandParameter="{Binding Path=.}"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </telerik:RadAutoCompleteBox>
                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellEditTemplate>

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
1 answer
148 views

Hello,

I have a question regarding autocompletebox component. I would like to display an icon right at the cell textbox in GridView if the entered value is not present in the itemsource. Can one solve this over binding? Which is the best way to do that?


                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate >
                            <telerik:RadAutoCompleteBox DisplayMemberPath="Name"
                                                        TextSearchMode="Contains"
                                                        SearchText="{Binding Path=Name, Mode=TwoWay}"
                                                        AutoCompleteMode="Suggest"
                                                        SelectionMode="Single"        
                                                        VerticalAlignment="Center"
                                                        BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate="{StaticResource
RadAutoCompleteBoxNoResultsContentTemplate}"
                                                        NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource="{Binding Path=DataContext.Project.Names,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">

                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="LostFocus">
<i:InvokeCommandAction 
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType=UserControl},
Path=DataContext.NewNameEnteredCommand}"
                                                                CommandParameter="{Binding Path=.}"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </telerik:RadAutoCompleteBox>
                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellEditTemplate>
Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
1 answer
242 views

One of  my customers becomes some  times scanned documents, where black and white are exchanged(whinte fonts on black background). Other software displays documents  correct (for example Edge or PDFXchange Viewer). I have figured out that those documents are created with PDF24 programm. Unfortunatly i can not  give you an example because they contains businis secrets and personal information of other peaple.  Could you perhaps help me to fix this behaviour.

 

I examen one Document structure with itext rups. It seems that embeded Pictures are realy with swaped colors. Perhaps I have to Config Control right way to display Document correctly. I use default PdfViewer  settings.

Tanya
Telerik team
 answered on 30 Jan 2019
0 answers
139 views

It is due to the font telerikwebui if invalid format on Windows XP.

You can create a project by wizard, and select Them office 2016, then the result .exe will failed to run on Windows XP.

Xiaroun
Top achievements
Rank 1
 asked on 30 Jan 2019
1 answer
211 views

I'm trying to modify a ComboBox to display items in the dropdown in a specific order. I would like all items that start with the search text displayed first, followed by any items that have a word that starts with the search text and finally all items that contain the search text anywhere in the string.

I was able to do this with an AutoCompleteBox by implementing a custom FilteringBehavior. I tried to do the same on the ComboBox by implementing a custom ComboBoxFilteringBehavior, but no matter what order I return the matching indices in, they always get displayed to the user in the order they appear in the ItemsSource.

Is there any way to change the order in which matched items are displayed in the dropdown?

Thank you!

Martin Ivanov
Telerik team
 answered on 29 Jan 2019
0 answers
136 views

We're having an issue with the docking framework when interacting with unpinned areas within an application that has been integrated with some winforms controls. I've attached a sample application (changed extension from zip) that demonstrates the problem.

The bottom part contains a WinFormsHost which hosts a WpfUserControl. We've had to do it this way in order to incorporate legacy code.

When the bottom part is unpinned, it starts behaving unreliably as soon as you start interacting/clicking other parts of the app in winforms.  Also you will see that on hover, miminized winforms UI hides itself back, rather than “stay in preview” mode. This works fine for WPF content. To make it as close as possible to our actual customer application, I have created the Bottom, Right, Main areas in winforms. Just the left section is pure WPF, which is the only bit that works reliably.

Given our requirement to integrate with WinForms in this way, can we make this work correctly?

Note: we're currently using Telerik v2017.2.614.45

Thanks

Pete

Peter
Top achievements
Rank 1
Veteran
 asked on 29 Jan 2019
14 answers
690 views
The filtering on the RadComboBox works great, but I want to customize it so that when I use a combobox with Filter set to 'Contains', the filtering is done on multiple keywords instead of just one string.
For example, if I type "Apple Banana" into the combobox, I would like the filter to filter down to items containing "Apple" and "Banana" in their text, instead of items containing the string "Apple Banana". Is there a simple way to do this?  I appreciate any advice you can offer.
Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jan 2019
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?