Sorry, @Cole Xia (Shanghai Wicresoft Co,.Ltd.) , but you just lost me completely. I've done some basic custom rendering, but nothing like this. I apologize for acting like such a newby. I'm actually fairly good at Xamarin app creation as a whole and have several in the stores...
So, CustomPage overides Page... and then what do I do with CustomTabbedPage in the shared Project and CustomTabbedPageRenderer in the UWP project? CustomTabbedPage overrides TabbedPage... and that is a Page, not a CustomPage. Also, Do I need a CustomPageRenderer in the UWP project, and what would it do? Thanks so much for all of the time you've given me.
class CustomPage : Page
{
public CustomPage()
{
FaIconBrush = new SolidColorBrush((Color)Application.Current.Resources["FaIconColor"]);
}
public static readonly BindableProperty FontIconProperty =
BindableProperty.Create(propertyName: "FaIconBrush",
returnType: typeof(SolidColorBrush),
declaringType: typeof(CustomPage),
defaultBindingMode: BindingMode.OneWay,
propertyChanged: HandlePropertyChanged);
public SolidColorBrush FaIconBrush
{
get
{
return (SolidColorBrush)base.GetValue(FontIconProperty);
}
set
{
if (this.FaIconBrush != value)
base.SetValue(FontIconProperty, value);
}
}
private static void HandlePropertyChanged(
BindableObject bindable, object oldValue, object newValue)
{
CustomPage targetView;
targetView = (CustomPage)bindable;
if (targetView != null)
targetView.FaIconBrush = (SolidColorBrush)newValue;
}
}