This project is read-only.

ColorGallery.cs bug!!!!

Dec 8, 2010 at 7:10 AM

ColorGallery.cs line 489:

should add a bool templateApplyed var.

bool templateApplyed = false;

private void UpdateSelectedColor(Color? color)        {          

 if (!isSelectionChanged && IsLoaded && templateApplyed)            {



line 709:

public override void OnApplyTemplate(){


templateApplyed = true;



why we need do this?

because when we do SelectedColor="{Binding Path=ValueTextColor, Mode=TwoWay}" in xaml

the gallary is loaded but because it isn't dropdown  and shown,(not showed), the Template is not applied.

so, the noColorButton.... is null, but we using data binding, when we update the selected color error occur!!

Dec 9, 2010 at 11:10 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.