c# - LibraryContainer in a ScatterViewItem: resizing and background rectangle -


Simple one: Want to add a Library Container to a Surface Sketterview. I know that I want to add the container inside the scattervium to rotate / move .. but the SVI adds a rectangular box around the control, and this does not do the shape correctly, I think I'm missing something simple but it Can not understand ... My current XAML is as follows:

Background = "{static resource windobject}" Allow = "true">. .

Any ideas are appreciated ... how I am looking at samples, but library controls which are shown are stable items (i.e. they are not running) ...

Update:
I understand what you are saying. This makes sense but does not behave as expected, is a complete sample of Library Container below. It is empty but shows me strange behavior, i.e.: no resizing, background rectangle I can not get rid of myself ..

Any suggestion is appreciated.

  & lt; S: SurfaceWindow x: Class = "SurfaceApplication1.SurfaceWindow1" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "xmlns: s =" http://schemas.microsoft.com/surface/2008 "title =" Surface Application 1 "& gt; & Lt; S: SurfaceWindow.Resources & gt; & Lt; ImageBrush x: key = "windobackground" stretch = "none" opisity = "0.6" imager = "pack: // application: ;, / resource / windbankground.jpg" /> & Lt; XmlDataProvider x: key = "Myadata" XPath = "CoverList" x: name = "xdpList" & gt; & Lt; / XmlDataProvider & gt; & Lt; ! - Categorize those data and bind the above data - & gt; & Lt; Collection ViewSource x: key = "MySourceOfData" source = "{binding source = {static resource micrification}, XPath = item}" & gt; & Lt; CollectionViewSource.GroupDescriptions & gt; & Lt; PropertyGroupDescription Property Name = "@ Size" / & gt; & Lt; /CollectionViewSource.GroupDescriptions> & Lt; / CollectionViewSource & gt; & Lt; DatatyPlat X: Key = "MyDataTump" & gt; & Lt; Border border border = "1" borderbrush = "white" margin = "3" & gt; & Lt; Image Source = "{Binding XPath = @ Picture}" & gt; & Lt; / Image & gt; & Lt; / Border & gt; & Lt; / DataTemplate & gt; & Lt; / S: SurfaceWindow.Resources & gt; & Lt; Grid Background = "{Static Resource Windobacker}" & gt; & Lt; S: ScatterView & gt; & Lt; LibraryContainer Name = "MainLibraryContainer" width = "400" height = "200" ViewingMode = "bar" ItemsSource = "{binding source = {StaticResource MySourceOfData}}" CanSwitchViewingMode = "false" IsActive = "this is true" & gt; ; & Lt ;! - Select a stack view (not in use) - & gt; & Lt; A: LibraryContainer.StackView & gt; & Lt; S: Stackview normalized infection Edit = "1,1" item template = "{static resource moodattap}" & gt; & Lt; / S: StackView & gt; & Lt; / S: LibraryContainer.StackView & gt; & Lt ;! - Bar view of data - & gt; & Lt; S: LibraryContainer.BarView & gt; & Lt; S: barve rows = "1" item template = "{static resource moodattap}" & gt; & Lt; / S: BarView & gt; & Lt; / S: LibraryContainer.BarView & gt; & Lt; / S: LibraryContainer & gt; & Lt; / S: ScatterView & gt; & Lt; / Grid & gt; & Lt; / S: SurfaceWindow & gt;  

I quess you to write a ControlTemplate for ScatterviewItem and pass the library pile. Or you just set the transparency of ScatterviewItem in the background, which can have the same effect, because the transparent eliminates hit test visibility at non-covered locations.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -