none
[UWP]Win10 Visual C++ Port custom control in C# to C++/Cx RRS feed

  • Question

  • Hi,

    I would like to port the wheel datepicker source in C# to C++. There are many class that begins with [TemplateVisualState...] that I cannot find the C++ equivalent. Part of the C# code is listed below:

    Please advice. Thanks.

    namespace DatePicker { [TemplateVisualState(Name = "UnFocused", GroupName = "Picker")] [TemplateVisualState(Name = "Focused", GroupName = "Picker")] [TemplateVisualState(Name = "Selected", GroupName = "Picker")] public sealed class PickerSelectorItem : ContentControl { // Parent picker selector internal PickerSelector PickerSelector { get; set; } public Rect RectPosition { get; set; } public Double GetVerticalPosition() { return this.RectPosition.Y + this.GetTranslateTransform().Y; }

    Tuesday, August 18, 2015 12:22 PM

Answers

  • Just ignore the attributes...

    or you can try the VisualState class, although I don't think the mapping is exact.
    • Edited by mcosmin Tuesday, August 18, 2015 1:58 PM
    • Marked as answer by ErikS2 Wednesday, August 19, 2015 12:26 PM
    Tuesday, August 18, 2015 1:51 PM

All replies