How to add rating stars in windows application? - xaml

i am developing a windows application which allow users to rate a specific picture.i want to add rating stars for this purpose.can someone help me in finding out how to add rating stars in my app.

If if were me, i would create a user control that has images of how ever many star ratings you are wanting to use. Then when a user clicks on one of the stars, a Property such as int can be set depending on which star was clicked. Based on that, you can fill in the stars with say a yellow color. You could even utilize hover events to fill in the stars before a user clicks on one. use the Property that was created and do any type of calculations you wish to show. If you are wanting to do any type of binding to the Property, make sure you make it a dependency Property. Also, a little more information or code would be helpful in trying to help you. If you specify your question a little more or show some existing code you have written I can give you some more specifics on how you can achieve this.

Related

How to edit Label while running

I've been making a class schedule system for my school project.
I just wanted to ask how can I edit labels while running, so when the user double clicks the label they can put the data they want for their class schedule.
Is there anymore convenient way to do this instead of using labels?
You can't do this while running, but i can help you make a Text Box shown when the users hit double clicks on the label to put the data they want.
I Hope My Answer Was Useful To You.

focus on current record selected

i am working on a dynamic database which must be extremely professional and user friendly for the "non-access" users..
I am not sure if any code exists for this or if it is capable but I need to put a focus or highlight the record in a form (in a table type view) to emphasise with great details that the user is currently on that record. the little Arrow on the record selector is not enough.
My first choice is that the record currently beign used remains in black colour or perhaps even enlarges whicle the other records in the rows (above and below) are greyed or faded so that it is blatently obvious that they are not selected but are available.
I would greatly appreicate any advice..
Thanks
I googled 'access forms change current row indicator' and the first result was http://access.mvps.org/access/forms/frm0047.htm which looks pretty good (although maybe not very supportable).
The problem with what you want to do is that Access doesn't do that easily; Access does a lot of things for you at the price of accepting the way it does them. When you want to change that you will have problems.
Cheers -

Get Geolocations from SQL database to be used in Bing Maps

Basically I have a set of geolocations and other information corresponding to each point in a table in a SQL database. I have a Bing Maps website with checkboxes to set different filters for which geolocation pins should be displayed. I'm basically wondering how I can most efficiently query the database and update pins on a map, based on given checkboxes.
Alternatively, as requerying may be expensive as the table size increases, how could I load the entire database and only display certain pins based on the selected checkbox filters?
When researching this I found answers regarding GeoRSS files, but those solutions are specific to points that are all loading at once and that will continue to stay in view. It doesn't seem like filters can be applied in this process (without further requerying).
EDIT: When I say 'filters' I'm basically talking about narrowing down the currently displayed pins by things like the date the geolocation was recorded, and various other things that will use checkboxes. Let's say I have a list of restaurants and they each have their ID, geolocation, date added (to the database), and a foreign key for their type of food. I'd like to be able to select through the available food-types to limit results to Italian and Mexican restaurants but still provide the functionality of showing Chinese restaurants with the click of a button.
And to make it easy, I'll initially take all database entries in.
You could use an SSRS Report with a Map Control to display the info on a Bing Map. That way you can use an expression in the "hidden" property of the marker to determine whether or not to show the pushpin and map your checkboxes to parameters.
See
http://technet.microsoft.com/en-us/library/ee240845.aspx for using a map control.
If SharePoint is an option you can have a completely interactive experience with PowerView.
Here is an introduction http://office.microsoft.com/en-gb/sharepoint-help/maps-in-power-view-HA103005792.aspx

Is it possible for a Command Button to show another Command button in Access?

Access novice here. I've been using it for about a week now, and can do most things with enough googling and trial and error.
One question though, I have a form that Im using to add participants into the database. At present, i have 2 buttons, one that opens the MALE add user form, and then another button which opens the FEMALE add user form.
What i was wondering is, is it possible to create a main button (called "ADD USER" for example), that when pressed, shows the two other MALE and FEMALE buttons for the user to choose from?
Sorry if that makes no sense. Basically, can I make a button that when pressed, makes two more buttons visible?
Thank you for any help!
Yes, there are way to do this:
you could create those m/f-buttons and make a function which toggles visibility of your buttons on execution of addUser-button.
you could make an additional dialog, which is called by addUser-button
but my suggestion would be - use radio-buttons for male/female and their setup to execute addUser correctly ;) mainly, because I find this more intuitive and efficient.
like this, now you can access those to know which one is selected, or you can use a global variable or a property to be setup by those radio-buttons and then accessed by other objects, like an addUser-Button.
Hope this was clear enough - just try and look into those suggestions to find your way ;)

java3d Picking objects

I am building a java3d GUI, using which users can create custom scene graphs, without needing to know the code, i want to pick specific boxes using mouse, and i want to be able to move them around.. so for that i need picking..
There are say, 2 boxes and 2 spheres in my scenegraph. I just want to pick one of them and know which one was picked. I can find out what type of object was clicked, like if i click on specific sphere, or box, i can find that out, but i dont know how can i find out which object was it, so i can process it.
Could anyone suggest me a solution to the problem? All I want is to know
which object was picked. That's all.
Ok, for now the problem has been solved.
Whenever u add a box or a sphere into scene graph, you need to add custom userData to these object.
e.g. if u are adding a Box object, then
boxOb.setUserData("box1"); //this can be any datatype
when you retrieve data from picking, you just call getUserData() method on getNode() method.
BAMM!! you will get the custom datatype which u set, you can process this further as per your application.
Cheers :)