Private
Sub moPART_AnswerImage_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles moPART_AnswerImage.MouseLeftButtonDown
Dim oImageViewer As New Radwindow2
oImageViewer.ShowDialog()
End Sub
Find below is the xaml for Radwindow2
<tkNavigation:RadWindow
x:Class="RAMWare.Controls.dlg_PhotoViewer"
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
xmlns:msControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
xmlns:tkNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:tkControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
Height="Auto"
Width="Auto"
WindowStartupLocation="CenterScreen"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Grid x:Name="LayoutRoot" Margin="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical">
<Image x:Name="imgPhoto" Height="Auto" Width="Auto" Stretch="Uniform" />
<StackPanel Orientation="Vertical" VerticalAlignment="Bottom">
<StackPanel Width="Auto" Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
<Button
x:Name="cmdRotateCounterClockwise"
Content="RotateCounterClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Left" />
<Button
x:Name="cmdOK"
Content="OK"
Width="75"
Height="23"
HorizontalAlignment="Center" />
<Button
x:Name="cmdRotateClockwise"
Content="RotateClockwise"
Width="Auto"
Height="23"
HorizontalAlignment="Right" />
</StackPanel>
<TextBlock
x:Name="tblError"></TextBlock>
</StackPanel>
</StackPanel>
</Grid> </tkNavigation:RadWindow>
If user single click a image present in Radwindow1 it has to open Radwindow2.If user double cliks of a image present in Radwindow1 also opens a Radwindow2.But user double clicks a image, radwindow2 is opening behind Radwindow1 that is parent window.
How to solve the problem?
I am using the latest RadComboBox for Silverlight 4 and I am finding some memory leaks when I am binding it to my view model.
Here is my RadComboBox declaration:
<telerik:RadComboBox x:Name="rcbGender" ClearSelectionButtonVisibility="Visible" |
ItemsSource="{Binding GenderList, Mode=OneWay}" |
ClearSelectionButtonContent="Clear" SelectedValuePath="Key" DisplayMemberPath="Name" |
SelectedValue="{Binding Gender, Mode=TwoWay}"/> |
The GenderList is a property of the viewmodel:
public IEnumerable<KeyValueDataItem> GenderList |
{ |
get { return _genderList; } |
} |
public class KeyValueDataItem |
{ |
private string _key; |
private string _name; |
public KeyValueDataItem(string key, string name) |
{ |
_key = key; |
_name = name; |
} |
public string Name |
{ |
get |
{ |
return _name; |
} |
} |
public string Key |
{ |
get |
{ |
return _key; |
} |
} |
} |
Every time I open and close the page it stays in the memory and does not get clean up by GC. I spent a lot of time debugging it with WinDbg and narrowed it down to the RadComboBox causing this problem. When I removed the radcombobox and replaced it with Windows combobox that fixed the problem. I am using the radcombobox in my application a lot and wouldn't really want to replace it with other controls.
Hi
In 2015 I have developed a system using Silverlight which has a map module. I have used the RadMAp control. In this system the user could search for an address on the map using the BingSearchProvider component.
I am completely new to RadTimeline and WPF in general. I'm having problems on with binding data, I was following instructions to the point from here https://docs.telerik.com/devtools/wpf/controls/radtimeline/populating-with-data/databinding and still cannot get to see object on timeline.
Basically, I have an Appointment object, which has Period field. Period has startDate and endDate, which are DateTime object. The goal is to display appointments exactly like on picture from link.
So in my ScheduleView window, I have (I'll just write key things):
this.DataContext = new TestObject(); //this is like your's Product object
TestObject has and filed Data (with property of course) which is List<Item>, named just as in your example.
In constructor of TestObject this happens:
public TestObject(List<Appointment> appointments) {
List<Item> li = new List<Item>();
foreach(Appointment ap in appointments)
{
li.Add(new Item(ap.Period.Start.Subtract(ap.Period.End), ap.Period.Start));
}
this.data = li;
}
Item object has 2 fields:
private TimeSpan timeSpan;
private DateTime startDate;
Finally here is XAML:
<Grid>
<telerik:RadTimeline x:Name="telerikTimeline" Content="RadTimeline"
HorizontalAlignment="Left" Height="333" Margin="45,53,0,0" VerticalAlignment="Top" Width="689"
PeriodStart="05/01/2019 00:00:00"
PeriodEnd="05/28/2019 00:00:00"
StartPath="StartDate"
DurationPath="TimeSpan"
ItemsSource="{Binding Data}">
<telerik:RadTimeline.Intervals>
<telerik:WeekInterval />
<telerik:DayInterval />
</telerik:RadTimeline.Intervals>
</telerik:RadTimeline>
</Grid>
What am I missing ?? So frustrating.. :)