Telerik Forums
UI for WPF Forum
1 answer
180 views

Hello,

 

I merged themes in Application.Xaml like this

   <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

And this is working correctly, but as soon as I merge this file (which I need for my project) every ordinary button in my project merges this Expression dark theme (which I do not want).

<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>

 

 I am aware that merging System.Windows with this theme changes button style but in this case it is not merged, and it still looks different.

So, two questions:

1.) How do I merge Telerik.Windows.Controls.Navigation with this Theme without merging ordinary buttons also with this theme?

2.) Is there any way I can merge this theme to System.Windows this but only to tooltips and scrollbars?

 

Thank you

 

Juraj
Top achievements
Rank 1
 answered on 28 Nov 2019
3 answers
558 views
Hello All.

I've a GridView with a checkbox column 

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger= PropertyChanged}" .../>


Now it seems the binding is updated only on lost focus (for example, when clicking on another cell/row) and not according to the UpdateSourceTrigger= PropertyChanged.

This is a problem for me, since I've a menu bar which has commands (like delete) which work on the selected rows, and when the menu item is clicked, the Checkbox binding isn't yet updated. Basically you have to select the checkbox, click on the grid outside the checkbox, and only then click on the menu item.Is there indeed a problem here, or am I doing something wrong? Should I simply use GridViewDataColumn with checkbox instead of GridViewCheckBoxColumn?

Yours,
Roee



Dilyan Traykov
Telerik team
 answered on 28 Nov 2019
3 answers
157 views

Given the following (simplified) class...

    class SearchResultsViewModel
    {
        public IList Results { get; }
        public SearchCriteria Criteria { get; }
    }

And the following (also simplified) WPF DataTemplate's...

    <DataTemplate DataType="{x:Type viewModels:SearchCriteria}">
        <StackPanel>
            <!-- Various controls used to display/edit  the SearchCriteria class properties-->
        </StackPanel>
    </DataTemplate>

    <DataTemplate DataType="{x:Type viewModels:SearchResultsViewModel}">
        <telerik:RadDocking>
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Visibility="Collapsed"
                                                 CanUserClose="False">
                            <telerik:RadBusyIndicator BusyContent="{Binding Path=BusyContent}"
                                                      IsBusy="{Binding Path=IsBusy, Mode=OneWay}">
                                <telerik:RadGridView ItemsSource="{Binding Path=Results}" />
                            </telerik:RadBusyIndicator>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup IsContentPreserved="True">
                    <telerik:RadPane CanUserClose="False"
                                     CanFloat="False"
                                     DataContext="{Binding Path=Criteria}"
                                     Header="Search Criteria"
                                     IsPinned="False">
                        <ContentPresenter Content="{Binding}" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </DataTemplate>

When I display the SearchResultsViewModel (using a ContentPresenter), I see - as expected - a list of the results along with a tab on the left of the page with the header "Search Criteria"; however when I then click on the tab to open the associated panel and view the properties of the "SearchCriteria" class I see a repeat of the whole "SearchResultsViewModel" DataTemplate instead of just the properties of the "SearchCriteria" using its own DataTemplate. This then repeats recursively so each time I click on the tab it opens yet another copy.

I have also tried setting "Content={Binding Path=Criteria}" on the "ContentPresenter" instead of setting the "DataContext={Binding Path=Criteria}" on the "RadPane" but this makes no difference.

I use the DataTemplate for the "SearchCriteria" elsewhere within the application and it is called upon based upon the DataType being shown rather than any specific reference to the specific template so I do not want to have to give the template an "x:Key" and then reference it specifically here either but then I do not expect to have to do this as it works elsewhere.

What am I doinng wrong to make the ContentPresenter within the second DataTemplate show the "SearchCriteriaViewModel" DataTemplate instead of the "SearchCriteria" DataTemplate?

Martin Ivanov
Telerik team
 answered on 28 Nov 2019
1 answer
118 views

     Hello,

im new in Telerik. I started with the Database-First Approach example on GitHub and it works great. My Question is how can i add a new Appointment Dialog  Dropdown with the content of my SQL-View.

NOTE:

The code is the same as in the Github Example here.

 

Thank you very much

 

Vladimir Stoyanov
Telerik team
 answered on 26 Nov 2019
1 answer
124 views

Hello,

The French translation for the control are not all correct:

  • RibbonViewLayoutModeButtonContent should be "Ruban simplifié"
  • RibbonViewQATShowBelow should be "Afficher au-dessous du ruban"
  • RibbonWindowMaximize should be "Agrandir"
  • RibbonWindowMinimize should be "Réduire"
  • RibbonWindowRestoreDown should be "Niveau inf."

The last theree are those used by Windows in their tool-tips.

