Comments (3)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Open similar issues:
- ToString() is not called for custom ComboBox item (C++) (#8981), similarity score: 0.76
- [C++/WinRT] Two way binding from String to IInspectable not compiling (#4787), similarity score: 0.71
Closed similar issues:
- DisplayMemberPath not work when ComboBox items binded to DependencyObject (#8502), similarity score: 0.72
- AutoSuggestBox TextChanged reports reason as UserInput when programmatically setting AutoSuggextBox.Text in SuggestionChosen handler in C++ (and in C# as well under certain circumstances) (#3539), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from microsoft-ui-xaml.
Ah, for the *MemberPath properties there's an undocumented requirement to implement ICustomPropertyProvider
, which is not implemented by default for C++/WinRT structs (perhaps it should be?)
This interface can also be used as a workaround for the buggy ToString()
behavior, e.g.:
auto Type() const {
// Not just `YourClass` as you don't want the implementation namespace
return xaml_typename<YourNamespace::YourClass>();
}
auto GetCustomProperty(const auto&) {
return ICustomProperty {nullptr};
}
auto GetIndexedProperty(const auto&, const auto&) {
return ICustomProperty {nullptr};
}
// Implement ToString() here
hstring GetStringRepresentation();
from microsoft-ui-xaml.
For those who want DisplayMemberPath
to work, you just need to add [bindable]
to your runtimeclass. This would cause XC to generate all of the lookup code in XamlTypeInfo.g.cpp
for your class.
Documentation says you only need bindable
when you use Binding
expression, which is false. Documentation needs to be updated to include use cases like this.
from microsoft-ui-xaml.
Related Issues (20)
- Tooltips of Minimize, Maximize/Restore & Close window buttons are missing HOT 1
- CPP TeachingTip Crashγ HOT 2
- When a Grid in a StackPanel, the <Grid.RowDefininations> work abnormally HOT 3
- TeachingTip is not read by Windows Accessibility Narrator when IsLightDismissEnabled=True HOT 1
- Repeatedly updating explicit `Width` property causes frame drops HOT 4
- Possible leak in RefreshContainer where it doesn't stop a "Forever" composition animation HOT 4
- WinUI 3 App - InitializeComponent Fails with WinRT Error and TypeInitializationException HOT 4
- ListView doesn't handle NotifyCollectionChangedAction.Replace with different number of items in old and new. HOT 1
- Can the selectbar remove the Frame and replace it with a pivot?
- `UIElement.RasterizationScale` does not change when Display Scale changes; `XamlRoot.RasterizationScale` does. HOT 2
- PublishSingleFile fail to work when you have a WinUI3 Class Lib HOT 3
- CheckBox displays errors when resuming from sleep.
- Extending `ContentDialog` with generics <T> stops autogenerated code HOT 1
- Broken links in Contributing to the Windows UI Library document HOT 1
- Voice Access commang like "Delete that" is not working wit PasswordBox HOT 1
- The default Print UI dialogue is not shown on the Windows platform when the EntryPoint is set as "Windows.PartialTrustApplication" in Package.appxmanifest. HOT 6
- Button does not spread in RelativePanel HOT 5
- Wrong placement of CommandBar using Page's TopAppBar property. HOT 3
- Native debugging for WinUI apps stopped working HOT 9
- Issue occurs for custom control that was inherited from ComboBoxItem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.