Telerik Forums
UI for WPF Forum
1 answer
1.2K+ views
Hi,
How to make the RadWindow flash in taskbar?
One of the popular chatting programms does that - when you get a message, it's taskbar representation turns blue. Is it possible to do the same with a RadWindow?
What I've tried so far:
first I've made the window to appear in the taskbar by adding this to xaml:
navigation:RadWindowInteropHelper.ShowInTaskbar="True"

Next i tried googling how to do that for a regular wpf window and found something like this:
http://www.jarloo.com/flashing-a-wpf-window/
this compiles nicely but doesnt work in my case even for a wpf window. However, if i use it for a radwindow by using something like this:

public static void FlashWindow(RadWindow control)
        {
            var window = control.ParentOfType<Window>();
            window.FlashWindow();
        }
I get a null pointer exception. (there is no null pointer for regular window, but it doesnt seem to be flashing either)

Anyway, I don't really mind the method, I would just like to be able to make the taskbar window flash (system flash or manual changing of the background color on the taskbar if there is such an option?)
Is it possible with a RadWindow and if so - how to do it?
Thanks.
Kalin
Telerik team
 answered on 13 Jun 2014
3 answers
67 views
Hi Team,

We are using cell templates for the cells inside the RadTreeListView. In .Net 4.5 and with latest telerik package CUIT is not able to navigate to the controls placed inside the cell template where as in .Net 4.0 we were able to automate actions on it using CUIT.

Following is the sample xaml file code:
<Window x:Class="MainWindow"
             xmlns:local="clr-namespace:WpfApplication1"
     Height="350" Width="525" Title="InterWalmartGraph Cafeteria Grocery Store"
    
    <Window.Resources
        <DataTemplate x:Key="ReadonlyTextCellTemplate"
            <DockPanel Margin="1"
                <TextBlock Text="{Binding Count}"/> 
                <Button Content="{Binding Name}" /> 
            </DockPanel
        </DataTemplate
    </Window.Resources>      
        
    <Grid x:Name="LayoutRoot"
        <telerik:RadTreeListView x:Name="radTreeListView"
                            AutoGenerateColumns="False"
            <telerik:RadTreeListView.ChildTableDefinitions
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" /> 
            </telerik:RadTreeListView.ChildTableDefinitions
            <telerik:RadTreeListView.Columns
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                    Header="Name" /> 
                <telerik:GridViewDataColumn Header="Count" CellTemplate="{StaticResource ReadonlyTextCellTemplate}" /> 
            </telerik:RadTreeListView.Columns
        </telerik:RadTreeListView>   
    </Grid>      
</Window>

Regards,
Sirisha
Yordanka
Telerik team
 answered on 13 Jun 2014
1 answer
131 views
Hi,

I have one application in which I am showing data availability by date wise on Rad Timeline but I am using .Net Framework Version 3.5 controls. I want add the thumb in it. I tried to explore Rad Timeline but could not able to add thumb on it. Actually when timeline is zoomed in then it is very difficult to check all dates by scrolling through scroll bar so I want to add thumb in it so user can easily scroll the timeline using mouse and dragging it in left-right either direction like scrolling through mail on smartphone. How to achieve this behavior with .Net Framework 3.5 Rad Timeline Control.
Pavel R. Pavlov
Telerik team
 answered on 13 Jun 2014
2 answers
157 views
Hello!

I have noticed that when I have only one of my items expanded and the rest of them collapsed in my radpanelbar, the collapsed items all group/align at the bottom which creates a great deal of empty space between them and the expanded item (see screenshot). I was wondering if there was any way to align them upwards instead, so that they would start right after the expanded item? I have tried the following but it seems that setting

<Setter Property="VerticalAlignment" Value="Top"/>

in the style for the menu item does not help.

All the styling code is here:

