<Controls:RadGridView ShowGroupPanel="False" Grid.Row="1" x:Name="radGridView" DockPanel.Dock="Top" DataContext="{Binding}" d:DataContext="{d:DesignData Source=../../DesignData/SampleBinderCollection.xaml}" ItemsSource="{Binding}" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding DataContext.SelectedBinder,Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Window}}" IsReadOnly="True" Tag="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=DataContext}" FrozenColumnCount="5" ShowColumnFooters="True" DataContextChanged="RadGridView_OnDataContextChanged"> <Controls1:RadContextMenu.ContextMenu> <Controls1:RadContextMenu> <Controls1:RadMenuItem Header="Go to this invoice/transaction" Command="{Binding DataContext.OpenTransactionWindowFromInvoiceCommand, RelativeSource={RelativeSource AncestorType=Window}}" Click="RadMenuItem_Click"> <Controls1:RadMenuItem.Icon> <Image Source="/Cornhouse;component/Images/NewCardHS.png" Width="16" Height="16" /> </Controls1:RadMenuItem.Icon> </Controls1:RadMenuItem> </Controls1:RadContextMenu> </Controls1:RadContextMenu.ContextMenu>etc ....The viemodel is simplypublic class MyViewModel:INotifyPropertyChanged{ public ICommand OpenTransactionWindowFromInvoiceCommand {get etc} public ObservableCollection<Foo> Collection
{
get{return _collection;}
set{
_collection=value;
RaisePropertyChanged("Collection");
} }
I would really appreciate some help with this.
Many thanks
Jeremy<DataTemplate x:Key="CustomToolTipDataTemplate"> <Border BorderBrush="Black" BorderThickness="2" CornerRadius="6" Background="#FDF2D4" MaxWidth="300"> <Grid Margin="2"> <Grid.RowDefinitions> <RowDefinition Height="14" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" FontWeight="Bold" FontFamily="Trebuchet MS" FontSize="12" Text="{Binding Converter={StaticResource ExtendedDataConverter}, ConverterParameter='NAME', StringFormat=County: {0}}" /> <TextBlock Grid.Row="1" FontWeight="Bold" FontFamily="Trebuchet MS" FontSize="10" Text="{Binding Converter={StaticResource ExtendedDataConverter}, ConverterParameter='PAT_EST', StringFormat='Paternity Establishment Percentage: {0:0.##}'}" /> <TextBlock Grid.Row="2" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Cases with Orders: 87" /> <TextBlock Grid.Row="3" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Current Collected: 91" /> <TextBlock Grid.Row="4" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Cases Paying Arrears: 84" /> <TextBlock Grid.Row="5" FontFamily="Trebuchet MS" FontSize="10" Text="Medical Support Ratio: 74" /> <TextBlock Grid.Row="6" FontFamily="Trebuchet MS" FontSize="10" Text="Cost Effectiveness Ratio: 96" /> </Grid> </Border></DataTemplate><ToolTipService.ToolTip> <ToolTip Template="{StaticResource ToolTipTemplateXX}" HasDropShadow="True"> <ToolTip.Content> <TextBlock Text="This is a test" FontFamily="Georgia" FontSize="14" TextWrapping="Wrap"/> </ToolTip.Content> </ToolTip></ToolTipService.ToolTip><ControlTemplate x:Key="ToolTipTemplateXX"> <Border BorderBrush="Black" BorderThickness="2" CornerRadius="6" Background="#FDF2D4" MaxWidth="300"> <Grid Margin="2"> <Grid.RowDefinitions> <RowDefinition Height="14" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> <RowDefinition Height="12" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" FontWeight="Bold" FontFamily="Trebuchet MS" FontSize="12" Text="County: Centre" /> <TextBlock Grid.Row="1" FontWeight="Bold" FontFamily="Trebuchet MS" FontSize="10" Text="Paternity Establishment Percentage: 98" /> <TextBlock Grid.Row="2" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Cases with Orders: 87" /> <TextBlock Grid.Row="3" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Current Collected: 91" /> <TextBlock Grid.Row="4" FontFamily="Trebuchet MS" FontSize="10" Text="Percent of Cases Paying Arrears: 84" /> <TextBlock Grid.Row="5" FontFamily="Trebuchet MS" FontSize="10" Text="Medical Support Ratio: 74" /> <TextBlock Grid.Row="6" FontFamily="Trebuchet MS" FontSize="10" Text="Cost Effectiveness Ratio: 96" /> </Grid> </Border></ControlTemplate>Hi,
I am trying to automate the controls in subject. The site below tells me UI automation for these controls are not supported for wpf applications. Is there an update/recommended solution regarding the same that I can leverage for my UI automation? It may save me a lot of time :)!
http://www.telerik.com/help/silverlight/ui_automation_support.html
More information on my work around and where I am stuck:
Please see attached image for reference. Using UI Spy I can actually see the window and all of its content for the “date” control. The automation ids are missing, but at least I see the “window” control exposed and the ‘text’ names that I can actually use in my helper function to get/set a specified date.
However, the clock portion of it is hidden from UI spy. I don’t know if this is another window control or something that is just embedded in the date window? Any ideas on how I can access the clock window?
This is not exposed at all in UI Spy L! I am thinking of a work around that I have not yet tested but before I invest time in it, I was wondering if you have a recommended solution that I can use?
Thank you for your help and time,
Harleen
Hi,
I am trying to automate the controls in subject. The site below tells me UI automation for these controls are not supported for wpf applications. Is there an update/recommended solution regarding the same that I can leverage for my UI automation? It may save me a lot of time :)!
http://www.telerik.com/help/silverlight/ui_automation_support.html
More information on my work around and where I am stuck:
Please see attached image for reference. Using UI Spy I can actually see the window and all of its content for the “date” control. The automation ids are missing, but at least I see the “window” control exposed and the ‘text’ names that I can actually use in my helper function to get/set a specified date.
However, the clock portion of it is hidden from UI spy. I don’t know if this is another window control or something that is just embedded in the date window? Any ideas on how I can access the clock window?
This is not exposed at all in UI Spy L! I am thinking of a work around that I have not yet tested but before I invest time in it, I was wondering if you have a recommended solution that I can use?
Thank you for your help and time,
Harleen
| <telerik:RadGridView x:Name="radGridViewNotes" |
| AutoGenerateColumns="False" |
| ColumnsWidthMode="Fill" |
| Grid.Row="2" |
| IsReadOnly="True" DataLoaded="RadGridViewNotes_DataLoaded" |
| telerik:StyleManager.Theme="Office_Black"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn Header="Subject" DataMemberPath="Subject" /> |
| <telerik:GridViewDataColumn Header="Creation Date" DataMemberPath="DateAdded" /> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |