I'm working on WPF app with RadTabControl as Prism region and I don't find solution that fully works as expected.
I have region adapter for tab control, close buttons on tabs, but if I close tab, my region adapter doesn't dispose view model attached by Prism to tab item, it is not garbage collected, so I have memory leaks.
Can someone attache sample project that works?
IsHidden
="{Binding Hidden, Mode=TwoWay}"
public bool Hidden
{
get { return hidden; }
set
{
hidden =
value;
PropertyChanged.Raise(
this, "IsHidden"); // Raise is an extension method to do a property changed event
}
}
Hi,
Currently the AutoCompleteBox will display items only when you type at least one letter.
Is it possible to display all items when AutoCompleteBox gets a focus? Basically if I click on the AutoCompleteBox I would like to see the list of all available items, then if you start typing it will filter as standard.
Cheers
Mike
My provider is set to BingRestMapProvider and set in the initialization with a MapMode.RoadOnDemand. Map shows the correctly. However when I use the MapCommand Bar to switch to Aerial it goes to MapMode.Aerial and when I go back to Road it goes to MapRoad.Road. I need to use both RoadOnDemand and AerialOnDemand all of the time.
I've tried setting the Mode property of my provider on the OnLayOutUpdated event but it only works 80% of the time.
The following code produces a confirm Window but it displays the control object type name and not what I assigned to the DialogParameters
Resulting text in Confirm Window:
"Telerik.Windows.Controls.DialogParameters"
Here is my code:
Dim rWParameters As New Telerik.Windows.Controls.DialogParameters
With rWParameters
.Header = "CONFIRMATION"
.Content = "My message to confirm action"
.OkButtonContent = "Yes"
.CancelButtonContent = "No"
End With
RadWindow.Confirm(rWParameters, AddressOf ShowConfirmationOnClosed)
Private Sub ShowConfirmationOnClosed(sender As Object, e As WindowClosedEventArgs)
Try
If e.PromptResult = "Yes" Then
DoSomething()
End If
Catch ex As Exception
Dim Problem As New Errors(ex)
End Try
End Sub
If I do NOT use DialogParameters and just do this:
RadWindow.Confirm("My message to confirm action", AddressOf ShowConfirmationOnClosed)
I see the confirm Window with correct message.
So it looks like RadWindow.Confirm doesn't accept DialogParameters even though the sample in your documentation indicates it does or should.
I'm using version 2016.1.112.1050 of Telerik.Windows.Controls ... I realize there is a more recent version, but no indication it fixes a problem with RadWindow.Confirm.
Help needed ASAP, please.
Cheers, Rob.
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?