Telerik Forums
UI for WPF Forum
2 answers
336 views

Hello,

 

I'm developing an installation wizard, and i have a resource for radbuttons.

 

Everything seems ok upon creation, but when i put the mouse over the button or i press it i get the following error:

 

System.Windows.Data Error: 40 : BindingExpression path error: '(MaterialControls:MaterialAssist.MouseOverBrush)' property not found on 'object' ''RadButton' (Name='LoginButton')'. BindingExpression:Path=(MaterialControls:MaterialAssist.MouseOverBrush); DataItem='RadButton' (Name='LoginButton'); target element is 'Border' (Name='BorderVisual'); target property is 'Background' (type 'Brush')

 

I have no idea what is wrong.

 

Code for button in wizard:

<telerik:RadButton x:Name="LoginButton"
                                       Margin="0 180 0 35"
                                       HorizontalAlignment="Center" 
                                       Content="Submit"                     
                                       Height="40" Width="105"                               
                                       VerticalAlignment="Bottom"
                                       Click="LoginButton_Click"
                                       MouseEnter="LoginButton_MouseEnter"
                                       MouseLeave="LoginButton_MouseLeave"
                                       Style="{DynamicResource TestButton}"
                                       CommandParameter="{Binding}"/>

 

code

<Style x:Key="TestButton" TargetType="{x:Type telerik:RadButton}">
        <Setter Property="MinWidth" Value="70"/>
        <Setter Property="Margin" Value="0,0,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Style.BasedOn>
            <Style TargetType="{x:Type telerik:RadButton}">
                <Setter Property="MaterialControls:MaterialAssist.MouseOverBrush" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.MouseOverBrush}}"/>
                <Setter Property="MaterialControls:MaterialAssist.PressedBrush" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.PressedBrush}}"/>
                <Setter Property="MaterialControls:MaterialAssist.FocusBrush" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.AccentFocusedBrush}}"/>
                <Setter Property="FontFamily" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.FontFamily}}"/>
                <Setter Property="FontSize" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.FontSize}}"/>
                <Setter Property="Foreground" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.MarkerBrush}}"/>
                <Setter Property="Background" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.MainBrush}}"/>
                <Setter Property="BorderBrush" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.MainBrush}}"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="Padding" Value="5"/>
                <Setter Property="CornerRadius" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.CornerRadius}}"/>
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="UseLayoutRounding" Value="True"/>
                <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                <Setter Property="HorizontalContentAlignment" Value="Center"/>
                <Setter Property="VerticalContentAlignment" Value="Center"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type telerik:RadButton}">
                            <Grid>
                                <Border x:Name="BorderVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding CornerRadius}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                <Border x:Name="FocusVisual" BorderBrush="{TemplateBinding MaterialControls:MaterialAssist.FocusBrush}" BorderThickness="{DynamicResource {x:Static telerik:FluentResourceKey.FocusThickness}}" CornerRadius="{TemplateBinding CornerRadius}" IsHitTestVisible="False" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="Collapsed"/>
                                <MaterialControls:FluentControl BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}" HorizontalContentAlignment="Stretch" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalContentAlignment="Stretch">
                                    <ContentPresenter x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" TextElement.Foreground="{TemplateBinding Foreground}" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                </MaterialControls:FluentControl>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <MultiTrigger>
                                    <MultiTrigger.Conditions>
                                        <Condition Property="IsBackgroundVisible" Value="False"/>
                                        <Condition Property="IsEnabled" Value="True"/>
                                        <Condition Property="IsMouseOver" Value="False"/>
                                    </MultiTrigger.Conditions>
                                    <Setter Property="Background" Value="Transparent"/>
                                    <Setter Property="BorderBrush" Value="Transparent"/>
                                </MultiTrigger>
                                <MultiTrigger>
                                    <MultiTrigger.Conditions>
                                        <Condition Property="IsEnabled" Value="True"/>
                                        <Condition Property="IsFocused" Value="True"/>
                                        <Condition Property="IsPressed" Value="False"/>
                                        <Condition Property="IsMouseOver" Value="False"/>
                                    </MultiTrigger.Conditions>
                                    <Setter Property="Visibility" TargetName="FocusVisual" Value="Visible"/>
                                </MultiTrigger>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="BorderVisual" Value="{Binding (MaterialControls:MaterialAssist.MouseOverBrush), Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                    <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{Binding (MaterialControls:MaterialAssist.MouseOverBrush), Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                </Trigger>
                                <Trigger Property="IsPressed" Value="True">
                                    <Setter Property="Background" TargetName="BorderVisual" Value="{Binding (MaterialControls:MaterialAssist.PressedBrush), Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                    <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{Binding (MaterialControls:MaterialAssist.PressedBrush), Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="False">
                                    <Setter Property="Opacity" TargetName="Content" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.DisabledOpacity}}"/>
                                    <Setter Property="Background" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.AlternativeBrush}}"/>
                                    <Setter Property="BorderBrush" Value="{telerik:FluentResource ResourceKey={x:Static telerik:FluentResourceKey.AlternativeBrush}}"/>
                                </Trigger>
                                <MultiTrigger>
                                    <MultiTrigger.Conditions>
                                        <Condition Property="IsEnabled" Value="False"/>
                                        <Condition Property="IsFocused" Value="True"/>
                                    </MultiTrigger.Conditions>
                                    <Setter Property="Visibility" TargetName="FocusVisual" Value="Collapsed"/>
                                </MultiTrigger>
                                <MultiTrigger>
                                    <MultiTrigger.Conditions>
                                        <Condition Property="IsEnabled" Value="False"/>
                                        <Condition Property="IsBackgroundVisible" Value="False"/>
                                    </MultiTrigger.Conditions>
                                    <Setter Property="Background" Value="Transparent"/>
                                    <Setter Property="BorderBrush" Value="Transparent"/>
                                </MultiTrigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Style.BasedOn>
    </Style>

