POST
|
Is there a default dynamic resource I can set on a DatePicker so it styles correctly in dark mode? For example, I can use this for a TextBlock and it automatically changes to dark mode styling in dark mode: Style="{DynamicResource RegularText}" Is there something similar for a DatePicker?
... View more
07-24-2020
11:36 AM
|
0
|
1
|
150
|
POST
|
Thanks! Passing the map member to Modify() did the trick.
... View more
06-09-2020
11:10 AM
|
0
|
0
|
74
|
POST
|
Sean, I got it working if I pass the map member to Modify() rather than the feature as I was doing before, as suggested in Gintautas Kmieliauskas's answer. The code is called in QueuedTask.Run() in the button's OnClick(). But I have almost identical code that runs in a Tool's OnSketchCompleteAsync() and that runs and the table and attribute window update without issue, so in my case it seems like it might have something to do with running it from a button click.
... View more
06-09-2020
11:09 AM
|
0
|
0
|
74
|
POST
|
I have a button that when clicked modifies the attributes of selected lines. The problem is that the new attribute values don't show up as updated in the attribute table or the attribute window. But it seems to only occur on a clean undo/redo stack; if I click it again (on the same line or a different line), if I undo and then redo, if I put UndoAsync() then RedoAsync() in the code after the execute, or if I save edits and then re-select the features, the updated values show. Here's the code: EditOperation operation = new EditOperation(); operation.Name = "test edit"; FeatureLayer flayer = mapMember as FeatureLayer; Selection selectedFeatures = flayer.GetSelection(); using (RowCursor rowCursor = selectedFeatures.Search()) { while (rowCursor.MoveNext()) { Feature feature = rowCursor.Current as Feature; operation.Modify(feature, "NAME", "TEST"); } } operation.ExecuteAsync();
... View more
06-08-2020
04:47 PM
|
0
|
4
|
156
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|