or
I have a view that has a viewmodel as its datacontext, The question I have is that I need to know the height and width of the view, trying to do mvvm. What is the best way to let the viewmodel know the Height and Width of a view?
Is multibinding using a converter the best way or is there another?
hello,
I have an empty parent window, in runtime i add the child user control to it.
i want to resize my parent window according to the different child contents, i have used SizeToContent but it does not worked for me.
i add this child user control in a GridControl of my Parent window. Is it possible to resize main window according to child user control
<Window x:Class="WPF_RadDateTimePicker.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" xmlns:local="clr-namespace:WPF_RadDateTimePicker" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <Style x:Key="calendarStyle" TargetType="telerik:RadCalendar"> <Setter Property="AreWeekNumbersVisible" Value="False" /> </Style> </Window.Resources> <StackPanel> <telerik:RadDateTimePicker Width="100" VerticalAlignment="Center" CalendarStyle="{StaticResource calendarStyle}" telerik:StyleManager.Theme="Expression_Dark"/> </StackPanel> </Window>
As soon as I reffer to the static calendarStyle the Expression_Dark theme is no longer correctly applied to the Calendar control
otherwise works fine. How can I fix this?? ( I using 2010 Q3 version of the product)