Telerik Forums
UI for WPF Forum
2 answers
44 views
HI!

Error 110 '/Telerik.Windows.Controls.Input;component/Themes/GenericExpressionDark.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. '/Telerik.Windows.Controls.Input;component/themes/Expression/Dark/ComboBox.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '7' Position '230'.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls.Input;component/Themes/GenericExpressionDark.xaml'.  Error at object 'System.Windows.ResourceDictionary'. D:\Development\Merged Modules\2011.02.10\TabsFMWpfXbapReactiveMaintenance\TabsFMWpfXbapReactiveMaintenance\PMJobsExtPage.xaml 4225 33 TabsFMWpfXbapReactiveMaintenance

can any please let me know why I'm getting this design error.

I'm using VS2008 sp1, 3.5 sp1 win 7 64bit. 

My XAML
 

 

 

 

<Window x:Class="TelerikDateSelectCal.Window1"
    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"        
    xmlns:local="clr-namespace:TelerikDateSelectCal"
    Title="Window1" Height="300" Width="552"
    xml:lang="en-GB">
    <Window.Resources>
          
        <local:CustomTemplateSelector x:Key="WorksDiaryDayTemplateSelector">
              
            <local:CustomTemplateSelector.SelectedRed>
                <DataTemplate>
                    <Border Background="Red" Width="20">
                        <TextBox Background="Transparent" Text="{Binding Text}"
                        BorderThickness="0"/>
                    </Border>
                </DataTemplate>
            </local:CustomTemplateSelector.SelectedRed>
  
            <local:CustomTemplateSelector.SelectedGreen>
                <DataTemplate>
                    <Border Background="Green" Width="20">
                        <TextBox Background="Transparent" Text="{Binding Text}"
                        BorderThickness="0"/>
                    </Border>
                </DataTemplate>
            </local:CustomTemplateSelector.SelectedGreen>
  
            <local:CustomTemplateSelector.SelectedBlue>
                <DataTemplate>
                    <Border Background="Blue" Width="20">
                        <TextBox Background="Transparent" Text="{Binding Text}"
                        BorderThickness="0"/>
                    </Border>
                </DataTemplate>
            </local:CustomTemplateSelector.SelectedBlue>
  
            <local:CustomTemplateSelector.SelectedYellow>
                <DataTemplate>
                    <Border Background="Yellow" Width="20">
                        <TextBox Background="Transparent" Text="{Binding Text}"
                        BorderThickness="0"/>
                    </Border>
                </DataTemplate>
            </local:CustomTemplateSelector.SelectedYellow>
  
            <local:CustomTemplateSelector.SelectedBlank>
                <DataTemplate x:Name="Test">
                        <TextBox Background="Transparent" Text="{Binding Text}"
                        BorderThickness="0" Width="20"/>
                </DataTemplate>
                </local:CustomTemplateSelector.SelectedBlank>
        </local:CustomTemplateSelector>
  
  
  
    </Window.Resources>
      
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="20*"/>
        </Grid.ColumnDefinitions>
          
        <Grid Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="20*"/>
            </Grid.ColumnDefinitions>
  
            <StackPanel Grid.Column="0">
                <Button Name="btnRed" Width="20" Height="20" Margin="3" Background="Red" Click="SetComboOpen"/>
                <Button Name="btnGreen" Width="20" Height="20" Margin="3" Background="Green" Click="SetComboOpen"/>
                <Button Name="btnBlue" Width="20" Height="20" Margin="3" Background="Blue" Click="SetComboOpen"/>
                <Button Name="btnYellow" Width="20" Height="20" Margin="3" Background="Yellow" Click="SetComboOpen"/>
                  
                <TextBox Margin="4" Name="txt1" Height="50" BorderBrush="BlueViolet" TextWrapping="Wrap"
                         Width="150"></TextBox>
                  
                <telerik:RadGridView>
                      
                </telerik:RadGridView>
                  
            </StackPanel>
              
            <StackPanel Grid.Column="1">
                <ComboBox Name="cmbRed" Width="175" Margin="2" DropDownClosed="SetCacBackColor" >
                    <ComboBoxItem>Red</ComboBoxItem>
                </ComboBox>
                <ComboBox Name="cmbGreen" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                    <ComboBoxItem>Green</ComboBoxItem>
                </ComboBox>
                <ComboBox Name="cmbBlue" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                    <ComboBoxItem>Blue</ComboBoxItem>
                </ComboBox>
                <ComboBox Name="cmbYellow" Width="175" Margin="2" DropDownClosed="SetCacBackColor">
                    <ComboBoxItem>Yellow</ComboBoxItem>
                </ComboBox>
            </StackPanel>
        </Grid>
  
        <telerik:RadCalendar x:Name="calendar" Grid.Column="1"
                Margin="2" SelectionMode="Single"
                IsTodayHighlighted="True" ViewsHeaderVisibility="Collapsed" Culture="en-GB"
                Rows="1" Columns="1" 
                SelectionChanged="calendar_SelectionChanged"
                DayTemplateSelector="{StaticResource WorksDiaryDayTemplateSelector}"/>
    </Grid>
