POST
|
Hi, For Button or MapTool you can override OnUpdate method: protected override void OnUpdate()
{
if (myCondition)
{
Caption = "Title1";
SmallImage = BuildImage("small_image1.png");
LargeImage = BuildImage("large_image1.png");
}
else
{
Caption = "Title2";
SmallImage = BuildImage("small_image2.png");
LargeImage = BuildImage("large_image2.png");
}
}
Or set from code: private void ChangeCaptionImage()
{
IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper("MyAddin_MyCustomButton");
if (wrapper != null)
{
wrapper.Caption = "new caption";
// ensure that T-Rex16 and T-Rex32 are included in your add-in under the images folder and have
// BuildAction = Resource and Copy to OutputDirectory = Do not copy
wrapper.SmallImage = BuildImage("T-Rex16.png");
wrapper.LargeImage = BuildImage("T-Rex32.png");
}
}
private ImageSource BuildImage(string imageName)
{
return new BitmapImage(PackUriForResource(imageName));
}
private Uri PackUriForResource(string resourceName)
{
string asm = System.IO.Path.GetFileNameWithoutExtension(
System.Reflection.Assembly.GetExecutingAssembly().Location);
return new Uri(string.Format("pack://application:,,,/{0};component/Images/{1}", asm, resourceName), UriKind.Absolute);
}
... View more
2 weeks ago
|
0
|
0
|
73
|
POST
|
Hi, Any news on the vtpk and style in 200.4? Is it possible to style offline vtpk?
... View more
3 weeks ago
|
0
|
0
|
56
|
BLOG
|
Hi, There are new requirements going into effect on August 31, 2024. When can we expect to receive Cloud Make service update? Thanks
... View more
3 weeks ago
|
0
|
0
|
70
|
POST
|
Hi, There is ElementEvent. Event argument member Hint has some different states for changes: ElementAdded , ElementRemoved, PlacementChanged.
... View more
a month ago
|
0
|
2
|
184
|
POST
|
Hi, You can create layer with geoprocessing tool Make Query Layer. It creates a query layer from a DBMS table based on an input SQL select statement. So, you don't need your code above. How to call geoprocessing tool you can find here. Tool name for calling would be "management.MakeQueryLayer"
... View more
07-11-2024
07:09 AM
|
0
|
0
|
262
|
POST
|
Hi, I think Raster and Imagery options are not exposed to API. Here you can find which options are exposed to API.
... View more
07-10-2024
12:31 PM
|
0
|
2
|
156
|
POST
|
There is no difference from coding side except cases I mentioned earlier.
... View more
07-05-2024
12:00 PM
|
0
|
0
|
186
|
POST
|
Hi, EditOperation works with branch versioning. If you work with default version then set EditOperationType to SHORT, for named set to LONG. Avoid mixing short and long edit operation types. More info here
... View more
07-04-2024
07:28 AM
|
1
|
2
|
221
|
POST
|
I am using Esri.ArcGISRuntime.Maui version 200.4.0. We have made new package, published it and now it works on iOS.
... View more
07-01-2024
07:25 AM
|
0
|
0
|
237
|
POST
|
Hi, I have found ProWindow inside MapControlWindow.xaml: <controls:ProWindow x:Class="MagnifierWindow.MapControlWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mapControls="clr-namespace:ArcGIS.Desktop.Mapping.Controls;assembly=ArcGIS.Desktop.Mapping"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
Title="Magnifier" Height="300" Width="300"
ResizeMode="NoResize"
>
... View more
07-01-2024
07:17 AM
|
0
|
0
|
119
|
POST
|
The error message says: Invalid request response: Cannot load vtpk from '/var/mobile/Containers/Data/Application/7171FE95-8F47-43D7-AC3C-2332C3EC3670/Documents/waterways/offlinecache/************.vtpk'. Message was: IO error. Package was created with ArcGIS Pro, but I don't know which version. I will send you vtpk url for testing.
... View more
06-27-2024
11:15 PM
|
0
|
0
|
298
|
POST
|
Hi, ArcGIS Pro has its own MapControl which you could add to ProWindow or CustomControl. There are some samples with MapControl in ArcGIS Pro SDK community samples page OverviewMapControl, MagnifierWindow and MapControl.
... View more
06-27-2024
07:38 AM
|
0
|
0
|
203
|
POST
|
Hi, Are you talking about either project or application settings? If yes, you can check Backstage_PropertyPage sample.
... View more
06-27-2024
07:25 AM
|
1
|
1
|
150
|
POST
|
Thanks for helpful comments @PreetiMaske . I subscribed to `MapView.LayerViewStateChanged` and get error #7003 on vector tiled layer view state changing. Could you help me please with error code meaning?
... View more
06-27-2024
01:04 AM
|
0
|
0
|
326
|
Title | Kudos | Posted |
---|---|---|
1 | 07-10-2024 03:23 AM | |
1 | 01-25-2023 04:03 AM | |
1 | 11-17-2023 02:12 AM | |
1 | 07-04-2024 07:28 AM | |
1 | 06-27-2024 07:25 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|