Dilyan Traykov
Telerik team
 answered on 26 Nov 2019
1 answer
257 views

Hello,

I'm trying to dynamically change the resources of the control, in order to change the language of the application without restarting.

First, it's a shame that not all of your controls work with just setting "UseDynamicLocalization = True" and changing the "LocalizationManager.Manager.Culture" property. It complicates the work of application developer...

 

Back to the RadMap. I've implemented code to reload the template of the control after changing the resources and it doesn't work correctly. Almost all of the control changes the texts, excepted for the "layout/mode selection" of all the providers, as you can see with the screenshots: after changing the texts, these ones remains in English.

My code for the loading of the resources is correct because it works for all the other part of the application (and of the map). If I close the application and then starts it again, the texts are in French.

 

My application is using a custom localization manager, so the texts can be loaded from text files.

Vladimir Stoyanov
Telerik team
 answered on 26 Nov 2019
1 answer
100 views

Hello,

There are some errors in the French translation for RadMap:

  • MapCanvasDarkCommand should be "Fond sombre"
  • MapCanvasGrayCommand shoud be "Fond gris"
  • MapCanvasLightCommand should be "Fond clair"
  • MapOsmTransportCommand should be "Transports"
  • MapRoadCommand should be "Routes"
  • MapRoadOnDemandCommand should be "Routes sur demande"
  • MapShadedReliefCommand should be "Reliefs ombrés"
  • MapTerrainBaseCommand should be "Terrain"
  • MapTopographicCommand should be "Topographique "
  • MapWestChar should be "O"

Note that the "mile" abbreviation is officially "mi" and not "ml", which stands for "milli liter", also wrong in English and perhaps. in other languages.

For the first 3 resources (and some others...), I've never see them in the control, so I'm not sure whether they are really used...

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Nov 2019
1 answer
118 views

Hello,

The MapOsmCycleCommand resource key is not available in French

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Nov 2019
1 answer
121 views

Hello,

The documentation about localization is missing the RibbonViewMinimizeRibbon resource key.

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Nov 2019
8 answers
145 views

I was surprised to find that assigning a foreground color to a LinearAxis3D does not automatically make the axis line, title or labels take on that color.  That was the behavior I would expect.  But it does not. 

Ok, no problem, I figured I would get around it by defining a style resource for LinearAxis3D that individually binds the color to its logical children to the parent LinearAxis3D.    So I did that and it works just fine for the text title and labels.  But it does not work for the axis line

Are a LinearAxis3D object's axis lines not logical children of that axis?  And if not, is there any way to generically find the LinearAxis3D object for (binding purposes) from within the style?

To illustrate, here's a the Z axis on my chart.  (I've nested the style here for simplicity but in my app it needs to be a separate static resource for re-use.)

<tk:RadCartesianChart3D.ZAxis>
    <tk:LinearAxis3D
        x:Name="ZAxis"
        LabelFormat="0.00"
        SmartLabelsMode="SmartStep"
        Minimum="{Binding ZAxisMin}"
        Maximum="{Binding ZAxisMax}"
        Foreground="Yellow"
        >
        <tk:LinearAxis3D.Style>
            <Style TargetType="{x:Type tk:LinearAxis3D}">
                <Setter Property="LabelStyle">
                    <Setter.Value>
                        <Style TargetType="{x:Type TextBlock}">
                            <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tk:LinearAxis3D}}, Path=Foreground}"/>
                        </Style>
                    </Setter.Value>
                </Setter>
                <Setter Property="LineStyle">
                    <Setter.Value>
                        <Style TargetType="{x:Type Path}">
                            <Setter Property="Stroke" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tk:LinearAxis3D}}, Path=Foreground}"/>
                            <Setter Property="StrokeThickness" Value="2"/>
                        </Style>
                    </Setter.Value>
                </Setter>
            </Style>
        </tk:LinearAxis3D.Style>
    </tk:LinearAxis3D>
</tk:RadCartesianChart3D.ZAxis>

Since I assigned "Yellow" to the LinearAxis3D.Foreground, my label text blocks manage to find the parent LinearAxis3D and bind to this property to show the correct label color.  But the axis lines never show up.  That binding never finds the LinearAxis3D and so never gets any color. 

If I change this setter to just use a hard coded color then it setter works fine.  But obviously, that's not going to work for me.

Surprisingly, when I tried -- just as a test -- to bind by ElementName to "ZAxis", that didn't work either.  It's not an option for me if I want this Style to be a StaticResource but still I was surprised it did not work.

So do I have any other option here?  Is the Path object used to draw the axis line a logical child of the LinearAxis3D?  And if not, is there any way to achieve what I want?  Or do I need to just  individually nest the line style for each axis?


 

Martin Ivanov
Telerik team
 answered on 26 Nov 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?