<Style TargetType="telerik:RadPanelBarItem" x:Key="LeftMenuSubItemStyle">
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="FontWeight"  Value="Normal"/>
                    <Setter Property="Opacity"  Value="0.70"/>
                </Trigger>
 
                <Trigger Property="IsSelected" Value="True">
                    <Setter Property="FontWeight"  Value="Bold"/>                   
                </Trigger>
            </Style.Triggers>
            <Setter Property="IsSelected" Value="{Binding IsCurrent, Mode=TwoWay}" />
            <Setter Property="IsEnabled" Value="{Binding IsNavigationEnabled, Mode=TwoWay}" />
        </Style>
 
        <Style TargetType="telerik:RadPanelBarItem" x:Key="LeftMenuMainItemStyle">
             
            <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
            <Setter Property="VerticalAlignment" Value="Top"/>
        </Style>
 
 
        <!--Data template for the DescriptiveSubMenuItem object-->
        <HierarchicalDataTemplate DataType="{x:Type domain:DescriptiveSubMenuItem}">
            <Grid Margin="15,0,0,0">
               <TextBlock Text="{Binding Title}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" FontSize="12">
                   <TextBlock.InputBindings>
                        <MouseBinding MouseAction="LeftClick" Command="{ Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.MenuItemClicked}" CommandParameter="{Binding Title}" />
                    </TextBlock.InputBindings>
                </TextBlock>
                <Rectangle HorizontalAlignment="Right" Width="15" Height="15" Visibility="{Binding IsCheckVisible}" Fill="{StaticResource CompleteCheck}" Margin="0,0,10,0">
                    <Rectangle.InputBindings>
                        <MouseBinding MouseAction="LeftClick" Command="{ Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.MenuItemClicked}" CommandParameter="{Binding Title}" />
                    </Rectangle.InputBindings>
            </Rectangle>
            </Grid>
 
        </HierarchicalDataTemplate>
 
        <!--Data template for the DescriptiveMenuItem object-->
        <HierarchicalDataTemplate DataType="{x:Type domain:DescriptiveMenuItem}" ItemsSource="{Binding SubMenuItems}" ItemContainerStyle="{StaticResource LeftMenuSubItemStyle}">
            <Label Content="{Binding Header}" FontSize="16" Margin="0"/>
        </HierarchicalDataTemplate>
    </UserControl.Resources>
    <Grid>
 
        <telerik:RadPanelBar ItemsSource="{Binding ActiveNavigationItems}" ExpandMode="Multiple" ItemContainerStyle="{StaticResource LeftMenuMainItemStyle}">
 
        </telerik:RadPanelBar>
 
    </Grid>

Any suggestions would be greatly appreciated!
Joonatan
Top achievements
Rank 1
 answered on 13 Jun 2014
1 answer
144 views
I'm using a WPF RadSplitButton and I'd like to to some special handling, when the DropDownClosed happens:

If the User presses ESC to close the dropped down content of my RadSplitButton, I'd like to do some undo operations. How do I get the Key that has caused the RadSplitBotton to close it's DropDown section?

In the Event Handler

        private void RadSplitButton_DropDownClosed(object sender, RoutedEventArgs e)
        {}

there is only RoutedEventArgs, which does not contain the pressed Button.

Martin Ivanov
Telerik team
 answered on 13 Jun 2014
1 answer
130 views
Hi there,

we have a converter in place hooked up to the ElementExporting event so our CSV export is properly converted.

Using the XlsxFormatProvider and RadSpreadsheet doesn't trigger that event to be fired so our Excel files are not converted.
How can exported values be customized in the RadSpreadsheet context?

Can we somehow use the Html exported by the RadSpreadsheet ?

Cheers,
Jay
Dimitrina
Telerik team
 answered on 13 Jun 2014
1 answer
97 views
Hello, 

I need to do zoom in background image with the items (rectangles and ellipses) without that these moving the site in relation at the image. It's possible to do this?

Thanks, 

Maite.
Petar Mladenov
Telerik team
 answered on 13 Jun 2014
7 answers
185 views
I can't for the life of me get anything to show up in either the designer or at runtime. It's just blank, as if the control is not there. I'm using 2014.1.224.45 with implicit themes.
Martin Ivanov
Telerik team
 answered on 12 Jun 2014
1 answer
289 views
Hello.

How can I change size of font of names of properties in RadPropertyGrid? I have AutoGeneratePropertyDefinitions="True", so everything generates automatic. Furthermore I would like to do it in xaml file if it is possible. 

I have just tried to set FontSize for the RadPropertyGrid and it didn't work. Moreover I think there is different sizes for different text fields in RadPropertyGrid.

I have attached a picture of what I am talking about.

Thank you for help,
Ilya.
Yoan
Telerik team
 answered on 12 Jun 2014
2 answers
150 views
Hi there,

We're trying to get grouped RadGridView content exported but neither the CSV Export (either via Export() or ToCsv()) nor Excel Export via RadSpreadSheet and XlsxFormatProvider is giving us the grouping we have in the UI.

Specifically we're missing the group headers we can see in the UI -
With the appropriate flag we can have the group footers in the CSV.. but that's not giving us the headings we're looking for (the ones that can be seen in the UI).

How can we export the current grouping to CSV and Excel whilst preserving the grouping headers?

Thanks,
Jay
Dimitrina
Telerik team
 answered on 12 Jun 2014
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
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
SplashScreen
Rating
Accessibility
Callout
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?