Telerik Forums
UI for WPF Forum
3 answers
141 views

Hi,

I have a problem with visualizating images, which was signed by component (SecureBlackBox).
The final document (which is signed by this component) has image, which is shown vertically mirrored in Telerik component RadPdfViewer as shown in attached file "current.png". I am currently using version 2018.2.1912.45.

In any other pdf viewer (webBrowser, acrobat reader) it looks normal. In newest version of "Demos - Telerik UI for WPF" the PDFViewer showing created pdf normally too, shown in attached file: "demo.png".

PS: I don't know, if it has anything to do with it, but it seems widget, which is connected to created PDF, is using transformation matrix (MatrixPosition) which has attribute hasInverse set on True. But it seems like the value of this matrix doesn't change anything.

I wanted to ask, if this problem was solved/patched in newer version then 2018.2 or If is there some property which is managing this kind of behaviour?

Thanks.

Best regards
Martin.

Martin
Top achievements
Rank 1
 answered on 13 Oct 2020
3 answers
184 views

The requirement is to have a dropdown of string collection which can be different from row to row. So I used ItemsSourceBinding according to the document. But the combox didn't show up when I clicked the cell.

<telerik:GridViewComboBoxColumn Header="Reason"
DataMemberBinding="{Binding MyReason}"
HeaderCellStyle="{StaticResource GridHeaderStyle}"
ItemsSourceBinding="{Binding ValidReasons}"
IsComboBoxEditable="True"
EditTriggers="CurrentCellClick"
IsReadOnly="False"
GroupMemberPath="Check"
/>

"GroupMemberPath" was there before. I added "IsComboBoxEditable", "EditTriggers" and "IsReadOnly" and found nothing changed. I assumed that IsComboBoxEditable can be used if the reason is not found in "ValidReasons".

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Oct 2020
3 answers
619 views

Hello,

I updated to the newest version of Telerik UI for WPF last Friday, and ever since I have been receiving this issue. Any control where I set a property for a GridView, or some GridView component, using a style, I now receive this error:

"The property 'CanUserSelectColumns' is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property 'CanUserSelectColumns'. For attached properties, the declaring type must provide static 'GetCanUserSelectColumns' and 'SetCanUserSelectColumns' methods."

This error occurs even when I set styles on GridViewCell, but not all GridView components. See attached images for example. The project still builds and runs correctly, but this prevents me from using the designer, and also adds a lot of noise to my errors list.

Please let me know if there is a solution.

Thanks

Vladimir Stoyanov
Telerik team
 answered on 13 Oct 2020
7 answers
816 views

Hello,

We are using RadListBox as part of UserControl. Control consists of couple of data templates one of which contains list box:

<telerik:RadListBox Grid.Row="2" x:Name="DocumentListBox" ItemsSource="{Binding ItemsView}" BorderThickness="0"
            ItemTemplateSelector="{Binding TemplateSelector}"
            SelectedItem="{Binding SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
            Background="Transparent"
            HorizontalContentAlignment="Stretch"
            SelectionMode="Single"
            ScrollViewer.VerticalScrollBarVisibility="Auto"
            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
            ScrollViewer.IsDeferredScrollingEnabled="{Binding IsDeferredScrollingEnabled}">
    <telerik:EventToCommandBehavior.EventBindings>
        <telerik:EventBinding EventName="MouseDoubleClick" Command="{Binding OpenItemCommand}" CommandParameter="{Binding SelectedItem}"/>
    </telerik:EventToCommandBehavior.EventBindings>
    <telerik:RadListBox.ItemContainerStyle>
        <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource {x:Type telerik:RadListBoxItem}}">
            <EventSetter Event="MouseMove" Handler="DocumentListBox_OnMouseMove"/>
        </Style>
    </telerik:RadListBox.ItemContainerStyle>
    <telerik:RadListBox.InputBindings>
        <KeyBinding Key="Delete" Command="{Binding DeleteItemCommand}" CommandParameter="{Binding SelectedItem}"/>
        <KeyBinding Modifiers="Control" Key="O" Command="{Binding OpenItemCommand}" CommandParameter="{Binding SelectedItem}"/>
    </telerik:RadListBox.InputBindings>
</telerik:RadListBox>

 

Control always used with the same view model. Most of the times SelectedItem binding works fine. But in two places it doesn't.

There is no binding related errors in the output, RadListBox is correctly populated with items and RadListBox.SelectedItem has correct value.

But in this two problematic cases SelectedItem property of the view model does not get updated.

We suspect that the problem might have something to do with the initialization order, but could not detect any specific pattern.

In one case the control used in the tab in the other in dialog window.

Felix
Top achievements
Rank 1
 answered on 12 Oct 2020
0 answers
143 views

Hello!

I have similar, but slightly different scenario for misplaced dock indicators. Similar to https://www.telerik.com/forums/wrong-rootcompass-indicators-location, but in my case the host process is also WPF application that have ContentPresenter with content from another WPF process.

I've tried to implement IWindowInteropabilityAdapter, but it's properties are not being read at all.

Attaching Adapter

View = FrameworkElementAdapters.ContractToViewAdapter(_remoteProcess.RemotePlugin.Contract);
            WindowInteropabilityHelper.SetWindowInteropabilityAdapter(View,
                new WindowInteropabilityAdapter(App.Current.MainWindow));

//or App.Current.MainWindow.FindChildByType<ContentPresenter>()

 

Host Main Window xaml

<Window  >
    <AdornerDecorator>
        <DockPanel>
  
            <ContentPresenter Content="{Binding PluginService.SelectedPlugin.View}" />
        </DockPanel>
    </AdornerDecorator>
</Window>

 

I also tried to look at OnPreviewShowCompass(PreviewShowCompassEventArgs args) on child process RadDocking, because I can track main app to know that it was moved to the other screen, I'm able to have screen handle and screen dimensions, but I have no clue how to correct Compass placement even with all that information.

Is there anything I got missing, done wrong or could change to make it work as expected?

Bartosz
Top achievements
Rank 1
 asked on 09 Oct 2020
5 answers
128 views

I have a few AutocompleteBoxes databound to some objects (standard MVVM pattern).

If I make a selection, then press the Tab key, the objects are updated just fine.

If I just click to another control, they are not. The lose focus event is fired, but the Selecteditems is null.

 

Is there a way to make this work properly?

Martin Ivanov
Telerik team
 answered on 09 Oct 2020
3 answers
112 views

Good day,

i would like to achieve something like the Agenda View with Columns for each "Resource". eg:

 

                       Person 1 | Person 2 | Person 3 | ....

Monday

Tuesday

Wednesday

....

Is this possible? Could you please point me in de right direction?

 

Thank you for your time and help!

Best regards
Jürgen

 

Dilyan Traykov
Telerik team
 answered on 09 Oct 2020
10 answers
537 views
Is it possible to show the floating RadPane in the windows taskbar with the other application windows? I was looking through documentation and couldn't find a way to do this.

I know the floating windows come to the front when the application window is focused, but wondered if that was the desired functionality instead of having them in the taskbar.
Martin Ivanov
Telerik team
 answered on 09 Oct 2020
1 answer
1.4K+ views

Good day,

Is there a way I can add custom property to RadWatermarkTextBox? For example adding isRequired property and use it in the control template.

 

Thank you.

Martin Ivanov
Telerik team
 answered on 09 Oct 2020
2 answers
295 views

Hello

How would I bind the AutoCompleteBox to a simple List<string> or to a string array. Documentation only shows how to bind to a custom object. 

 

Thanks

Herald
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Oct 2020
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?