timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

Specifically Rating control not working at one location #173

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi,

I am using Rating control in 3 pages of my project, I have a page where I am using it two times, I does work at one location but not at other. I am binding the same value for both the controls. I don't know what I am missing. :(

I am sharing the xaml code line where this issues is occurring.

I am unable to write xaml here due to some parsing problem in this editor. Please find the attached image.

The same code I have used on the other location in the same page and it is working fine. Please check

rating

ghost commented 11 years ago

I have noticed one thing... I am using this control inside a grid which is initially collapsed and fills data then set to visible, here when I do not collapse the visibility of the grid from starting it , rating control shows value, but in the previous case the when grid is set to visible after filling data, rating control does not show value

timheuer commented 11 years ago

I feel you are describing two different problem: 1- two ratings controls on the same view OR 2-ratings control not showing when it initially starts as collapsed, then moves to visible.

Can you create a sample project to help quickly with investigation?

ghost commented 11 years ago

hi, sorry for ambiguity.. Currently the problem I am facing is option 2.

My Rating control have a parent Grid which is initially hidden, and I call services for the data then fill the data in the grid (there are may other controls also present in the same grid) then shows to the user... all controls works well but only rating control does not show actual value, it remains on 0.

When I tried it showing initially without hiding grid, it worked well

timheuer commented 11 years ago

Got it, I see it now. Must be something in measuring when back into view. Let me see if I can come up with a fix.

ghost commented 11 years ago

Wait.. I am sharing a sample project

ghost commented 11 years ago

Here, https://docs.google.com/file/d/0ByRfIRSJr7xjNWc4MlBqMUstVGc/edit?usp=sharing

I have uploaded a sample project. In this initially gridRatingControl is collapsed and shown after 2 seconds, then Rating control does not show value. but if I keep gridRatingControl visible from the starting of view, it shows the value

timheuer commented 11 years ago

Are you using any of the source code right now? I have a potential fix in moving the LayoutUpdated logic that seems to work, but want to know the best way to get the fix to you to test.

ghost commented 11 years ago

No, i just installed it from NuGet

timheuer commented 11 years ago

Ok, thanks for your project. My fix is working for me but not in your project, I have no idea why. Unfortunately no quick fix tonight...I'll have to spend more time on this.

I see you are marking it not hit-testable. If you mark IsEnabled="False" you'll get the "read only" rating control I think you are wanting.

ghost commented 11 years ago

Ok got it, thanks there may be some problem in my project, you can check

ghost commented 11 years ago

Hi, Did you find any solution?

ghost commented 11 years ago

Hi, Did you find any solution?

timheuer commented 11 years ago

Not yet :-(