Telerik Forums
UI for Silverlight Forum
1 answer
148 views

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?

Vladimir Stoyanov
Telerik team
 answered on 10 Mar 2020
9 answers
356 views
Hi all,

I'm binding to a RadPane's IsHidden property as follows:

IsHidden

 

="{Binding Hidden, Mode=TwoWay}"

 


My ViewModel looks like this:

 

public bool Hidden

 

{

 

get { return hidden; }

 

 

set

 

{

hidden =

value;

 

PropertyChanged.Raise(

this, "IsHidden");  // Raise is an extension method to do a property changed event

 

}

}


The first time Hidden is set in the ViewModel's constructor, the IsHidden seems to work properly.  Subsequent changes to try to reshow the RadPane through the Hidden property don't work.

best,
-Mike Gold


Vladimir Stoyanov
Telerik team
 answered on 28 Feb 2020
10 answers
164 views
SInce the latest update, whenever space is pressed to get a space in a textbox, it just changes highlighting of the panel bar without inputting the space.
Petar Mladenov
Telerik team
 answered on 12 Feb 2020
6 answers
284 views

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

Michal
Top achievements
Rank 1
 answered on 21 Jan 2020
1 answer
60 views

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.

 

James
Top achievements
Rank 1
 answered on 17 Jan 2020
6 answers
59 views
When the combo is open and you press a key, it scrolls to show the first item starting with that letter at the bottom of the list in the scrollviewer.  Typically you want to see that item and other items beginning with that letter, but the other items are off the bottom.  Is it possible to scroll the scrollviewer so that the highlighted row is as near the top of the scrollviewer as possible?
Petar Mladenov
Telerik team
 answered on 17 Jan 2020
19 answers
281 views
Hi,

The property editor is split in 2 columns:

Label Column
Editor Column

I want to create a property editor with following features:

It must show a readonly textbox that contains the path of a file
At the right side i must have a button that allows opening a filedialog
I do not want the property editor to show a horizontal scrollbar

I have created a readonly textbox that contains the path of the file, it will contain a button with which i can open a filedialog. I have made a template that will show a texttrimmed textblock. So far so good...

I know the horizontal scrollbar can be turned of in the property editor. But the textbox always resizes so it can show the entire path. This means that if the text in it is to long, i will not see the button on the right.

I have found there is a property for the Width of the label column but not for the width of the editor column, so how can i set the MaxWidth of my editor match the width of the Editor column?

What i want to achieve is like the visual studio property editor... that there is no horizontal scrollbar shown at any time... but that the user would have to resize the propertygrid for seeing the entire path of the file.

Is this possible?


Dilyan Traykov
Telerik team
 answered on 14 Jan 2020
6 answers
239 views
Hi there, Please help me solve this problem

I'm working with the exporting the RadDocument into different file format.(HTML,Docx,PDF)
I have data in the table which are both English and Thai language(My native language). At this time, exporting to HTML and Docx work fine. However, when I export this into PDF, the table cell that has a Thai text becomes unreadable (It becomes a kind of square text or something). I already set a font family (such as MS Arial Unicode) in which Thai language can be used but exporting still failed.

The source code of setting font is some kind like this.

            Telerik.Windows.Documents.Model.Span span = new Telerik.Windows.Documents.Model.Span();
            span.FontFamily = new FontFamily("Arial Unicode MS");
            paragraph.Inlines.Add(span);
            paragraph.TextAlignment = Telerik.Windows.Documents.Layout.RadTextAlignment.Center;
            cell.Blocks.Add(paragraph);

Do I need to thing set something else?

Thanks
Martin
Telerik team
 answered on 03 Jan 2020
4 answers
232 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Dec 2019
11 answers
356 views
HI,

    In silverlight main page i am having button.If i click button it will open a radwindow. It is opening properly.In that radwindow i am having an image. If user single clicks or double clicks a image it has open a another radwindow.

   In imageMouseLeftButton_Down event i have written code like this

  

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?

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Dec 2019
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?