How can I achieve a dashed or dotted border in WPF?

This worked great in our application, allowing us to use a real Border and not mess around with Rectangles: <Border BorderThickness=”1,0,1,1″> <Border.BorderBrush> <DrawingBrush Viewport=”0,0,8,8″ ViewportUnits=”Absolute” TileMode=”Tile”> <DrawingBrush.Drawing> <DrawingGroup> <GeometryDrawing Brush=”Black”> <GeometryDrawing.Geometry> <GeometryGroup> <RectangleGeometry Rect=”0,0,50,50″ /> <RectangleGeometry Rect=”50,50,50,50″ /> </GeometryGroup> </GeometryDrawing.Geometry> </GeometryDrawing> </DrawingGroup> </DrawingBrush.Drawing> </DrawingBrush> </Border.BorderBrush> <TextBlock Text=”Content Goes Here!” Margin=”5″/> </Border> Note that the Viewport … Read more

Listview error: “Your content must have a ListView whose id attribute is ‘android.R.id.list'”

You are probably using a ListActivity. In you firstlist.xml replace the id to: <ListView android:id=”@android:id/list” … ListActivity looks for the id R.android.id.list which you in xml is @android:id/list. Also look at this post: ListView whose id attribute is ‘android.R.id.list’ Error when I have the ListView id set correctly

Get single listView SelectedItem

Usually SelectedItems returns either a collection, an array or an IQueryable. Either way you can access items via the index as with an array: String text = listView1.SelectedItems[0].Text; By the way, you can save an item you want to look at into a variable, and check its structure in the locals after setting a breakpoint.