Telerik Forums
UI for WPF Forum
1 answer
103 views
<p>        private void RadRibbonView_SelectionChanged(object sender, RadSelectionChangedEventArgs e)<br>        {</p><p>              var ribbon = (sender as RadRibbonView);</p><p>              if (ribbon.SelectedItem is RadRibbonTab)<br>              {<br>                  //DO STUFF<br>              }<br>              else if (ribbon.SelectedItem is RadRibbonBackstage)<br>              {<br>                  //DO OTHER STUFF<br>        }</p>

If I click on the backstage, this always triggers as a tab....which is causing me many problems.

Dilyan Traykov
Telerik team
 answered on 23 Jul 2019
1 answer
142 views

Hi,

We have an option to close our app in our Backstage panel:

var result = MessageBox.Show(unsavedChangesMsg, Properties.Resources.MessageBoxTitle_Confirmation, MessageBoxButton.OKCancel, MessageBoxImage.Question);

...if the user selected "Cancel" then the ribbon goes to last tab selected instead of staying in the backstage. The backstage isn't considered to be a tab it seems, so keeping it open is problematic it seems. 

I've tried:

- Hiding all tabs.

- Unselecting all tabs.

- MasterRadRibbonView.SelectedIndex = -1;

- MasterRadRibbonView.SelectedItem = MasterRadRibbonView.Backstage;

- IsBackstageOpen = true; //databinding

...and a few other things, but when the screen comes back after the user exits out of the pop-up window, the last tab is loaded, when we want it to stay on the Backstage until the user selects a tab themselves.

Barry

 

Dilyan Traykov
Telerik team
 answered on 23 Jul 2019
3 answers
156 views
Hi,

I have a RadRibbonView with RadRibbonTab inside it to display Module names.
The itemsource of RadRibbonView is set with my modules and these modules are converted to tabs at runtime using a converter to the ItemSource.
From the converter, I set the first tab as IsSelected= true and it set correctly and higlights the specific tab.
But the details/contents of that tab is not displayed.
Ie: OnSelectionTabChanged event doesn't fire in this case.
Where when I click a different tab, it works fine. but when i click the first tab again, it doesn't work.
When I checked using WPF inspector, i can see that IsSelected property of the first tab is always true even when i select a different tab.
any help?

am using 2013 Q1.
The same code was working perfectly whern i used rabribbontab. Now am converting this to radribbonview ince ribbontab doesnt exists in the new release.

Cheers






Martin Ivanov
Telerik team
 answered on 23 Jul 2019
2 answers
166 views
How can I display only the spellchecker and the clipboard functions for a RichTextBox in the ConextMenu? All functions to format the text should be hidden.
Harald
Top achievements
Rank 2
 answered on 22 Jul 2019
3 answers
122 views

Hello,

what is the purpose of setting the SelectionBoxesVisibility property to Collapsed ?  When I do this, the MultiClumnComboBox does not show any value, as if no item is selected.

Regards,
Hans

Dimitar Dinev
Telerik team
 answered on 22 Jul 2019
6 answers
174 views

Hi, i have some problem. 

The image editor created by wpf works normally. However, if you link to other programs, you will not see all the components. (Please refer to attached file)

I don't know why act like that. I look forward to your valuable feedback.

Thanks

선정
Top achievements
Rank 1
 answered on 22 Jul 2019
6 answers
423 views
I want to ad a close button to 1 out of 2 RadTabItems. The documentation ads the button to all RadTabItems. How can I do this?
My xaml code is as follows (and I want the close button on the second RadTabItem, never the first one):
<telerik:RadTabControl> 
<telerik:RadTabItem Header="{Binding ElementName=operationContentControl, Path=Content.DataContext.Header}" IsSelected="{Binding IsOperationSelected, Mode=TwoWay}"
<ContentControl x:Name="operationContentControl" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.MainRegion}" /></telerik:RadTabItem> 
<telerik:RadTabItem Header="{Binding ElementName=protocolContentControl, Path=Content.DataContext.Header}" IsSelected="{Binding IsProtocolSelected, Mode=TwoWay}" Visibility="{Binding IsProtocolVisible, Converter={StaticResource boolToVisibilityConverter}}"
<ContentControl x:Name="protocolContentControl" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.ProtocolRegion}" /><telerik:RadTabItem> 
</telerik:RadTabControl> 
 

Regards,
Roy
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 20 Jul 2019
0 answers
132 views

Hir sir,

I am new to wpf.is there any option to set window as mdi and open other windows in it. in winforms we will set ismdicontainer=true;

 

can you give an exmple?

Vidhya
Top achievements
Rank 1
 asked on 19 Jul 2019
2 answers
134 views

How can I assign in the code behind a German Dictionary to a RichTextBox in the CellEditTemplate?

01.<telerik:GridViewDataColumn.CellEditTemplate>
02.  <DataTemplate>
03.    <Grid>
04.      <telerik:RadRichTextBox x:Name="ProtocolRowTextBox"
05.                              IsSpellCheckingEnabled="True"
06.                              BorderThickness="0" 
07.                              Height="Auto"
08.                              Margin="0"
09.                              DocumentInheritsDefaultStyleSettings="True"/>
10.      <telerik:TxtDataProvider RichTextBox="{Binding ElementName=ProtocolRowText}" 
11.                               Text="{Binding Path=Text, Mode=TwoWay}"/>
12.    </Grid>
13.  </DataTemplate>
14.</telerik:GridViewDataColumn.CellEditTemplate>

 

I can't find the RichTextBox in C# by name and assign it to the dictionary , such as:

1.ProtocolRowTextBox.SpellChecker = _localViewModel.DocumentSpellChecker;

 

 

 

Harald
Top achievements
Rank 2
 answered on 17 Jul 2019
2 answers
174 views

Hi,

I have a project in which I am trying to support merged cells for all columns. I notice however that a CheckBox Column doesn't fully support this feature inasmuch as a GridView always displays the values True or False in text form across merged cells (or in my case "1" or "0").

I thought this was an oversight by me but I noticed it in the documentation here where the IsMarried column is shown.

 

Is this the intended design or does Telerik plan to change this? Personally I would prefer the merged cell also to display a CheckBox.

 

Many thanks.

Miles Young

 

 

Miles
Top achievements
Rank 1
 answered on 17 Jul 2019
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?