Click here to Skip to main content
15,887,135 members
Home / Discussions / WPF
   

WPF

 
QuestionWindows forms application popup dialog? Pin
Mattzimmerer18-Mar-10 8:12
Mattzimmerer18-Mar-10 8:12 
AnswerRe: Windows forms application popup dialog? Pin
Super Lloyd18-Mar-10 11:20
Super Lloyd18-Mar-10 11:20 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer18-Mar-10 12:03
Mattzimmerer18-Mar-10 12:03 
GeneralRe: Windows forms application popup dialog? Pin
Saiyed Alam18-Mar-10 19:23
Saiyed Alam18-Mar-10 19:23 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer19-Mar-10 7:53
Mattzimmerer19-Mar-10 7:53 
GeneralRe: Windows forms application popup dialog? Pin
darkelv18-Mar-10 22:00
darkelv18-Mar-10 22:00 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer19-Mar-10 7:47
Mattzimmerer19-Mar-10 7:47 
QuestionCreate UserControl DependencyProperty of which value can be chosen in dropdown list (as combo box) Pin
vongocviet18-Mar-10 6:45
vongocviet18-Mar-10 6:45 
Hello everybody,

I'm a starter at WPF, now i would like to make a WPF userControl library which include a Rating bar userControl. All the steps of creating the rating Bar has been done, however i would like to add a property RatingValue:

public static readonly DependencyProperty RatingValueProperty =
            DependencyProperty.Register("RatingValue", typeof(int), typeof(RatingControl),
            new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, new PropertyChangedCallback(RatingValueChanged)));

public int RatingValue
        {
            get { return (int)GetValue(RatingValueProperty); }
            set
            {               
                SetValue(RatingValueProperty, value);                
            }
        }

private static void RatingValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
         //... change the rating value
        }


that the user of my UserControl can modify by a value from 0 to 5 that are shown in a dropdown list (combo box) in the Properties windows (as some exist properties of Usercontrols like Visibility, windows style, background ...)

How can i do? Thank you very much in advance,

Viet
AnswerRe: Create UserControl DependencyProperty of which value can be chosen in dropdown list (as combo box) Pin
Super Lloyd18-Mar-10 11:16
Super Lloyd18-Mar-10 11:16 
QuestionHow to display Northwind Product Image? Pin
Gene Arnold17-Mar-10 9:00
Gene Arnold17-Mar-10 9:00 
AnswerRe: How to display Northwind Product Image? Pin
fred_17-Mar-10 9:42
fred_17-Mar-10 9:42 
QuestionHow can i add a User Control to another User Control?? Pin
urooj_mahmood17-Mar-10 3:34
urooj_mahmood17-Mar-10 3:34 
AnswerRe: How can i add a User Control to another User Control?? Pin
Abhinav S18-Mar-10 0:30
Abhinav S18-Mar-10 0:30 
AnswerRe: How can i add a User Control to another User Control?? Pin
Kunal Chowdhury «IN»23-Mar-10 7:31
professionalKunal Chowdhury «IN»23-Mar-10 7:31 
QuestionSilverlight map control localized to india Pin
p_mnj17-Mar-10 2:59
p_mnj17-Mar-10 2:59 
Questionhow do use multiple grid in UserControl??? Pin
urooj_mahmood16-Mar-10 0:47
urooj_mahmood16-Mar-10 0:47 
AnswerRe: how do use multiple grid in UserControl??? Pin
Abhinav S16-Mar-10 0:58
Abhinav S16-Mar-10 0:58 
AnswerRe: how do use multiple grid in UserControl??? Pin
Pete O'Hanlon16-Mar-10 1:53
mvePete O'Hanlon16-Mar-10 1:53 
QuestionGet binding of control in datagridtemplatecolumn Pin
klauswiesel15-Mar-10 22:51
klauswiesel15-Mar-10 22:51 
AnswerRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd16-Mar-10 12:45
Super Lloyd16-Mar-10 12:45 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel16-Mar-10 22:04
klauswiesel16-Mar-10 22:04 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 1:40
Super Lloyd17-Mar-10 1:40 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 2:12
klauswiesel17-Mar-10 2:12 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 2:55
Super Lloyd17-Mar-10 2:55 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 3:38
klauswiesel17-Mar-10 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.