2016-12-19 1 views
0

보조 타일에 큰 텍스트 (약 20 자)를 표시하려고하지만 모바일 화면 및 바탕 화면의 시작 메뉴 텍스트가 다르게 보입니다 (모바일 텍스트는 잘리지 않고 표시됨). 모바일 화면에서 텍스트 줄 바꿈을하는 방법이 있습니까?보조 타일에 텍스트 줄 바꿈

이 텍스트는 바탕 화면에 모습입니다 :
Text on Desktop tile

이 텍스트는 모바일 장치에서 모습입니다 :
Text on Mobile device tile

코드 샘플 :

var secondaryTile = new SecondaryTile(Id.ToString(), 
"Large large large large large text","secondary_tile_id=" + Id, 
uri150X150Logo, TileSize.Square150x150) 
{ 
    VisualElements = 
    { 
     Square310x310Logo = uri310X310Logo, 
     Square44x44Logo = uri44X44Logo, 
     Square71x71Logo = uri71X71Logo, 
     Wide310x150Logo = uri310X150Logo, 
     Square150x150Logo = uri150X150Logo, 
     ForegroundText = ForegroundText.Dark, 
     ShowNameOnSquare150x150Logo = true, 
     ShowNameOnSquare310x310Logo = true, 
     ShowNameOnWide310x150Logo = true, 
     BackgroundColor = Colors.White 
    },    
    RoamingEnabled = false,     
};   
await secondaryTile.RequestCreateAsync(); 

답변

0

당신은 텍스트 줄 바꿈 할 수 있습니다, Adaptive 타일의 모든 기능을 설명하는 링크가 Adaptive Tile Templates – Schema and Documentation에 있지만 링크 만 대답이 허용되지 않습니다. 텍스트의 몇 가지 세부 사항 :

힌트 랩 속성 때문에 텍스트 랩 확인 할 수있다
<text 
    lang? = string 
    hint-style? = textStyle 
    hint-wrap? = boolean 
    hint-maxLines? = integer 
    hint-minLines? = integer 
    hint-align? = "left" | "center" | "right" > 
    <!-- text goes here --> 
</text> 

는, 거기에 몇 가지 예입니다뿐만 아니라 그것들을 만드는 데 도움이 스토어에서 Notifications Visualiser을 추천합니다.

+0

버그입니다. [Notifications Visualiser] (https://www.microsoft.com/en-us/store/p/notifications-visualizer/9nblggh5xsl1) 테스트 타일을 시작 메뉴 타일에 고정하는 옵션은 줄 바꿈이나 자르기없이 생성됩니다. 그러나 바탕 화면 타일에 좋아 보인다. –

+0

매우 이상합니다. 저는 [MS 공식 코드 샘플] (https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/Notifications/cs/Notifications/ScenarioPages/LiveTiles/AdaptiveTemplates/TextWrap/ScenarioElement)을 사용했습니다. xaml.cs)를 사용하여이 사례를 테스트합니다. 그것은 에뮬레이터 14393/10586에서 잘 작동했습니다. –

+0

이상하게도, 어쩌면이 문제를 사용할 때 어떤 종류의 문제가 발생합니다. 가까운 장래에 타일을 사용하여 작업하는 것과 마찬가지로 알아두면 유용합니다! – RoguePlanetoid