</Window>

 

 

 

 

 

 

 

 

Thanks
Rahul Singh
Vanya Pavlova
Telerik team
 answered on 22 Feb 2011
5 answers
163 views
Good day!
Will these be supported in the WPF version? How about in the Silverlight version?

Thank you very much.
Ivailo Karamanolev
Telerik team
 answered on 22 Feb 2011
1 answer
187 views
Hello...
I'm developing Messenger App..
I made chatting window from radpane..
that could be like tabcontrol in radpanegroup.
all chatting window is in raddocking..
anyway I want if some radpane got message than that pane will blink..
i can make blinking taskbar and window using flashwindow..
but i dont know how i can make blink radpane...
please help me...

Pana
Telerik team
 answered on 22 Feb 2011
4 answers
152 views
Hi,

Is there a version available for .net 4?

Thanks,

Adam
Boby
Telerik team
 answered on 22 Feb 2011
1 answer
153 views
I've been trying to get the editor to load a different language for spellcheck, I have the tdf files saved as resources in my assembly.

this is the code:

private void LoadDictionary(string language)
        {
            var res = Properties.Resources.es_ES;
            MemoryStream tdfFileStream = new MemoryStream();
            tdfFileStream.Write(res, 0, res.Length);
            RadDictionary dictionary = new RadDictionary();
            dictionary.Load(tdfFileStream);
            ((DocumentSpellChecker)editor.SpellChecker).AddDictionary(dictionary, CultureInfo.InvariantCulture);
        }

what am I doing wrong?
Boby
Telerik team
 answered on 22 Feb 2011
1 answer
151 views
Hi,

the download functionality of project upgrade wizard is great. But it is useless in our company's environment due to the need to authenticate through proxy. We use basic proxy authentication via username and password. Aftre pressing "Download" a dialog "Get Latest Version" appears stating "error retrieving latest version information." In IE9 the proxy is set. So I need a dialog to enter username/password for this session and/or use Visual Studios credentials I entered for e.g. Webbrowser/Extension Manager etc.

Greetings,
Daniel

Erjan Gavalji
Telerik team
 answered on 21 Feb 2011
2 answers
203 views
In the standard MenuItem control there is an option for InputGestureText. However, RadMenuItem doesn't have this. So what do you do instead?
Mark
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
107 views
Hello Telerik Team,
                               Yes.this is big paragraph but question is simple.I have some doupts in Gridview.In my last project master page contains 4 Business objets.
All are declared as Boolean only.So i am using Rad combo box.The field Names are NeedLoanPrint(Values are Yes\No),NeedDeliveryPrint(Yes\No),Close BS(Yes\No),PrintedType(Dos\Windows).

In my database also these are declared as BIT only.So these details are stored in database as true or false.But i want to display in radgridview the original format only.That means NeedLoanPrint,NeedDeliveryPrint,Close BS column values Yes or No only.
Same time Printed type column values Dos or Windows only.

I know its not possible directly.so i am using Converter.Here i created two converters.one is BooleanToYesNoConverter,another one BooleanToDosWindowsConverter.i have attached all in below.
This is my BooleanToYesNoConverter: 
  
class BooleanToYesNoConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object  parameter,   System.Globalization.CultureInfo culture)
        {
            string returnValue = string.Empty;
            if ((bool)value == true)
            {
                returnValue = "Yes";
                return (string)returnValue;
            }
            else
            {
                returnValue = "No";
                return (string)returnValue;
            }
        }
     public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
}
This is my BooleanToDosWindowsconverter:
  
class BooleanToDosWindowsConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string returnName = string.Empty;
            if ((bool)value == true)
            {
                returnName = "Windows";
                return (string)returnName;
            }
            else
            {
                returnName = "Dos";
                return (string)returnName;
            }
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
}
After Converted  radgridview display nothing in that columns.so i am creating label inside DataTemplate:
<Meenakshi:GridViewDataColumn Header="Need Loan Print" Width="120">
   <Meenakshi:GridViewDataColumn.CellTemplate>
     <DataTemplate>
       <Label Content="{Binding NeedLoanPrint,Converter={StaticResource booleanToYesNoConverter}}"/>
     </DataTemplate>
   </Meenakshi:GridViewDataColumn.CellTemplate>
</Meenakshi:GridViewDataColumn>
if i create above method to all column its display fine.No mistakes.

In my project in future may come more field as Boolean Type.Whenever i won't create DataTemplate in XAML.So i am creating one class called as GridViewLabelColumn.After that i will use easily.
class GridViewLabelColumn : GridViewBoundColumnBase
    {
                public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
        {
            Label button = cell.Content as Label;
            if (button == null)
            {
                button = new Label();
                var valueBinding = new Binding(this.DataMemberBinding.Path.Path)
                {
                    Mode = BindingMode.OneTime,
                    Converter = this.DataMemberBinding.Converter
                };
                button.SetBinding(Button.ContentProperty, valueBinding);
            }
            return button;
        }
}
My XAML will:
<UserControl.Resources>
   <CustomControl:BooleanToYesNoConverter x:Key="booleanToYesNoConverter"/>
   <CustomControl:BooleanToDosWindowsConverter x:Key="booleanToDosWindowsconverter"/>
</UserControl.Resources>
  
<Meenakshi:RadGridView IsReadOnly="True" AutoGenerateColumns="False" Margin="12,411,12,12" Name="rgrdCompanyViewAll" MouseDoubleClick="rgrdCompanyViewAll_MouseDoubleClick">
            <Meenakshi:RadGridView.Columns>
<CustomControl:GridViewLabelColumn DataMemberBinding="{Binding Path=NeedLoanPrint,ElementName=NeedLoanPrint,Converter={StaticResource booleanToYesNoConverter }}" Header="Need Loan Print" Width="120"/>
                <CustomControl:GridViewLabelColumn DataMemberBinding="{Binding Path=NeedDeliveryPrint,ElementName=NeedDeliveryPrint,Converter={StaticResource booleanToYesNoConverter}}" Header="Need Delivery print" Width="120"/>
<CustomControl:GridViewLabelColumn  DataMemberBinding="{Binding Path=CloseBS,ElementName=CloseBS,Converter={StaticResource booleanToYesNoConverter}}" Header="Close BS" Width="120"/>
                <CustomControl:GridViewLabelColumn DataMemberBinding="{Binding Path=PrintedType,ElementName=PrintedType,Converter={StaticResource booleanToDosWindowsconverter}}" Header="Printed Type" Width="120"/>
        </Meenakshi:RadGridView.Col
</Meenakshi:RadGridView>
here is MY QUESTION:
         Everything is display fine.But the values are Changing everyseconds in radGridView.Example Printedtype Column Values originally Dos or Windows only.But it display one row Dos next row No(Its come from another column value).after few seconds Dos will change Yes or No respective their Boolean Value.

NeedloanPrint column values also comes Dos and Windows.Everysecond it change.

where i make mistake here?
               pls give me some suggestion.
Pavel Pavlov
Telerik team
 answered on 21 Feb 2011
4 answers
102 views
Hello,

I have two list boxes that I'm trying to drag content between each other. The dragging works but if I move the mouse too much it causes the carousel to scroll. How do I prevent this? Also, the drag cue items aren't under the mouse they are down and to the right. I took the drag and drop code from the sample code <ApplicationInfo> and in that sample the cue looks fine.

Any ideas?

Cheers,

Brian
Brian Crosby
Top achievements
Rank 1
 answered on 21 Feb 2011
2 answers
184 views
Hi,

I have a GridView with RowDetailsVisibilityMode set to "VisibleWhenSelected" and a RowDetailsTemplate in which I put a DataTemplate with a Grid panel. In this Grid I have several Buttons for row actions.

Whenever I select a line in code and then use ScrollIntoView for the selected Item (which is mostly not in view and at the bottom of the list), the row is indeed scrolled into view. But not the complete row details (which are expanded due to RowDetailsVisibilityMode ); only the "upper" part (the selected line) is visible and not my buttons. They are still down below.

I expect ScrollIntoView brings the complete line including row details into view.

Tested with RadControls 2010.3.1110.40

Greetings,
Daniel
Sergej Mertens
Top achievements
Rank 1
 answered on 21 Feb 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
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
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
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
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?