Can someone please help me?

 

Regards

 

Ricardo
Top achievements
Rank 1
 answered on 06 Jun 2018
2 answers
110 views

Hello

Im using OpenStreetMap provider  and suddenly map is not loading correctly piece of map

Picture attached

thank you

Robert
Top achievements
Rank 1
 answered on 06 Jun 2018
1 answer
106 views

Hi,

I've been having trouble with shape's connectors. While you drag the connection and try to créate a new connection in another's shape connector it is really hard to hover over the connector and see it change its color to blue "créate connection". 

Is there any way we can change how quickly or how big is the connectors área in order to make this easier for the user?

 

Here you can se a video of what ive said

https://www.dropbox.com/s/9ww0r85ype60p51/x112%20-%20Pall-E%2004_06_2018%209_24_01.mp4?dl=0

Thanks in advance!

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jun 2018
1 answer
179 views

Good time of day.

We have a problem. When we creating RadDocument via RadRichTextBox, it's look great, but when we trying to print it, bottom margin is not great at all, it's at least three times greater, than on print preview. Even if we make PageMargin and FooterBottomMargin equals to 0.

In attached files you can see what we have in RichTextBox and in printed version...

VITALY
Top achievements
Rank 1
 answered on 05 Jun 2018
4 answers
305 views

Hi,

 

How can I set row height in ganttview?

 

Best Regards

Kourosh

Vladimir Stoyanov
Telerik team
 answered on 05 Jun 2018
10 answers
453 views
I have an application that dynamically hides/shows properties based on customization.  I'm relying on groups to categorize everything.  When I refresh the control, by making a property visible/hidden or adding a property, all the groups I have collapsed reset expanded.  Is this a bug?  Can I also set group collapsed/expanded from code?

Thanks!

(Image attached: all that should change is in the yellow highlights.  I click a checkbox and add new fields.  In the lower image, all the groups suddenly expand when the form is refreshed.
Stefan
Telerik team
 answered on 05 Jun 2018
7 answers
392 views

In RadRichTextBox, if I input the chinese punctuation , for example “,”, it just shows as a space
but if I copy the chinese punctuation from other place ,then paste it,  it shows the correct punctuation 
see the attached file.

 

besides ,if i input \ then input chinese punction, the program interrupted and exit.

so, how to solve these problems?

 

Boby
Telerik team
 answered on 05 Jun 2018
2 answers
1.1K+ views

Hi,

I need to know if there's any way to validate empty radwatermark text box when the there's an empty string in the textbox. If the radwatermarktextbox is empty I need to get the red border and show a display that textbox is empty before adding the entries of these text box to gridview. 

Babitha
Top achievements
Rank 1
 answered on 05 Jun 2018
1 answer
208 views

I followed the Custom Filtering Control in the GridView.

<telerik:RadGridView Name="radGridView" AutoGenerateColumns="False">
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name" HeaderCellStyle="{StaticResource MyStyle}"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name" HeaderCellStyle="{StaticResource MyStyle}"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding HireDate}" Header="Hire Date " HeaderCellStyle="{StaticResource MyStyle}">
      <telerik:GridViewDataColumn.FilteringControl>
        <local:FromDateToDateFilterControl FromDate="1/1/1990" ToDate="1/1/1995"/>
      </telerik:GridViewDataColumn.FilteringControl>
    </telerik:GridViewDataColumn>
  </telerik:RadGridView.Columns>
</telerik:RadGridView>

Also I set the style as

<Style x:Key="MyStyle" TargetType="telerik:GridViewHeaderCell">
                      <Setter Property="Foreground" Value="Black" />
                      <Setter Property="Template" Value="{...}" />
                </Style>

But I found the headers are not showing.

I saw the Template contains

<ContentControl x:Name="ContentPresenter" Contemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}"  >

I found the content caused the problem. If I use the hard coded content then I can see the headers.

Many thanks for code help.

Trump
Top achievements
Rank 1
 answered on 04 Jun 2018
3 answers
87 views

Hi Telerik,

With search as you type, if I type:

Bob Smith

It will currently return any rows that contain BOB or SMITH.  I want to change it so that it will only return rows that contain BOB and SMITH.

How do I do that?

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