This is a migrated thread and some comments may be shown as answers.

RadTileViewItem Maximized programatically using MVVM

2 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rodolfo
Top achievements
Rank 1
Rodolfo asked on 22 Aug 2017, 10:42 AM

Hello I will appreciate your help with the Next I need to Maximized RadTileViewItem Programatically, But it is not running 

 

My XAML

<telerik:RadTileViewItem x:Name="rdTileViewMain" Header="Main" RestoredHeight="100" MinimizedHeight="200" RestoredWidth="80" Style="{StaticResource RadTileViewItemStyle}" BorderBrush="{x:Null}" SnapsToDevicePixels="True" Foreground="#FFFDFBFB" TileState="{Binding TileStaterdTileViewMain}">

 

Then in my MainWindowViewModel:

     private TileViewItemState _TileStaterdTileViewMain;

     public TileViewItemState TileStaterdTileViewMain
        {
            get {
                return _TileStaterdTileViewMain;
            }
            set {
                _TileStaterdTileViewMain = value;
                PropertyChanged(this, new PropertyChangedEventArgs("TileStaterdTileViewMain"));
            }

        }

 

   private void RaiseUpUcShopOrdersButtonControl(object parameter)
        {
            TileStaterdTileViewMain = Telerik.Windows.Controls.TileViewItemState.Maximized;

}

 

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 Aug 2017, 08:24 AM
Hi Rodolfo,

Thank you for contacting us.

I am not sure about your implementation but I think the reason behind this is that you haven't set the Mode binding in XAML. In your case, you have set it to .
<telerik:RadTileViewItem x:Name="rdTileViewMain" Header="Main" RestoredHeight="100" MinimizedHeight="200" RestoredWidth="80" Style="{StaticResource RadTileViewItemStyle}" BorderBrush="{x:Null}" SnapsToDevicePixels="True" Foreground="#FFFDFBFB" TileState="{Binding TileStaterdTileViewMain,,Mode=TwoWay}">

Give it a try and let me know if it works in your case.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Rodolfo
Top achievements
Rank 1
answered on 25 Aug 2017, 09:25 AM

Dinko Thanks so Much!! Now is working as you say I was ommitting the Mode=TwoWay

 

Cheers!

Tags
General Discussions
Asked by
Rodolfo
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Rodolfo
Top achievements
Rank 1
Share this question
or