|
POST
|
OK, so I figured this out and thought i would post for anyone who might stumble upon this one day. Basically, you need to change the MaxHeight of the row above the GridSplitter dynamically as the GridSplitter gets moved. Here are the 3 events that need to run in my solution (I'm sure there are other ways to do this): private void GridSplitter_MouseEnter(object sender, MouseEventArgs e)
{
R3.MaxHeight = dockpaneGrid.ActualHeight - (R0.ActualHeight + R1.ActualHeight + R2.ActualHeight + R4.ActualHeight + R5.MinHeight);
}
private void GridSplitter_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
{
//Compares the current GridHeight to the height when starting the drag
//If the grid has gotten bigger, then the MaxHeight of row 3 is changed so controls don't get pushed off the screen
if (dockpaneGrid.ActualHeight > gridHeight)
{
R3.MaxHeight = gridHeight - (R0.ActualHeight + R1.ActualHeight + R2.ActualHeight + R4.ActualHeight + R5.MinHeight);
}
}
private void GridSplitter_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
{
//Gets the current total height of the grid, before starting to drag the splitter
gridHeight = dockpaneGrid.ActualHeight;
} Here is what the final dockpane looks like: Both the Header and Details section will grow/shrink as the GridSplitter gets dragged, but the Details will never get dragged off of the page by setting a MaxHeight on the Header section (R3).
... View more
04-05-2018
07:17 AM
|
0
|
0
|
3034
|
|
POST
|
Hi, Just one more question.... I pretty much have it all working as I want, but when I use the GridSplitter (which separates the bottom two listboxes), I can actually push the bottom listbox entirely out of view....which is not what I want (see images below). Within the dockpane I have everything in a grid that has 5 rows, and in the bottom row I have set a MinHeight so I think what might be happening is that the GridSplitter is actually increasing the size of the UserControl. Is there a way to 'lock down' the height of the UserControl to match the height of the DockPane that it sits in?? Before using the GridSplitter: After using the GridSplitter:
... View more
04-03-2018
11:52 AM
|
0
|
0
|
3034
|
|
POST
|
Thanks Narelle, That works perfectly. It's now looking very esri. 🙂
... View more
04-03-2018
06:12 AM
|
0
|
0
|
3034
|
|
POST
|
OK, I'm getting closer, but still have some setting not set quite right. Any advice on what the exact settings are to get the same highlighting style to match the Esri_ListBoxItemHighlightBrush?? I've tried a few different settings for "Background" but can never quite get it to match. This is what it looks like with the following: <ListView x:Name="lstDetails" Grid.Row="4" Margin="10,28,10,10">
<ListView.View>
<GridView>
<GridViewColumn Header="Distance" DisplayMemberBinding="{Binding distance}"/>
<GridViewColumn Header="Code" DisplayMemberBinding="{Binding code}"/>
<GridViewColumn Header="Remarks" DisplayMemberBinding="{Binding remarks}"/>
</GridView>
</ListView.View>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{DynamicResource Esri_ListBoxItemHighlightBrush}" />
</Trigger>
</Style.Triggers>
</Style>
</ListView.ItemContainerStyle>
</ListView>
... View more
03-29-2018
10:45 AM
|
0
|
4
|
3034
|
|
POST
|
Great...thanks Wolfgang!! My Dockpane is looking very esri now. One issue I am having trouble with is getting a ListView control with an embedded Grid (for columns) to show in the esri style. If I apply ItemContainerStyle="{DynamicResource Esri_ListBoxItemHighlightBrush}" to the ListView it messes with the data in the control. Is there something I am doing wrong?? See image at bottom. <ListView x:Name="lstDetails" ItemContainerStyle="{DynamicResource Esri_ListBoxItemHighlightBrush}" Grid.Row="4" Margin="10,28,10,10" SelectionChanged="lstSurveyDate_SelectionChanged_1">
<ListView.View>
<GridView>
<GridViewColumn Header="Distance" DisplayMemberBinding="{Binding distance}"/>
<GridViewColumn Header="Code" DisplayMemberBinding="{Binding code}"/>
<GridViewColumn Header="Remarks" DisplayMemberBinding="{Binding remarks}"/>
</GridView>
</ListView.View>
</ListView>
... View more
03-29-2018
08:32 AM
|
0
|
5
|
3034
|
|
POST
|
Hi, I'm trying to make my ArcPro customizations fit into the look and feel of ArcPro. Is there a document anywhere that outlines what fonts and type of styles are used throughout different elements of the GUI?? See my screenshot below: For instance, I would like to get my dockpane (still a WIP) on the left to look more similar to the one on the right in terms of fonts and overall styling. See the circled text for the elements I am most interested in emulating. Also, on the right I have drawn an arrow to a WPF control that slides up and down, adjusting the size of the panel (??). Can anyone tell me what type of WPF control this is?? Also is there a way to make a Button control look more like an ESRI button control. I'm pretty sure a presenter briefly talked about this at the recent Dev Summit, but I don't quite remember or maybe misunderstood what they were saying. Sorry, I am new to WPF. 🙂 Thanks!
... View more
03-28-2018
06:22 AM
|
0
|
8
|
3414
|
|
POST
|
Hi Uma, I do not think it is an issue with the namespace. What it might be is an 'ArcPro Install' issue. This one particular user seems to have a different setup than everyone else, so we will do a complete re-install and get her using her ArcGIS Online login for the licence and see if that makes a difference.
... View more
03-23-2018
11:21 AM
|
0
|
1
|
803
|
|
POST
|
I am running into a weird issue where the ArcPro tools I have created work fine on most desktops, but on others they will appear on the toolbars, but are either immediately 'grayed' out or will 'gray out' after clicking on them to use them (and not actually work). Has anyone else experienced this?? Thanks,
... View more
03-23-2018
06:35 AM
|
0
|
3
|
859
|
|
POST
|
Thanks Sean. I do remember that at previous ESRI Conferences, seminars, etc. that doing what I want to do is possible. Is this sort of functionality doable through another ESRI product....ArcFM maybe is what I am thinking of??
... View more
03-23-2018
06:29 AM
|
0
|
0
|
2422
|
|
POST
|
Hi Shana, It is a lowercase 'L' (l). Here are a couple more screenshots to show you what is happening. The labelled point layer of addresses is the layer I created the Geocoder from. As you can see "1625 Jaywin Circle" is a valid address as it exists in the point layer, but when I type it in the Locate toolbar, it does not get a match with my custom Geocoder. But....when I type the address in as "1625 Jaywin Cl" it does get a match. A few times a year I geocode addresses that get typed into a database, so I need a geocoder that gets as many matches as possible to avoid too much manual coding of points. I just don't understand how the coder is not matching addresses like this, that seem to be typed in properly. Here are some of the settings from the Geocoder. From the fields I use I should be getting a match regardless of using 'Circle' or 'Cl', since I have both those fields defined. And here are the attributes for this particular address, from the point file the Geocoder references: I'm a bit confused as to why it doesn't work. This Geocoder is definitely working better than anything I ever tried in ArcMap, but still in ArcPro I would like it to work even better still. Thanks. If you have any other ideas, please let me know.
... View more
03-22-2018
10:34 AM
|
0
|
5
|
1818
|
|
POST
|
Hi Anant, Yes, it looks like we were both replying to this topic at the same time, so you may have missed my second post. I was able to create the 'Preset Template from Selected Features', but it isn't totally working the way I expected. Please check back and read my comment. Hopefully you have some ideas for me to get this working the way I want. Thanks!!
... View more
03-20-2018
10:53 AM
|
0
|
0
|
2422
|
|
POST
|
OK, well I kind of have this working. I'm not sure what I did differently, but I again selected all of the features and now the 'Preset Template from Selected Features' is enabled, so I was able to to create a template that basically creates what I want, but with some issues. Here are the main problems: 1. When I click on the new template the feature created is EXACTLY the same as the one I 'cloned'. In reality the distance between the connection and the hydrant would never be the same, nor would the bearing from the hydrant to the connection. Basically all I can do with this new template is recreate what I had previously selected when making the template. Is there a way to just click where I want the connection (1st point), click where I want the hydrant (2nd point), then have everything just draw in?? That is what my .NET tool does. I was hoping the templates could do this for me. 2 All of the default attributes of the new feature are the same as the originally selected feature, but there does appear to be a fix for that. 3. The new feature will not snap to anything. The cursor will snap to features, but the endpoint that has the service connection will not snap to the watermain. Any advice on how to get customize this to get the results I'm looking for?? Thanks!
... View more
03-20-2018
10:39 AM
|
0
|
2
|
2422
|
|
POST
|
Hi, I have some custom tools in .NET that we use in ArcMap 10.2 that I am hoping I can get rid of by using templates in ArcPro. I am following the instructions here: Create a preset template—ArcGIS Pro | ArcGIS Desktop What I want to do is create the mainline connection (a point snapping to the watermain), the hydrant service line (line) and the hydrant (point snapping to the end of the service line) using a 'Preset Template from Selected Features'. Following the instructions above, I am using an existing feature, select all of the features in the order of digitizing, and then go to 'New' - 'Preset Template from Selected Features' but that option is grayed out. The only option available to me is 'Group Template' which doesn't seem to do what I want. Any help is appreciated. Thanks,
... View more
03-20-2018
07:04 AM
|
2
|
6
|
3279
|
|
POST
|
Hi Shana, Sorry for the delayed response. This is my first day back in the office since attending the Dev Summit. I have attached the locator.
... View more
03-16-2018
10:35 AM
|
0
|
7
|
1818
|
|
POST
|
Yes!! I finally got it: title: "Latitude: " + projectedPoint[0].x + ", Longitude: " + projectedPoint[0].y, Wow....that was a lot of work.
... View more
02-27-2018
11:21 AM
|
1
|
0
|
444
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-18-2023 08:57 AM | |
| 1 | 04-19-2018 05:53 AM | |
| 1 | 04-13-2018 10:07 AM | |
| 1 | 04-13-2018 10:04 AM | |
| 1 | 04-13-2018 05:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-20-2025
03:53 PM
|