Telerik Forums
UI for WPF Forum
1 answer
163 views

As a newbie to WPF I've been struggled with triggers and animations for a while. 

This is my element in the information layer:

<telerik:InformationLayer.ItemTemplate>
<DataTemplate>
<Grid x:Name="TopLevelGrid" Width="Auto" Height="Auto"
telerik:MapLayer.Location="{Binding Location}" telerik:MapLayer.BaseZoomLevel="9">
<ToolTipService.ToolTip><ToolTip><ToolTip.Content>
...
</ToolTip.Content></ToolTip></ToolTipService.ToolTip>
<Ellipse Name="myEllipse" Width="20" Height="20"
Stroke="{Binding Stroke}" StrokeThickness="3"StrokeDashArray="2"
Fill="{Binding Fill}" Style="{StaticResource myStyle}" >
<telerik:MapLayer.HotSpot><telerik:HotSpot X="0.5" Y="0.5" /></telerik:MapLayer.HotSpot>
</Ellipse>
</Grid>
</DataTemplate>
</telerik:InformationLayer.ItemTemplate>

The problem is that I want a property (or event) in my custom class for the element to trigger the animation. So far I've tried to do it both in XAML and in code without success.

I would be grateful if you could give me a hint or two of how to solve the issue.

Regards

Robert

Warnestam
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
158 views
I have been able to style all of my header columns and the header row, but the Left Gripper all the way to the left of the grid is still using the Office Black theme...what Property controls the LeftGripper Column Header?
Thanks
Vanya Pavlova
Telerik team
 answered on 04 Aug 2011
1 answer
148 views
Hey Telerik,

I'd like to have a reference to the resource column the AppointmentItem is shown in.
This is very useful to change the styling of the appointment based on the column it is shown in.
Since now there is only a reference to the Appointment ViewModel this is not possible.

In my current solution I add a "Resource" dependency property to the Appointment Data Context Proxy, and use reflection on the
groupheader's (GroupKey is the resource) AppointmentItems to set the extra property. However this is done in the a derivative class of the AppointmentsPanel and during it's arrangeoverride, needles to say it degrades performance.

Any suggestions?

Greetz,
Nico
Valeri Hristov
Telerik team
 answered on 04 Aug 2011
1 answer
148 views
Hi,

I have an app that loads any database and presents the data for the tables in a GridView. I do not define columns in the XAML since I load any database. I'd like to be able to determine when a column from the database contains images and display the images in the grid. Can you tell me how to do this? I see examples in the forms and KB but they all seem to create the columns in XAML since they know the database schema ahead of time.

Thanks,

Gord
Dimitrina
Telerik team
 answered on 04 Aug 2011
2 answers
159 views
Hi all
I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak

<Window x:Class="RadControlsWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525" telerik:RadDragAndDropManager.DragQuery="Window_DragQuery">
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
            <telerik:RadGallery>
            <telerik:RadGalleryItem telerik:RadDragAndDropManager.AllowDrag="True" Image="/RadControlsWpfApp1;component/PDF-04.png"></telerik:RadGalleryItem>
        </telerik:RadGallery>
        <Image Source="/RadControlsWpfApp1;component/PDF-04.png" Grid.Row="1" telerik:RadDragAndDropManager.AllowDrag="True"/>
    </Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
        {
            MessageBox.Show("draged");
        }
    }
}

Thanks
Deepak
deepak
Top achievements
Rank 1
 answered on 04 Aug 2011
2 answers
136 views
Hello! I'm working with the DataForm and I have what I would guess is a simple question. I'm using a DataForm to edit a single item and I'd like to bind the Commit button to an ICommand on my ViewModel. How do I go about doing that?

-Greg
Greg
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
679 views
Is there any easy way to ensure at least one Tab is selected? My tabs are dynamic, and hide and show themselves based on stuff. I want the first tab to be selected, if no tabs are selected... preferably without lots of work =/
Vladislav
Telerik team
 answered on 04 Aug 2011
0 answers
127 views
I just posted a new solution for implementing drag-drop between ListBox and other controls, and in case you are using WPF - other applications. You can find more information and a sample application here:
http://www.telerik.com/community/forums/silverlight/scheduleview/listbox-drag-drop-behavior.aspx

Best regards,
Valeri Hristov
Telerik
Valeri Hristov
Top achievements
Rank 1
 asked on 04 Aug 2011
0 answers
166 views
I just posted a new solution for implementing drag-drop between ListBox and other controls, and in case you are using WPF - other applications. You can find more information and a sample application here:
http://www.telerik.com/community/forums/silverlight/scheduleview/listbox-drag-drop-behavior.aspx

Best regards,
Valeri Hristov
Telerik
Valeri Hristov
Top achievements
Rank 1
 asked on 04 Aug 2011
1 answer
173 views
How do i find the selected timeslot or the clicked timeslot in the new radscheduleview control. I saw that i would be able to invoke the dialog and cancel it from showing and I get Occurence details there. However, there doesn't seem to be a straightforward way to get the selected timeslot. Could you please guide me in how I could get the selected slot.

Thanks
Bala
George
Telerik team
 answered on 04 Aug 2011
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?