What I've done:
- Added reference toTelerik.Core.dll
- Added reference to Telerik.UI.Xaml.Input.dll
- Added reference to Telerik.UI.Xaml.Primitives.dll
- Added Telerik.Ui.Xaml.Input/Themes/Generic.xaml to the assets folder and referenced it in app.xaml under ResourceDictionary.MergedDictionaries
- Added Telerik.Ui.Xaml.Primitives/Themes/Generic.xaml the samy way
So the control renders, and when I click on it, the selector control works perfectly. It's the rendering in the non-edit-mode that is problematic.
Suggestions?
8 Answers, 1 is accepted
Although, this approach looks very logical it does not work in the new platform. In Metro, Microsoft have introduced new way of consuming resources by using loosely coupled files.
In particular generic.xaml, is treated as resource and loaded implicitly. It should be placed in relative to the assembly location subfolder with the following structure - [AssemblyName]/Themes/Generic.xaml. For e.g. Chart will look for its generic.xaml in \Telerik.UI.Xaml.Chart\Themes\ folder. Since, this structure is not very straight-forward and trivial we have also created extension SDK to simplify the process (The SDK is installed by default with our installer).
If you have any further issues or questions do not hesitate to contact us.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I've just downloaded and installed the RadControls for Metro, but I can't figure out how to place a DatePicker onto a page.
I can see the ExtensionSDK folder that has been installed along with all the binaries, but in VS2012 on the Tools menu, Extensions and Updates, the RadControls are not listed and I can't find any UI anywhere to get VS2012 to install it.
How do I install these controls and get started?
I have prepared document (will be included in the documentation as well) how to add reference to our Extension SDK.
Please have a look and let us know if it helps. If you have any further issues or questions do not hesitate to contact us.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I tried to add the controls to my toolbox, so went to 'Choose Items...' as normal and browsed to the assembly at C:\Program Files (x86)\Telerik\RadControls for Metro XAML Q1 2012 BETA\Binaries , but that didn't work. Next I tried to add a DatePicker by coding directly into the XAML but got the syntax wrong.
I have since discovered the samples at C:\Program Files (x86)\Telerik\RadControls for Metro XAML Q1 2012 BETA\Demos\Examples which shows how to do it, so I can see how to go forward now. Thanks.
Thanks you your feedback. It will be very helpful as we can extend our documentation and design-time support in the right direction (according to current VS capabilities) to make it easier for our users to get started with our controls.
Regarding the VS toolbox support, we still have some issues, but we are optimistic that we will be able to add our controls for our next release.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
You might want to check our demos solution (that came with our suite, placing shortcut in the desktop) where you can find binding the date picker value example.
Generally, the setup will look like this:
<telerikInput:RadDatePicker Header="Select date" Value="{Binding SelectedDate}"/>where SelectedDate is property of the DataContext provided:
public class SampleData { public DateTime SelectedDate { get; set; } }}If you have further questions do not hesitate to contact us.
Regards,
Tsvyatko
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.