Telerik Forums
UI for WPF Forum
1 answer
285 views

Hi,

 Hi i am trying to receive the MouseDown event from the local:Marker which I have created using a user control. The MouseDown event will be used to determine when to drag the marker, log other information as well as performing image change.
I have tested the local:Marker user control without using any telerik codes purely to find out if the MouseDown event works and the result was fine, the user control is able to bubble up the event.

However when i integrate the user control into the DataTemplate, I was not able to receive any form of MouseDown event. Any explaination or ways to over come this?

 

<telerik:RadMap x:Name="OsmMap"
Center="30.335,143.183"
GeoBoundsNW="85,-180"
GeoBoundsSE="-85,180"
ZoomLevel="10"
TouchDown="OnMap_TouchDown"
MouseDown="OnMap_OnMouseDown"
ZoomingFinished="OnMap_ZoomingFinished"
PanningFinished="OnMap_PanningFinished"
ZoomChanging="OnMap_ZoomChanging"
CenterChanging="OnMap_CenterChanging"
NavigationVisibility="Hidden"
CommandBarVisibility="Hidden"
ZoomBarPresetsVisibility="Hidden"
ZoomBarVisibility="Hidden"
MiniMapExpanderVisibility="Hidden"
MouseLocationIndicatorVisibility="Hidden" IsTextSearchCaseSensitive="True">
<telerik:VisualizationLayer x:Name="MarkerLoaded">
<telerik:VisualizationLayer.ItemTemplate>
<DataTemplate>
<local:Marker telerik:MapLayer.Location="{Binding Location}"
Latitude="{Binding Latitude, Mode=OneWay}"
Longitude="{Binding Longitude, Mode=OneWay}"
CurrentState = "{Binding State, Mode=OneWay}"
MouseLeftButtonDown="MapWp_MouseDown"
MouseDown="MapWp_MouseDown"
PreviewMouseDown="MapWp_MouseDown"
TouchDown="MapWp_TouchDown">
<local:Marker/>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>
</telerik:RadMap>

 

Todor
Telerik team
 answered on 31 Jul 2015
1 answer
135 views

Is there the capability to generate and display slots when an appointment is started to be dragged?

I.e.  I have an appointment and I want to restrict that it can only be moved within a 2 day window either direction.  I can do the CanDrop/Drop in a CustomDragDropBehavior to do the actual restriction, however I'd like to visually show the user that they cannot move it 3 days.

Nasko
Telerik team
 answered on 31 Jul 2015
4 answers
575 views
I'm getting "Handler type not valid" when I set the Selected event in the RowStyle.
My XAML is:
<telerik:RadGridView.RowStyle>
  <Style TargetType="telerik:GridViewRow" >
     <EventSetter Event="Selected" Handler="pHandleItemSelected" />
  </Style>
</telerik:RadGridView.RowStyle>
And my event handler is:
Private Sub pHandleItemSelected(sender As System.Object, e As RoutedEventArgs)
End 

The documentation says that this is the type of handler. So what is the problem?





Dimitrina
Telerik team
 answered on 31 Jul 2015
4 answers
309 views

Hello,

I want to align some custom shapes vertically from my diagram.  I make a method called AlignShapes inside a class inheried from SerializableGraphSourceBase<Shape_VM, Link_VM>, and this method is invoked always when InternalItems Changed.

I have create my custom shape class, inherited from NodeViewModelBase and I give it 2 properties, Height and Width (double), that I binded these properties in XAML. Depend of the custom shape, height value is NaN for auto-size, then, when I get the value from custom shape, it return NaN, but the shape in the diagram has a specific height value that I do not know to get.

 How can I get Shape ActualHeight?

 

Thank you!

 

Mikel
Top achievements
Rank 1
 answered on 31 Jul 2015
1 answer
330 views

Hello,

in the download page, the offline CHM documentation is marked as Telerik_UI_for_WPF_ApiReference_2015_2_728.chm.

When the file is downloaded and opened, it says that the documentation is for the previous version: Assembly: Telerik.Windows.Controls.Input (in Telerik.Windows.Controls.Input.dll) Version: 2015.2.623.40 (2015.2.623.40)

Naturally, the new members are missing from the documentation...​

Dimitrina
Telerik team
 answered on 30 Jul 2015
2 answers
119 views

Hi,

How can I prevent selected items on treelistview child nodes?

 

Thank you

Mattia
Top achievements
Rank 2
 answered on 30 Jul 2015
1 answer
104 views
I'm using a GridView wich RowDetailsTemplate is another GridView, i need to iterate inner GridView rows... i'm iterating parent GridView rows this way

IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();

but how can i get the GridView inside the row details template 
Stefan
Telerik team
 answered on 30 Jul 2015
1 answer
556 views

Hi, 

How to get the number of pages of the PdfViewer document?
I am pasting (in case) a part of the code where I am importing the pdf document.

 

public void ShowPdfFile(RadPdfViewer rad, string documentPath)
{
    _radPdfViewer = rad;
    _documentPath = documentPath;
 
    try
    {
        var readAllBytes = File.ReadAllBytes(documentPath);
        var memoryStream = new MemoryStream(readAllBytes);
        rad.DocumentSource = new PdfDocumentSource(memoryStream);
    }
    catch (Exception e)
    {
    }
}

Is it possible to get also the number of pages of the RadRichTextBox document?​

BR,

Marta

Tanya
Telerik team
 answered on 30 Jul 2015
13 answers
1.3K+ views
Do you guys have a sample solution that does the filter on the Tree Generically. I have searched and all the examples are hard coded to filter couple of levels but they don't work if the tree has multiple levels.

Could you please help me with a solution for this? I have tried using CollectionViewSource, but not able to filter below the Root level I am able to filter only at the top level. 

Lets for example I have this Tree - got this from one of your examples. 

Animal
  Dog
  Cat
Fish
   Fresh Water
       Roach
       Bream
    Salt Water
        Skate
              SkateChild
        Soul


In this example, If I type  "d" , I should get the following result.
Animal
    Dog
Fish
    Salt Water 
         Skate
              SkateChild

Please let me know if you can help me with a solution that would work for n level of nodes. 

This is highly critical for us and any help on this is really appreciated. 



   



Petar Mladenov
Telerik team
 answered on 30 Jul 2015
1 answer
228 views

Hey,

I am trying to get my appointments to update in a backgroundworker. I have the backgroundworker up and running but when I assign my appointments to the ObservableCollection on the viewmodel  in the RunWorkerCompleted and fire the NofityPropertyChanged I get an error "Must create DependencySource on same Thread as the DependencyObject." I do not get this error when notifying of changes to strings and ints. Do you know of any reasons why the NotifyPropertyChanged would not work. 

 Thanks

Kalin
Telerik team
 answered on 30 Jul 2015
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?