Telerik Forums
UI for WPF Forum
1 answer
149 views

Hi,

I have a titletemplate for the headers of RadPanes which contain my own TextBlock and Button elements. I need the button to be docked right next to the "close" pane button (if the RadPane is docked and unpinned left).

If the user clicks on the tab to animate the RadPane to slide open, how do I get the width of the titletemplate to force e.g. a DockPanel to fill the entire area? Otherwise my button just positions itself next to my TextBlock like in a StackPanel scenario.

 

Thank you.

M.Young

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Apr 2018
1 answer
141 views

Hi,

I am trying to get titletemplates to work depending their associated RadPane docking positions within a RadDocking control. The title template should contain a button next to the header which I have set correctly if the RadPane is docked and visible.

However, if the panel is unpinned/closed or floating I need to hide the button. How do I achieve this? Currently I have a bad workaround which checks FindAncestor for type AutoHideArea, ToolWindow or RadPaneGroup in a Visibility Binding for the button.

 

Could anyone please suggest a better way for me to check what the RadPane's current state would be within a separate template for titletemplates?

Thank you.

M.Young

 

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Apr 2018
3 answers
627 views

Hello,

 

I am trying to make a change theme at runtime popup window. Inside the window, I list all the available themes and color variations, and when the user makes the selection, right below I have a little Panel which works like a Theme Preview, and I am applying the theme (removing and re-adding all theme related resource dictionaries) for that specific control. Everything is fine up to here, but when I try to use LoadPreset like;

VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark)

It changes all the application wide color variation/theme. I only want to apply that color variation to just that specific control. I could not see any overload of LoadPreset which takes the control as a input parameter. So how can I achieve this?

 

Thanks.

 

 

Martin
Telerik team
 answered on 27 Apr 2018
1 answer
106 views

Hi i was wondering if there is any way i could bypass the schedule appointment dialog when i double click to edit an existing appointment 
cause i would like to use my own form that has all i need also plan to do save other info in my database and i cant do that from the pre existing form
I've seen you can create customs but it doesn't cut it for what I'm trying to achieve.

other thing that could work for me if there could be a way to close the dialog when it opens 

 

thanks in advance

Petar Mladenov
Telerik team
 answered on 27 Apr 2018
5 answers
137 views
I have an application with many objects in the timebar, in fact so many that it can fit on a normalt screen, so I was wonderring if it is possible to add a vertical scrollbar, somwhow?
Martin Ivanov
Telerik team
 answered on 27 Apr 2018
10 answers
184 views

telerik version: 2018.1.220.40

Theme: Expression Dark 

RadToggleButton with Custom Content - not following theme when it is checked.

<telerik:RadToggleButton IsEnabled="{Binding CanLinkToHandler, Mode=OneWay}"
                         IsChecked="{Binding LinkToHandler, Mode=TwoWay}" Margin="4">
    <StackPanel Orientation="Vertical">
        <Image Source="{Binding LinkIconPath, Mode=OneWay}" Width="64" Height="64"/>
        <TextBlock Text="LinkToHandler" Margin="4 0 4 0" HorizontalAlignment="Center"/>
    </StackPanel>

</telerik:RadToggleButton>

RadRibbonSplitButton with Custom Content - not following theme when user click on the button to display the dropdown content.

<telerik:RadRibbonSplitButton Margin="4">
    <StackPanel Orientation="Horizontal">
        <Image Source="/Lumeresoft;component/Resources/Images/Hamburger icon.png" Width="16" Height="16"/>
        <telerik:Label Content="ManualTrigger:"/>
        <telerik:Label Content="{Binding Multishots, Mode=OneWay}" />
    </StackPanel>

    <telerik:RadRibbonSplitButton.DropDownContent>
         <Grid>
          ...
        </Grid>
</telerik:RadRibbonSplitButton/>

 

Problem with theme on RadRadioButton with custom content

I have tried the approach mentioned in above link, but it does not work for me.

Please let me know what other ways that can be done in order to apply the theme to Custom Content.

Joel
Top achievements
Rank 1
Iron
 answered on 27 Apr 2018
1 answer
174 views

Hi,Anybody know how i do to catch a id value of the clicked line on the RadGrid component? 

I have a event

        protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            popularGridViewFuncionario();
        }

 

Where popularGridViewFuncionario(); fill the datsource of radGrid. I want get the id value inside this event.

Vladimir Stoyanov
Telerik team
 answered on 26 Apr 2018
7 answers
165 views
Hi! Sometimes when I select some text in TextBox I get next error:

System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.BinarySearchSplitIndex(SpanLayoutBox spanBox, Single availableWidth)
   at Telerik.Windows.Documents.SpanBoxPositionHandler.MoveToLocation(PointF location)
   at Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean moveToNextIfOutOfBox)
   at Telerik.Windows.Documents.Selection.MouseSelectionHandler.UpdateSelectionAndCaretPosition()
   at Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentMouseMove(Point position, SourceType source)
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.HandleMouseMoveOnPosition(Point position, SourceType source)
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.Owner_MouseMove(Object sender, MouseEventArgs e)

How I can catch this error for handling?
Tanya
Telerik team
 answered on 26 Apr 2018
2 answers
119 views

     Hi, i'm using RadBreadcrumb in my WPF app and cannot find the way to handle when user Paste path in TextMode ? I.e. -

1) click on Breadcrumb , it will switch to text mode,

2) press Ctrl+C (Copy),

3) press Esc (to switch off TextMode)

4) Now goto another path , to make break crumb show different path

5) click on Breabcrumb, it will switch to TextMode

6) press Ctrl+V (Paste)

Any idea how i can handle that ?

Charles Goh
Top achievements
Rank 1
 answered on 26 Apr 2018
2 answers
514 views

Hi,

we had UI.for.Wpf version 2016.3.1024 before and we updated to 2018.1.122. We started to have problem after update.

Scenario: We have background worker which starts long running operation. When it finishes, we do some actions in WorkerCompleted event handler. We show RadWindow. When its closed, we do some data refresh there and then we programatically change tab in Ribbon to show user final list with results.

Then app seems to be frozen. Better to say, it is shown on screen, but I can click on items behind window. fe if there is desktop behind, I can manipulate items on desktop.

Steps to unfreeze: Click on application incon in task bar. App gets minimized. Then click on that icon again and app gets maximized. App is then working fine again.

Unfortunately, its so rare that we cant debug it or at least create some demo for you. So, we dont know what is suddently causing this. Our observation is that it happens on Win 10.

Question is now, what can we do to prevent this strange behavior? sure, we can downgrade previous version we used. Any other suggestions? Can you help us please?

Kalin
Telerik team
 answered on 26 Apr 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?