コード例 #1
0
        /// <summary>
        /// Handles property changes for the <see cref="ItemTemplate" /> bindable property.
        /// </summary>
        private static void ItemTemplateChanged(BindableObject sender, object?oldValue, object?newValue)
        {
            BookmarksView bookmarkView = (BookmarksView)sender;

            if (bookmarkView._presentingView != null)
            {
                bookmarkView._presentingView.ItemTemplate = newValue as DataTemplate;
            }
        }
コード例 #2
0
        /// <summary>
        /// Handles property changes for the <see cref="GeoView" /> bindable property.
        /// </summary>
        private static void GeoViewChanged(BindableObject sender, object?oldValue, object?newValue)
        {
            BookmarksView bookmarkView = (BookmarksView)sender;

            bookmarkView._dataSource.SetGeoView(newValue as GeoView);
        }